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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/CHANGELOG.md +109 -0
  2. package/README.md +134 -10
  3. package/dist/browser/clientDefinitions.d.ts +18 -8
  4. package/dist/browser/clientDefinitions.d.ts.map +1 -1
  5. package/dist/browser/clientDefinitions.js +1 -1
  6. package/dist/browser/clientDefinitions.js.map +1 -1
  7. package/dist/browser/documentIntelligence.d.ts +3 -3
  8. package/dist/browser/documentIntelligence.d.ts.map +1 -1
  9. package/dist/browser/documentIntelligence.js +3 -3
  10. package/dist/browser/documentIntelligence.js.map +1 -1
  11. package/dist/browser/index.d.ts +1 -0
  12. package/dist/browser/index.d.ts.map +1 -1
  13. package/dist/browser/index.js +2 -1
  14. package/dist/browser/index.js.map +1 -1
  15. package/dist/browser/isUnexpected.d.ts +5 -2
  16. package/dist/browser/isUnexpected.d.ts.map +1 -1
  17. package/dist/browser/isUnexpected.js +4 -1
  18. package/dist/browser/isUnexpected.js.map +1 -1
  19. package/dist/browser/logger.js +1 -1
  20. package/dist/browser/logger.js.map +1 -1
  21. package/dist/browser/models.d.ts +5 -5
  22. package/dist/browser/models.d.ts.map +1 -1
  23. package/dist/browser/models.js +1 -1
  24. package/dist/browser/models.js.map +1 -1
  25. package/dist/browser/outputModels.d.ts +85 -58
  26. package/dist/browser/outputModels.d.ts.map +1 -1
  27. package/dist/browser/outputModels.js +1 -1
  28. package/dist/browser/outputModels.js.map +1 -1
  29. package/dist/browser/paginateHelper.d.ts +28 -3
  30. package/dist/browser/paginateHelper.d.ts.map +1 -1
  31. package/dist/browser/paginateHelper.js +99 -2
  32. package/dist/browser/paginateHelper.js.map +1 -1
  33. package/dist/browser/parameters.d.ts +108 -24
  34. package/dist/browser/parameters.d.ts.map +1 -1
  35. package/dist/browser/parameters.js +1 -1
  36. package/dist/browser/parameters.js.map +1 -1
  37. package/dist/browser/pollingHelper.d.ts +25 -73
  38. package/dist/browser/pollingHelper.d.ts.map +1 -1
  39. package/dist/browser/pollingHelper.js +13 -51
  40. package/dist/browser/pollingHelper.js.map +1 -1
  41. package/dist/browser/responses.d.ts +68 -43
  42. package/dist/browser/responses.d.ts.map +1 -1
  43. package/dist/browser/responses.js +1 -1
  44. package/dist/browser/responses.js.map +1 -1
  45. package/dist/browser/utils.d.ts +5 -0
  46. package/dist/browser/utils.d.ts.map +1 -0
  47. package/dist/browser/utils.js +33 -0
  48. package/dist/browser/utils.js.map +1 -0
  49. package/dist/commonjs/clientDefinitions.d.ts +18 -8
  50. package/dist/commonjs/clientDefinitions.d.ts.map +1 -1
  51. package/dist/commonjs/clientDefinitions.js +1 -1
  52. package/dist/commonjs/clientDefinitions.js.map +1 -1
  53. package/dist/commonjs/documentIntelligence.d.ts +3 -3
  54. package/dist/commonjs/documentIntelligence.d.ts.map +1 -1
  55. package/dist/commonjs/documentIntelligence.js +3 -3
  56. package/dist/commonjs/documentIntelligence.js.map +1 -1
  57. package/dist/commonjs/index.d.ts +1 -0
  58. package/dist/commonjs/index.d.ts.map +1 -1
  59. package/dist/commonjs/index.js +2 -1
  60. package/dist/commonjs/index.js.map +1 -1
  61. package/dist/commonjs/isUnexpected.d.ts +5 -2
  62. package/dist/commonjs/isUnexpected.d.ts.map +1 -1
  63. package/dist/commonjs/isUnexpected.js +4 -1
  64. package/dist/commonjs/isUnexpected.js.map +1 -1
  65. package/dist/commonjs/logger.js +1 -1
  66. package/dist/commonjs/logger.js.map +1 -1
  67. package/dist/commonjs/models.d.ts +5 -5
  68. package/dist/commonjs/models.d.ts.map +1 -1
  69. package/dist/commonjs/models.js +1 -1
  70. package/dist/commonjs/models.js.map +1 -1
  71. package/dist/commonjs/outputModels.d.ts +85 -58
  72. package/dist/commonjs/outputModels.d.ts.map +1 -1
  73. package/dist/commonjs/outputModels.js +1 -1
  74. package/dist/commonjs/outputModels.js.map +1 -1
  75. package/dist/commonjs/paginateHelper.d.ts +28 -3
  76. package/dist/commonjs/paginateHelper.d.ts.map +1 -1
  77. package/dist/commonjs/paginateHelper.js +100 -3
  78. package/dist/commonjs/paginateHelper.js.map +1 -1
  79. package/dist/commonjs/parameters.d.ts +108 -24
  80. package/dist/commonjs/parameters.d.ts.map +1 -1
  81. package/dist/commonjs/parameters.js +1 -1
  82. package/dist/commonjs/parameters.js.map +1 -1
  83. package/dist/commonjs/pollingHelper.d.ts +25 -73
  84. package/dist/commonjs/pollingHelper.d.ts.map +1 -1
  85. package/dist/commonjs/pollingHelper.js +13 -50
  86. package/dist/commonjs/pollingHelper.js.map +1 -1
  87. package/dist/commonjs/responses.d.ts +68 -43
  88. package/dist/commonjs/responses.d.ts.map +1 -1
  89. package/dist/commonjs/responses.js +1 -1
  90. package/dist/commonjs/responses.js.map +1 -1
  91. package/dist/commonjs/tsdoc-metadata.json +1 -1
  92. package/dist/commonjs/utils.d.ts +5 -0
  93. package/dist/commonjs/utils.d.ts.map +1 -0
  94. package/dist/commonjs/utils.js +36 -0
  95. package/dist/commonjs/utils.js.map +1 -0
  96. package/dist/esm/clientDefinitions.d.ts +18 -8
  97. package/dist/esm/clientDefinitions.d.ts.map +1 -1
  98. package/dist/esm/clientDefinitions.js +1 -1
  99. package/dist/esm/clientDefinitions.js.map +1 -1
  100. package/dist/esm/documentIntelligence.d.ts +3 -3
  101. package/dist/esm/documentIntelligence.d.ts.map +1 -1
  102. package/dist/esm/documentIntelligence.js +3 -3
  103. package/dist/esm/documentIntelligence.js.map +1 -1
  104. package/dist/esm/index.d.ts +1 -0
  105. package/dist/esm/index.d.ts.map +1 -1
  106. package/dist/esm/index.js +2 -1
  107. package/dist/esm/index.js.map +1 -1
  108. package/dist/esm/isUnexpected.d.ts +5 -2
  109. package/dist/esm/isUnexpected.d.ts.map +1 -1
  110. package/dist/esm/isUnexpected.js +4 -1
  111. package/dist/esm/isUnexpected.js.map +1 -1
  112. package/dist/esm/logger.js +1 -1
  113. package/dist/esm/logger.js.map +1 -1
  114. package/dist/esm/models.d.ts +5 -5
  115. package/dist/esm/models.d.ts.map +1 -1
  116. package/dist/esm/models.js +1 -1
  117. package/dist/esm/models.js.map +1 -1
  118. package/dist/esm/outputModels.d.ts +85 -58
  119. package/dist/esm/outputModels.d.ts.map +1 -1
  120. package/dist/esm/outputModels.js +1 -1
  121. package/dist/esm/outputModels.js.map +1 -1
  122. package/dist/esm/paginateHelper.d.ts +28 -3
  123. package/dist/esm/paginateHelper.d.ts.map +1 -1
  124. package/dist/esm/paginateHelper.js +99 -2
  125. package/dist/esm/paginateHelper.js.map +1 -1
  126. package/dist/esm/parameters.d.ts +108 -24
  127. package/dist/esm/parameters.d.ts.map +1 -1
  128. package/dist/esm/parameters.js +1 -1
  129. package/dist/esm/parameters.js.map +1 -1
  130. package/dist/esm/pollingHelper.d.ts +25 -73
  131. package/dist/esm/pollingHelper.d.ts.map +1 -1
  132. package/dist/esm/pollingHelper.js +13 -51
  133. package/dist/esm/pollingHelper.js.map +1 -1
  134. package/dist/esm/responses.d.ts +68 -43
  135. package/dist/esm/responses.d.ts.map +1 -1
  136. package/dist/esm/responses.js +1 -1
  137. package/dist/esm/responses.js.map +1 -1
  138. package/dist/esm/utils.d.ts +5 -0
  139. package/dist/esm/utils.d.ts.map +1 -0
  140. package/dist/esm/utils.js +33 -0
  141. package/dist/esm/utils.js.map +1 -0
  142. package/dist/react-native/clientDefinitions.d.ts +18 -8
  143. package/dist/react-native/clientDefinitions.d.ts.map +1 -1
  144. package/dist/react-native/clientDefinitions.js +1 -1
  145. package/dist/react-native/clientDefinitions.js.map +1 -1
  146. package/dist/react-native/documentIntelligence.d.ts +3 -3
  147. package/dist/react-native/documentIntelligence.d.ts.map +1 -1
  148. package/dist/react-native/documentIntelligence.js +3 -3
  149. package/dist/react-native/documentIntelligence.js.map +1 -1
  150. package/dist/react-native/index.d.ts +1 -0
  151. package/dist/react-native/index.d.ts.map +1 -1
  152. package/dist/react-native/index.js +2 -1
  153. package/dist/react-native/index.js.map +1 -1
  154. package/dist/react-native/isUnexpected.d.ts +5 -2
  155. package/dist/react-native/isUnexpected.d.ts.map +1 -1
  156. package/dist/react-native/isUnexpected.js +4 -1
  157. package/dist/react-native/isUnexpected.js.map +1 -1
  158. package/dist/react-native/logger.js +1 -1
  159. package/dist/react-native/logger.js.map +1 -1
  160. package/dist/react-native/models.d.ts +5 -5
  161. package/dist/react-native/models.d.ts.map +1 -1
  162. package/dist/react-native/models.js +1 -1
  163. package/dist/react-native/models.js.map +1 -1
  164. package/dist/react-native/outputModels.d.ts +85 -58
  165. package/dist/react-native/outputModels.d.ts.map +1 -1
  166. package/dist/react-native/outputModels.js +1 -1
  167. package/dist/react-native/outputModels.js.map +1 -1
  168. package/dist/react-native/paginateHelper.d.ts +28 -3
  169. package/dist/react-native/paginateHelper.d.ts.map +1 -1
  170. package/dist/react-native/paginateHelper.js +99 -2
  171. package/dist/react-native/paginateHelper.js.map +1 -1
  172. package/dist/react-native/parameters.d.ts +108 -24
  173. package/dist/react-native/parameters.d.ts.map +1 -1
  174. package/dist/react-native/parameters.js +1 -1
  175. package/dist/react-native/parameters.js.map +1 -1
  176. package/dist/react-native/pollingHelper.d.ts +25 -73
  177. package/dist/react-native/pollingHelper.d.ts.map +1 -1
  178. package/dist/react-native/pollingHelper.js +13 -51
  179. package/dist/react-native/pollingHelper.js.map +1 -1
  180. package/dist/react-native/responses.d.ts +68 -43
  181. package/dist/react-native/responses.d.ts.map +1 -1
  182. package/dist/react-native/responses.js +1 -1
  183. package/dist/react-native/responses.js.map +1 -1
  184. package/dist/react-native/utils.d.ts +5 -0
  185. package/dist/react-native/utils.d.ts.map +1 -0
  186. package/dist/react-native/utils.js +33 -0
  187. package/dist/react-native/utils.js.map +1 -0
  188. package/package.json +27 -37
  189. package/review/ai-document-intelligence.api.md +373 -221
@@ -1,4 +1,4 @@
1
- import { ListOperations200Response, ListOperationsDefaultResponse, GetDocumentModelBuildOperation200Response, GetDocumentModelBuildOperationDefaultResponse, GetDocumentModelComposeOperation200Response, GetDocumentModelComposeOperationDefaultResponse, GetDocumentModelCopyToOperation200Response, GetDocumentModelCopyToOperationDefaultResponse, GetDocumentClassifierCopyToOperation200Response, GetDocumentClassifierCopyToOperationDefaultResponse, GetDocumentClassifierBuildOperation200Response, GetDocumentClassifierBuildOperationDefaultResponse, GetOperation200Response, GetOperationDefaultResponse, GetResourceInfo200Response, GetResourceInfoDefaultResponse, GetAnalyzeResult200Response, GetAnalyzeResultDefaultResponse, GetAnalyzeResultPdf200Response, GetAnalyzeResultPdfDefaultResponse, GetAnalyzeResultFigure200Response, GetAnalyzeResultFigureDefaultResponse, AnalyzeDocumentFromStream202Response, AnalyzeDocumentFromStreamLogicalResponse, AnalyzeDocumentFromStreamDefaultResponse, AnalyzeDocument202Response, AnalyzeDocumentLogicalResponse, AnalyzeDocumentDefaultResponse, GetAnalyzeBatchResult200Response, GetAnalyzeBatchResultDefaultResponse, AnalyzeBatchDocuments202Response, AnalyzeBatchDocumentsLogicalResponse, AnalyzeBatchDocumentsDefaultResponse, GetModel200Response, GetModelDefaultResponse, DeleteModel204Response, DeleteModelDefaultResponse, BuildModel202Response, BuildModelLogicalResponse, BuildModelDefaultResponse, ComposeModel202Response, ComposeModelLogicalResponse, ComposeModelDefaultResponse, AuthorizeModelCopy200Response, AuthorizeModelCopyDefaultResponse, CopyModelTo202Response, CopyModelToLogicalResponse, CopyModelToDefaultResponse, ListModels200Response, ListModelsDefaultResponse, BuildClassifier202Response, BuildClassifierLogicalResponse, BuildClassifierDefaultResponse, ListClassifiers200Response, ListClassifiersDefaultResponse, GetClassifier200Response, GetClassifierDefaultResponse, DeleteClassifier204Response, DeleteClassifierDefaultResponse, ClassifyDocumentFromStream202Response, ClassifyDocumentFromStreamLogicalResponse, ClassifyDocumentFromStreamDefaultResponse, ClassifyDocument202Response, ClassifyDocumentLogicalResponse, ClassifyDocumentDefaultResponse, GetClassifyResult200Response, GetClassifyResultDefaultResponse, AuthorizeClassifierCopy200Response, AuthorizeClassifierCopyDefaultResponse, CopyClassifierTo202Response, CopyClassifierToLogicalResponse, CopyClassifierToDefaultResponse } from "./responses.js";
1
+ import type { ListOperations200Response, ListOperationsDefaultResponse, GetDocumentModelBuildOperation200Response, GetDocumentModelBuildOperationDefaultResponse, GetDocumentModelComposeOperation200Response, GetDocumentModelComposeOperationDefaultResponse, GetDocumentModelCopyToOperation200Response, GetDocumentModelCopyToOperationDefaultResponse, GetDocumentClassifierCopyToOperation200Response, GetDocumentClassifierCopyToOperationDefaultResponse, GetDocumentClassifierBuildOperation200Response, GetDocumentClassifierBuildOperationDefaultResponse, GetOperation200Response, GetOperationDefaultResponse, GetResourceDetails200Response, GetResourceDetailsDefaultResponse, GetAnalyzeResult200Response, GetAnalyzeResultDefaultResponse, DeleteAnalyzeResult204Response, DeleteAnalyzeResultDefaultResponse, GetAnalyzeResultPdf200Response, GetAnalyzeResultPdfDefaultResponse, GetAnalyzeResultFigure200Response, GetAnalyzeResultFigureDefaultResponse, AnalyzeDocumentFromStream202Response, AnalyzeDocumentFromStreamLogicalResponse, AnalyzeDocumentFromStreamDefaultResponse, AnalyzeDocument202Response, AnalyzeDocumentLogicalResponse, AnalyzeDocumentDefaultResponse, GetAnalyzeBatchResult200Response, GetAnalyzeBatchResultDefaultResponse, DeleteAnalyzeBatchResult204Response, DeleteAnalyzeBatchResultDefaultResponse, AnalyzeBatchDocuments202Response, AnalyzeBatchDocumentsLogicalResponse, AnalyzeBatchDocumentsDefaultResponse, ListAnalyzeBatchResults200Response, ListAnalyzeBatchResultsDefaultResponse, GetModel200Response, GetModelDefaultResponse, DeleteModel204Response, DeleteModelDefaultResponse, BuildModel202Response, BuildModelLogicalResponse, BuildModelDefaultResponse, ComposeModel202Response, ComposeModelLogicalResponse, ComposeModelDefaultResponse, AuthorizeModelCopy200Response, AuthorizeModelCopyDefaultResponse, CopyModelTo202Response, CopyModelToLogicalResponse, CopyModelToDefaultResponse, ListModels200Response, ListModelsDefaultResponse, BuildClassifier202Response, BuildClassifierLogicalResponse, BuildClassifierDefaultResponse, ListClassifiers200Response, ListClassifiersDefaultResponse, GetClassifier200Response, GetClassifierDefaultResponse, DeleteClassifier204Response, DeleteClassifierDefaultResponse, ClassifyDocumentFromStream202Response, ClassifyDocumentFromStreamLogicalResponse, ClassifyDocumentFromStreamDefaultResponse, ClassifyDocument202Response, ClassifyDocumentLogicalResponse, ClassifyDocumentDefaultResponse, GetClassifyResult200Response, GetClassifyResultDefaultResponse, AuthorizeClassifierCopy200Response, AuthorizeClassifierCopyDefaultResponse, CopyClassifierTo202Response, CopyClassifierToLogicalResponse, CopyClassifierToDefaultResponse } from "./responses.js";
2
2
  export declare function isUnexpected(response: ListOperations200Response | ListOperationsDefaultResponse): response is ListOperationsDefaultResponse;
3
3
  export declare function isUnexpected(response: GetDocumentModelBuildOperation200Response | GetDocumentModelBuildOperationDefaultResponse): response is GetDocumentModelBuildOperationDefaultResponse;
4
4
  export declare function isUnexpected(response: GetDocumentModelComposeOperation200Response | GetDocumentModelComposeOperationDefaultResponse): response is GetDocumentModelComposeOperationDefaultResponse;
@@ -6,14 +6,17 @@ export declare function isUnexpected(response: GetDocumentModelCopyToOperation20
6
6
  export declare function isUnexpected(response: GetDocumentClassifierCopyToOperation200Response | GetDocumentClassifierCopyToOperationDefaultResponse): response is GetDocumentClassifierCopyToOperationDefaultResponse;
7
7
  export declare function isUnexpected(response: GetDocumentClassifierBuildOperation200Response | GetDocumentClassifierBuildOperationDefaultResponse): response is GetDocumentClassifierBuildOperationDefaultResponse;
8
8
  export declare function isUnexpected(response: GetOperation200Response | GetOperationDefaultResponse): response is GetOperationDefaultResponse;
9
- export declare function isUnexpected(response: GetResourceInfo200Response | GetResourceInfoDefaultResponse): response is GetResourceInfoDefaultResponse;
9
+ export declare function isUnexpected(response: GetResourceDetails200Response | GetResourceDetailsDefaultResponse): response is GetResourceDetailsDefaultResponse;
10
10
  export declare function isUnexpected(response: GetAnalyzeResult200Response | GetAnalyzeResultDefaultResponse): response is GetAnalyzeResultDefaultResponse;
11
+ export declare function isUnexpected(response: DeleteAnalyzeResult204Response | DeleteAnalyzeResultDefaultResponse): response is DeleteAnalyzeResultDefaultResponse;
11
12
  export declare function isUnexpected(response: GetAnalyzeResultPdf200Response | GetAnalyzeResultPdfDefaultResponse): response is GetAnalyzeResultPdfDefaultResponse;
12
13
  export declare function isUnexpected(response: GetAnalyzeResultFigure200Response | GetAnalyzeResultFigureDefaultResponse): response is GetAnalyzeResultFigureDefaultResponse;
13
14
  export declare function isUnexpected(response: AnalyzeDocumentFromStream202Response | AnalyzeDocumentFromStreamLogicalResponse | AnalyzeDocumentFromStreamDefaultResponse): response is AnalyzeDocumentFromStreamDefaultResponse;
14
15
  export declare function isUnexpected(response: AnalyzeDocument202Response | AnalyzeDocumentLogicalResponse | AnalyzeDocumentDefaultResponse): response is AnalyzeDocumentDefaultResponse;
15
16
  export declare function isUnexpected(response: GetAnalyzeBatchResult200Response | GetAnalyzeBatchResultDefaultResponse): response is GetAnalyzeBatchResultDefaultResponse;
17
+ export declare function isUnexpected(response: DeleteAnalyzeBatchResult204Response | DeleteAnalyzeBatchResultDefaultResponse): response is DeleteAnalyzeBatchResultDefaultResponse;
16
18
  export declare function isUnexpected(response: AnalyzeBatchDocuments202Response | AnalyzeBatchDocumentsLogicalResponse | AnalyzeBatchDocumentsDefaultResponse): response is AnalyzeBatchDocumentsDefaultResponse;
19
+ export declare function isUnexpected(response: ListAnalyzeBatchResults200Response | ListAnalyzeBatchResultsDefaultResponse): response is ListAnalyzeBatchResultsDefaultResponse;
17
20
  export declare function isUnexpected(response: GetModel200Response | GetModelDefaultResponse): response is GetModelDefaultResponse;
18
21
  export declare function isUnexpected(response: DeleteModel204Response | DeleteModelDefaultResponse): response is DeleteModelDefaultResponse;
19
22
  export declare function isUnexpected(response: BuildModel202Response | BuildModelLogicalResponse | BuildModelDefaultResponse): response is BuildModelDefaultResponse;
@@ -1 +1 @@
1
- {"version":3,"file":"isUnexpected.d.ts","s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+BAA+B,CAAC;AAC/C,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,qCAAqC,GACrC,yCAAyC,GACzC,yCAAyC,GAC5C,QAAQ,IAAI,yCAAyC,CAAC;AACzD,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,2BAA2B,GAC3B,+BAA+B,GAC/B,+BAA+B,GAClC,QAAQ,IAAI,+BAA+B,CAAC;AAC/C,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,4BAA4B,GAAG,gCAAgC,GACxE,QAAQ,IAAI,gCAAgC,CAAC;AAChD,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,kCAAkC,GAAG,sCAAsC,GACpF,QAAQ,IAAI,sCAAsC,CAAC;AACtD,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,2BAA2B,GAC3B,+BAA+B,GAC/B,+BAA+B,GAClC,QAAQ,IAAI,+BAA+B,CAAC"}
@@ -1,17 +1,20 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
2
+ // Licensed under the MIT License.
3
3
  const responseMap = {
4
4
  "GET /operations": ["200"],
5
5
  "GET /operations/{operationId}": ["200"],
6
6
  "GET /info": ["200"],
7
7
  "GET /documentModels/{modelId}/analyzeResults/{resultId}": ["200"],
8
+ "DELETE /documentModels/{modelId}/analyzeResults/{resultId}": ["204"],
8
9
  "GET /documentModels/{modelId}/analyzeResults/{resultId}/pdf": ["200"],
9
10
  "GET /documentModels/{modelId}/analyzeResults/{resultId}/figures/{figureId}": ["200"],
10
11
  "GET /documentModels/{modelId}:analyze": ["200", "202"],
11
12
  "POST /documentModels/{modelId}:analyze": ["202"],
12
13
  "GET /documentModels/{modelId}/analyzeBatchResults/{resultId}": ["200"],
14
+ "DELETE /documentModels/{modelId}/analyzeBatchResults/{resultId}": ["204"],
13
15
  "GET /documentModels/{modelId}:analyzeBatch": ["200", "202"],
14
16
  "POST /documentModels/{modelId}:analyzeBatch": ["202"],
17
+ "GET /documentModels/{modelId}/analyzeBatchResults": ["200"],
15
18
  "GET /documentModels/{modelId}": ["200"],
16
19
  "DELETE /documentModels/{modelId}": ["204"],
17
20
  "GET /documentModels:build": ["200", "202"],
@@ -1 +1 @@
1
- {"version":3,"file":"isUnexpected.js","sourceRoot":"","sources":["../../src/isUnexpected.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AA6ElC,MAAM,WAAW,GAA6B;IAC5C,iBAAiB,EAAE,CAAC,KAAK,CAAC;IAC1B,+BAA+B,EAAE,CAAC,KAAK,CAAC;IACxC,WAAW,EAAE,CAAC,KAAK,CAAC;IACpB,yDAAyD,EAAE,CAAC,KAAK,CAAC;IAClE,6DAA6D,EAAE,CAAC,KAAK,CAAC;IACtE,4EAA4E,EAAE,CAAC,KAAK,CAAC;IACrF,uCAAuC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IACvD,wCAAwC,EAAE,CAAC,KAAK,CAAC;IACjD,8DAA8D,EAAE,CAAC,KAAK,CAAC;IACvE,4CAA4C,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IAC5D,6CAA6C,EAAE,CAAC,KAAK,CAAC;IACtD,+BAA+B,EAAE,CAAC,KAAK,CAAC;IACxC,kCAAkC,EAAE,CAAC,KAAK,CAAC;IAC3C,2BAA2B,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IAC3C,4BAA4B,EAAE,CAAC,KAAK,CAAC;IACrC,6BAA6B,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IAC7C,8BAA8B,EAAE,CAAC,KAAK,CAAC;IACvC,oCAAoC,EAAE,CAAC,KAAK,CAAC;IAC7C,sCAAsC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IACtD,uCAAuC,EAAE,CAAC,KAAK,CAAC;IAChD,qBAAqB,EAAE,CAAC,KAAK,CAAC;IAC9B,gCAAgC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IAChD,iCAAiC,EAAE,CAAC,KAAK,CAAC;IAC1C,0BAA0B,EAA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,CAAC;oBACf,KAAK,GAAG,KAAK,CAAC;oBACd,MAAM;gBACR,CAAC;gBACD,SAAS;YACX,CAAC;YAED,8CAA8C;YAC9C,wDAAwD;YACxD,2CAA2C;YAC3C,IAAI,cAAc,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;gBACvC,KAAK,GAAG,KAAK,CAAC;gBACd,MAAM;YACR,CAAC;QACH,CAAC;QAED,qDAAqD;QACrD,sEAAsE;QACtE,IAAI,KAAK,IAAI,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;YAC/C,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC;YAClC,YAAY,GAAG,KAAK,CAAC;QACvB,CAAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n ListOperations200Response,\n ListOperationsDefaultResponse,\n GetDocumentModelBuildOperation200Response,\n GetDocumentModelBuildOperationDefaultResponse,\n GetDocumentModelComposeOperation200Response,\n GetDocumentModelComposeOperationDefaultResponse,\n GetDocumentModelCopyToOperation200Response,\n GetDocumentModelCopyToOperationDefaultResponse,\n GetDocumentClassifierCopyToOperation200Response,\n GetDocumentClassifierCopyToOperationDefaultResponse,\n GetDocumentClassifierBuildOperation200Response,\n GetDocumentClassifierBuildOperationDefaultResponse,\n GetOperation200Response,\n GetOperationDefaultResponse,\n GetResourceInfo200Response,\n GetResourceInfoDefaultResponse,\n GetAnalyzeResult200Response,\n GetAnalyzeResultDefaultResponse,\n GetAnalyzeResultPdf200Response,\n GetAnalyzeResultPdfDefaultResponse,\n GetAnalyzeResultFigure200Response,\n GetAnalyzeResultFigureDefaultResponse,\n AnalyzeDocumentFromStream202Response,\n AnalyzeDocumentFromStreamLogicalResponse,\n AnalyzeDocumentFromStreamDefaultResponse,\n AnalyzeDocument202Response,\n AnalyzeDocumentLogicalResponse,\n AnalyzeDocumentDefaultResponse,\n GetAnalyzeBatchResult200Response,\n GetAnalyzeBatchResultDefaultResponse,\n AnalyzeBatchDocuments202Response,\n AnalyzeBatchDocumentsLogicalResponse,\n AnalyzeBatchDocumentsDefaultResponse,\n GetModel200Response,\n GetModelDefaultResponse,\n DeleteModel204Response,\n DeleteModelDefaultResponse,\n BuildModel202Response,\n BuildModelLogicalResponse,\n BuildModelDefaultResponse,\n ComposeModel202Response,\n ComposeModelLogicalResponse,\n ComposeModelDefaultResponse,\n AuthorizeModelCopy200Response,\n AuthorizeModelCopyDefaultResponse,\n CopyModelTo202Response,\n CopyModelToLogicalResponse,\n CopyModelToDefaultResponse,\n ListModels200Response,\n ListModelsDefaultResponse,\n BuildClassifier202Response,\n BuildClassifierLogicalResponse,\n BuildClassifierDefaultResponse,\n ListClassifiers200Response,\n ListClassifiersDefaultResponse,\n GetClassifier200Response,\n GetClassifierDefaultResponse,\n DeleteClassifier204Response,\n DeleteClassifierDefaultResponse,\n ClassifyDocumentFromStream202Response,\n ClassifyDocumentFromStreamLogicalResponse,\n ClassifyDocumentFromStreamDefaultResponse,\n ClassifyDocument202Response,\n ClassifyDocumentLogicalResponse,\n ClassifyDocumentDefaultResponse,\n GetClassifyResult200Response,\n GetClassifyResultDefaultResponse,\n AuthorizeClassifierCopy200Response,\n AuthorizeClassifierCopyDefaultResponse,\n CopyClassifierTo202Response,\n CopyClassifierToLogicalResponse,\n CopyClassifierToDefaultResponse,\n} from \"./responses.js\";\n\nconst responseMap: Record<string, string[]> = {\n \"GET /operations\": [\"200\"],\n \"GET /operations/{operationId}\": [\"200\"],\n \"GET /info\": [\"200\"],\n \"GET /documentModels/{modelId}/analyzeResults/{resultId}\": [\"200\"],\n \"GET /documentModels/{modelId}/analyzeResults/{resultId}/pdf\": [\"200\"],\n \"GET /documentModels/{modelId}/analyzeResults/{resultId}/figures/{figureId}\": [\"200\"],\n \"GET /documentModels/{modelId}:analyze\": [\"200\", \"202\"],\n \"POST /documentModels/{modelId}:analyze\": [\"202\"],\n \"GET /documentModels/{modelId}/analyzeBatchResults/{resultId}\": [\"200\"],\n \"GET /documentModels/{modelId}:analyzeBatch\": [\"200\", \"202\"],\n \"POST /documentModels/{modelId}:analyzeBatch\": [\"202\"],\n \"GET /documentModels/{modelId}\": [\"200\"],\n \"DELETE /documentModels/{modelId}\": [\"204\"],\n \"GET /documentModels:build\": [\"200\", \"202\"],\n \"POST /documentModels:build\": [\"202\"],\n \"GET /documentModels:compose\": [\"200\", \"202\"],\n \"POST /documentModels:compose\": [\"202\"],\n \"POST /documentModels:authorizeCopy\": [\"200\"],\n \"GET /documentModels/{modelId}:copyTo\": [\"200\", \"202\"],\n \"POST /documentModels/{modelId}:copyTo\": [\"202\"],\n \"GET /documentModels\": [\"200\"],\n \"GET /documentClassifiers:build\": [\"200\", \"202\"],\n \"POST /documentClassifiers:build\": [\"202\"],\n \"GET /documentClassifiers\": [\"200\"],\n \"GET /documentClassifiers/{classifierId}\": [\"200\"],\n \"DELETE /documentClassifiers/{classifierId}\": [\"204\"],\n \"GET /documentClassifiers/{classifierId}:analyze\": [\"200\", \"202\"],\n \"POST /documentClassifiers/{classifierId}:analyze\": [\"202\"],\n \"GET /documentClassifiers/{classifierId}/analyzeResults/{resultId}\": [\"200\"],\n \"POST /documentClassifiers:authorizeCopy\": [\"200\"],\n \"GET /documentClassifiers/{classifierId}:copyTo\": [\"200\", \"202\"],\n \"POST /documentClassifiers/{classifierId}:copyTo\": [\"202\"],\n};\n\nexport function isUnexpected(\n response: ListOperations200Response | ListOperationsDefaultResponse,\n): response is ListOperationsDefaultResponse;\nexport function isUnexpected(\n response:\n | GetDocumentModelBuildOperation200Response\n | GetDocumentModelBuildOperationDefaultResponse,\n): response is GetDocumentModelBuildOperationDefaultResponse;\nexport function isUnexpected(\n response:\n | GetDocumentModelComposeOperation200Response\n | GetDocumentModelComposeOperationDefaultResponse,\n): response is GetDocumentModelComposeOperationDefaultResponse;\nexport function isUnexpected(\n response:\n | GetDocumentModelCopyToOperation200Response\n | GetDocumentModelCopyToOperationDefaultResponse,\n): response is GetDocumentModelCopyToOperationDefaultResponse;\nexport function isUnexpected(\n response:\n | GetDocumentClassifierCopyToOperation200Response\n | GetDocumentClassifierCopyToOperationDefaultResponse,\n): response is GetDocumentClassifierCopyToOperationDefaultResponse;\nexport function isUnexpected(\n response:\n | GetDocumentClassifierBuildOperation200Response\n | GetDocumentClassifierBuildOperationDefaultResponse,\n): response is GetDocumentClassifierBuildOperationDefaultResponse;\nexport function isUnexpected(\n response: GetOperation200Response | GetOperationDefaultResponse,\n): response is GetOperationDefaultResponse;\nexport function isUnexpected(\n response: GetResourceInfo200Response | GetResourceInfoDefaultResponse,\n): response is GetResourceInfoDefaultResponse;\nexport function isUnexpected(\n response: GetAnalyzeResult200Response | GetAnalyzeResultDefaultResponse,\n): response is GetAnalyzeResultDefaultResponse;\nexport function isUnexpected(\n response: GetAnalyzeResultPdf200Response | GetAnalyzeResultPdfDefaultResponse,\n): response is GetAnalyzeResultPdfDefaultResponse;\nexport function isUnexpected(\n response: GetAnalyzeResultFigure200Response | GetAnalyzeResultFigureDefaultResponse,\n): response is GetAnalyzeResultFigureDefaultResponse;\nexport function isUnexpected(\n response:\n | AnalyzeDocumentFromStream202Response\n | AnalyzeDocumentFromStreamLogicalResponse\n | AnalyzeDocumentFromStreamDefaultResponse,\n): response is AnalyzeDocumentFromStreamDefaultResponse;\nexport function isUnexpected(\n response:\n | AnalyzeDocument202Response\n | AnalyzeDocumentLogicalResponse\n | AnalyzeDocumentDefaultResponse,\n): response is AnalyzeDocumentDefaultResponse;\nexport function isUnexpected(\n response: GetAnalyzeBatchResult200Response | GetAnalyzeBatchResultDefaultResponse,\n): response is GetAnalyzeBatchResultDefaultResponse;\nexport function isUnexpected(\n response:\n | AnalyzeBatchDocuments202Response\n | AnalyzeBatchDocumentsLogicalResponse\n | AnalyzeBatchDocumentsDefaultResponse,\n): response is AnalyzeBatchDocumentsDefaultResponse;\nexport function isUnexpected(\n response: GetModel200Response | GetModelDefaultResponse,\n): response is GetModelDefaultResponse;\nexport function isUnexpected(\n response: DeleteModel204Response | DeleteModelDefaultResponse,\n): response is DeleteModelDefaultResponse;\nexport function isUnexpected(\n response: BuildModel202Response | BuildModelLogicalResponse | BuildModelDefaultResponse,\n): response is BuildModelDefaultResponse;\nexport function isUnexpected(\n response: ComposeModel202Response | ComposeModelLogicalResponse | ComposeModelDefaultResponse,\n): response is ComposeModelDefaultResponse;\nexport function isUnexpected(\n response: AuthorizeModelCopy200Response | AuthorizeModelCopyDefaultResponse,\n): response is AuthorizeModelCopyDefaultResponse;\nexport function isUnexpected(\n response: CopyModelTo202Response | CopyModelToLogicalResponse | CopyModelToDefaultResponse,\n): response is CopyModelToDefaultResponse;\nexport function isUnexpected(\n response: ListModels200Response | ListModelsDefaultResponse,\n): response is ListModelsDefaultResponse;\nexport function isUnexpected(\n response:\n | BuildClassifier202Response\n | BuildClassifierLogicalResponse\n | BuildClassifierDefaultResponse,\n): response is BuildClassifierDefaultResponse;\nexport function isUnexpected(\n response: ListClassifiers200Response | ListClassifiersDefaultResponse,\n): response is ListClassifiersDefaultResponse;\nexport function isUnexpected(\n response: GetClassifier200Response | GetClassifierDefaultResponse,\n): response is GetClassifierDefaultResponse;\nexport function isUnexpected(\n response: DeleteClassifier204Response | DeleteClassifierDefaultResponse,\n): response is DeleteClassifierDefaultResponse;\nexport function isUnexpected(\n response:\n | ClassifyDocumentFromStream202Response\n | ClassifyDocumentFromStreamLogicalResponse\n | ClassifyDocumentFromStreamDefaultResponse,\n): response is ClassifyDocumentFromStreamDefaultResponse;\nexport function isUnexpected(\n response:\n | ClassifyDocument202Response\n | ClassifyDocumentLogicalResponse\n | ClassifyDocumentDefaultResponse,\n): response is ClassifyDocumentDefaultResponse;\nexport function isUnexpected(\n response: GetClassifyResult200Response | GetClassifyResultDefaultResponse,\n): response is GetClassifyResultDefaultResponse;\nexport function isUnexpected(\n response: AuthorizeClassifierCopy200Response | AuthorizeClassifierCopyDefaultResponse,\n): response is AuthorizeClassifierCopyDefaultResponse;\nexport function isUnexpected(\n response:\n | CopyClassifierTo202Response\n | CopyClassifierToLogicalResponse\n | CopyClassifierToDefaultResponse,\n): response is CopyClassifierToDefaultResponse;\nexport function isUnexpected(\n response:\n | ListOperations200Response\n | ListOperationsDefaultResponse\n | GetDocumentModelBuildOperation200Response\n | GetDocumentModelBuildOperationDefaultResponse\n | GetDocumentModelComposeOperation200Response\n | GetDocumentModelComposeOperationDefaultResponse\n | GetDocumentModelCopyToOperation200Response\n | GetDocumentModelCopyToOperationDefaultResponse\n | GetDocumentClassifierCopyToOperation200Response\n | GetDocumentClassifierCopyToOperationDefaultResponse\n | GetDocumentClassifierBuildOperation200Response\n | GetDocumentClassifierBuildOperationDefaultResponse\n | GetOperation200Response\n | GetOperationDefaultResponse\n | GetResourceInfo200Response\n | GetResourceInfoDefaultResponse\n | GetAnalyzeResult200Response\n | GetAnalyzeResultDefaultResponse\n | GetAnalyzeResultPdf200Response\n | GetAnalyzeResultPdfDefaultResponse\n | GetAnalyzeResultFigure200Response\n | GetAnalyzeResultFigureDefaultResponse\n | AnalyzeDocumentFromStream202Response\n | AnalyzeDocumentFromStreamLogicalResponse\n | AnalyzeDocumentFromStreamDefaultResponse\n | AnalyzeDocument202Response\n | AnalyzeDocumentLogicalResponse\n | AnalyzeDocumentDefaultResponse\n | GetAnalyzeBatchResult200Response\n | GetAnalyzeBatchResultDefaultResponse\n | AnalyzeBatchDocuments202Response\n | AnalyzeBatchDocumentsLogicalResponse\n | AnalyzeBatchDocumentsDefaultResponse\n | GetModel200Response\n | GetModelDefaultResponse\n | DeleteModel204Response\n | DeleteModelDefaultResponse\n | BuildModel202Response\n | BuildModelLogicalResponse\n | BuildModelDefaultResponse\n | ComposeModel202Response\n | ComposeModelLogicalResponse\n | ComposeModelDefaultResponse\n | AuthorizeModelCopy200Response\n | AuthorizeModelCopyDefaultResponse\n | CopyModelTo202Response\n | CopyModelToLogicalResponse\n | CopyModelToDefaultResponse\n | ListModels200Response\n | ListModelsDefaultResponse\n | BuildClassifier202Response\n | BuildClassifierLogicalResponse\n | BuildClassifierDefaultResponse\n | ListClassifiers200Response\n | ListClassifiersDefaultResponse\n | GetClassifier200Response\n | GetClassifierDefaultResponse\n | DeleteClassifier204Response\n | DeleteClassifierDefaultResponse\n | ClassifyDocumentFromStream202Response\n | ClassifyDocumentFromStreamLogicalResponse\n | ClassifyDocumentFromStreamDefaultResponse\n | ClassifyDocument202Response\n | ClassifyDocumentLogicalResponse\n | ClassifyDocumentDefaultResponse\n | GetClassifyResult200Response\n | GetClassifyResultDefaultResponse\n | AuthorizeClassifierCopy200Response\n | AuthorizeClassifierCopyDefaultResponse\n | CopyClassifierTo202Response\n | CopyClassifierToLogicalResponse\n | CopyClassifierToDefaultResponse,\n): response is\n | ListOperationsDefaultResponse\n | GetDocumentModelBuildOperationDefaultResponse\n | GetDocumentModelComposeOperationDefaultResponse\n | GetDocumentModelCopyToOperationDefaultResponse\n | GetDocumentClassifierCopyToOperationDefaultResponse\n | GetDocumentClassifierBuildOperationDefaultResponse\n | GetOperationDefaultResponse\n | GetResourceInfoDefaultResponse\n | GetAnalyzeResultDefaultResponse\n | GetAnalyzeResultPdfDefaultResponse\n | GetAnalyzeResultFigureDefaultResponse\n | AnalyzeDocumentFromStreamDefaultResponse\n | AnalyzeDocumentDefaultResponse\n | GetAnalyzeBatchResultDefaultResponse\n | AnalyzeBatchDocumentsDefaultResponse\n | GetModelDefaultResponse\n | DeleteModelDefaultResponse\n | BuildModelDefaultResponse\n | ComposeModelDefaultResponse\n | AuthorizeModelCopyDefaultResponse\n | CopyModelToDefaultResponse\n | ListModelsDefaultResponse\n | BuildClassifierDefaultResponse\n | ListClassifiersDefaultResponse\n | GetClassifierDefaultResponse\n | DeleteClassifierDefaultResponse\n | ClassifyDocumentFromStreamDefaultResponse\n | ClassifyDocumentDefaultResponse\n | GetClassifyResultDefaultResponse\n | AuthorizeClassifierCopyDefaultResponse\n | CopyClassifierToDefaultResponse {\n const lroOriginal = response.headers[\"x-ms-original-url\"];\n const url = new URL(lroOriginal ?? response.request.url);\n const method = response.request.method;\n let pathDetails = responseMap[`${method} ${url.pathname}`];\n if (!pathDetails) {\n pathDetails = getParametrizedPathSuccess(method, url.pathname);\n }\n return !pathDetails.includes(response.status);\n}\n\nfunction getParametrizedPathSuccess(method: string, path: string): string[] {\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: string[] = [];\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(responseMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
1
+ {"version":3,"file":"isUnexpected.js","sourceRoot":"","sources":["../../src/isUnexpected.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAmFlC,MAAM,WAAW,GAA6B;IAC5C,iBAAiB,EAAE,CAAC,KAAK,CAAC;IAC1B,+BAA+B,EAAE,CAAC,KAAK,CAAC;IACxC,WAAW,EAAE,CAAC,KAAK,CAAC;IACpB,yDAAyD,EAAE,CAAC,KAAK,CAAC;IAClE,4DAA4D,EAAE,CAAC,KAAK,CAAC;IACrE,6DAA6D,EAAE,CAAC,KAAK,CAAC;IACtE,4EAA4E,EAAE,CAAC,KAAK,CAAC;IACrF,uCAAuC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IACvD,wCAAwC,EAAE,CAAC,KAAK,CAAC;IACjD,8DAA8D,EAAE,CAAC,KAAK,CAAC;IACvE,iEAAiE,EAAE,CAAC,KAAK,CAAC;IAC1E,4CAA4C,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IAC5D,6CAA6C,EAAE,CAAC,KAAK,CAAC;IACtD,mDAAmD,EAAE,CAAC,KAAK,CAAC;IAC5D,+BAA+B,EAAE,CAAC,KAAK,CAAC;IACxC,kCAAkC,EAAE,CAAC,KAAK,CAAC;IAC3C,2BAA2B,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IAC3C,4BAA4B,EAAE,CAAC,KAAK,CAAC;IACrC,6BAA6B,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IAC7C,8BAA8B,EAAE,CAAC,KAAK,CAAC;IACvC,oCAAoC,EAAE,CAAC,KAAK,CAAC;IAC7C,sCAAsC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IACtD,uCAAuC,EAAE,CAAC,KAAK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C,0CAAE,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,IAAI,CAC1E,SAAS,CAAC,CAAC,CAAC,IAAI,EAAE,CACnB,CAAC;gBAEF,IAAI,CAAC,SAAS,EAAE,CAAC;oBACf,KAAK,GAAG,KAAK,CAAC;oBACd,MAAM;gBACR,CAAC;gBACD,SAAS;YACX,CAAC;YAED,8CAA8C;YAC9C,wDAAwD;YACxD,2CAA2C;YAC3C,IAAI,cAAc,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;gBACvC,KAAK,GAAG,KAAK,CAAC;gBACd,MAAM;YACR,CAAC;QACH,CAAC;QAED,qDAAqD;QACrD,sEAAsE;QACtE,IAAI,KAAK,IAAI,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;YAC/C,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC;YAClC,YAAY,GAAG,KAAK,CAAC;QACvB,CAAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n ListOperations200Response,\n ListOperationsDefaultResponse,\n GetDocumentModelBuildOperation200Response,\n GetDocumentModelBuildOperationDefaultResponse,\n GetDocumentModelComposeOperation200Response,\n GetDocumentModelComposeOperationDefaultResponse,\n GetDocumentModelCopyToOperation200Response,\n GetDocumentModelCopyToOperationDefaultResponse,\n GetDocumentClassifierCopyToOperation200Response,\n GetDocumentClassifierCopyToOperationDefaultResponse,\n GetDocumentClassifierBuildOperation200Response,\n GetDocumentClassifierBuildOperationDefaultResponse,\n GetOperation200Response,\n GetOperationDefaultResponse,\n GetResourceDetails200Response,\n GetResourceDetailsDefaultResponse,\n GetAnalyzeResult200Response,\n GetAnalyzeResultDefaultResponse,\n DeleteAnalyzeResult204Response,\n DeleteAnalyzeResultDefaultResponse,\n GetAnalyzeResultPdf200Response,\n GetAnalyzeResultPdfDefaultResponse,\n GetAnalyzeResultFigure200Response,\n GetAnalyzeResultFigureDefaultResponse,\n AnalyzeDocumentFromStream202Response,\n AnalyzeDocumentFromStreamLogicalResponse,\n AnalyzeDocumentFromStreamDefaultResponse,\n AnalyzeDocument202Response,\n AnalyzeDocumentLogicalResponse,\n AnalyzeDocumentDefaultResponse,\n GetAnalyzeBatchResult200Response,\n GetAnalyzeBatchResultDefaultResponse,\n DeleteAnalyzeBatchResult204Response,\n DeleteAnalyzeBatchResultDefaultResponse,\n AnalyzeBatchDocuments202Response,\n AnalyzeBatchDocumentsLogicalResponse,\n AnalyzeBatchDocumentsDefaultResponse,\n ListAnalyzeBatchResults200Response,\n ListAnalyzeBatchResultsDefaultResponse,\n GetModel200Response,\n GetModelDefaultResponse,\n DeleteModel204Response,\n DeleteModelDefaultResponse,\n BuildModel202Response,\n BuildModelLogicalResponse,\n BuildModelDefaultResponse,\n ComposeModel202Response,\n ComposeModelLogicalResponse,\n ComposeModelDefaultResponse,\n AuthorizeModelCopy200Response,\n AuthorizeModelCopyDefaultResponse,\n CopyModelTo202Response,\n CopyModelToLogicalResponse,\n CopyModelToDefaultResponse,\n ListModels200Response,\n ListModelsDefaultResponse,\n BuildClassifier202Response,\n BuildClassifierLogicalResponse,\n BuildClassifierDefaultResponse,\n ListClassifiers200Response,\n ListClassifiersDefaultResponse,\n GetClassifier200Response,\n GetClassifierDefaultResponse,\n DeleteClassifier204Response,\n DeleteClassifierDefaultResponse,\n ClassifyDocumentFromStream202Response,\n ClassifyDocumentFromStreamLogicalResponse,\n ClassifyDocumentFromStreamDefaultResponse,\n ClassifyDocument202Response,\n ClassifyDocumentLogicalResponse,\n ClassifyDocumentDefaultResponse,\n GetClassifyResult200Response,\n GetClassifyResultDefaultResponse,\n AuthorizeClassifierCopy200Response,\n AuthorizeClassifierCopyDefaultResponse,\n CopyClassifierTo202Response,\n CopyClassifierToLogicalResponse,\n CopyClassifierToDefaultResponse,\n} from \"./responses.js\";\n\nconst responseMap: Record<string, string[]> = {\n \"GET /operations\": [\"200\"],\n \"GET /operations/{operationId}\": [\"200\"],\n \"GET /info\": [\"200\"],\n \"GET /documentModels/{modelId}/analyzeResults/{resultId}\": [\"200\"],\n \"DELETE /documentModels/{modelId}/analyzeResults/{resultId}\": [\"204\"],\n \"GET /documentModels/{modelId}/analyzeResults/{resultId}/pdf\": [\"200\"],\n \"GET /documentModels/{modelId}/analyzeResults/{resultId}/figures/{figureId}\": [\"200\"],\n \"GET /documentModels/{modelId}:analyze\": [\"200\", \"202\"],\n \"POST /documentModels/{modelId}:analyze\": [\"202\"],\n \"GET /documentModels/{modelId}/analyzeBatchResults/{resultId}\": [\"200\"],\n \"DELETE /documentModels/{modelId}/analyzeBatchResults/{resultId}\": [\"204\"],\n \"GET /documentModels/{modelId}:analyzeBatch\": [\"200\", \"202\"],\n \"POST /documentModels/{modelId}:analyzeBatch\": [\"202\"],\n \"GET /documentModels/{modelId}/analyzeBatchResults\": [\"200\"],\n \"GET /documentModels/{modelId}\": [\"200\"],\n \"DELETE /documentModels/{modelId}\": [\"204\"],\n \"GET /documentModels:build\": [\"200\", \"202\"],\n \"POST /documentModels:build\": [\"202\"],\n \"GET /documentModels:compose\": [\"200\", \"202\"],\n \"POST /documentModels:compose\": [\"202\"],\n \"POST /documentModels:authorizeCopy\": [\"200\"],\n \"GET /documentModels/{modelId}:copyTo\": [\"200\", \"202\"],\n \"POST /documentModels/{modelId}:copyTo\": [\"202\"],\n \"GET /documentModels\": [\"200\"],\n \"GET /documentClassifiers:build\": [\"200\", \"202\"],\n \"POST /documentClassifiers:build\": [\"202\"],\n \"GET /documentClassifiers\": [\"200\"],\n \"GET /documentClassifiers/{classifierId}\": [\"200\"],\n \"DELETE /documentClassifiers/{classifierId}\": [\"204\"],\n \"GET /documentClassifiers/{classifierId}:analyze\": [\"200\", \"202\"],\n \"POST /documentClassifiers/{classifierId}:analyze\": [\"202\"],\n \"GET /documentClassifiers/{classifierId}/analyzeResults/{resultId}\": [\"200\"],\n \"POST /documentClassifiers:authorizeCopy\": [\"200\"],\n \"GET /documentClassifiers/{classifierId}:copyTo\": [\"200\", \"202\"],\n \"POST /documentClassifiers/{classifierId}:copyTo\": [\"202\"],\n};\n\nexport function isUnexpected(\n response: ListOperations200Response | ListOperationsDefaultResponse,\n): response is ListOperationsDefaultResponse;\nexport function isUnexpected(\n response:\n | GetDocumentModelBuildOperation200Response\n | GetDocumentModelBuildOperationDefaultResponse,\n): response is GetDocumentModelBuildOperationDefaultResponse;\nexport function isUnexpected(\n response:\n | GetDocumentModelComposeOperation200Response\n | GetDocumentModelComposeOperationDefaultResponse,\n): response is GetDocumentModelComposeOperationDefaultResponse;\nexport function isUnexpected(\n response:\n | GetDocumentModelCopyToOperation200Response\n | GetDocumentModelCopyToOperationDefaultResponse,\n): response is GetDocumentModelCopyToOperationDefaultResponse;\nexport function isUnexpected(\n response:\n | GetDocumentClassifierCopyToOperation200Response\n | GetDocumentClassifierCopyToOperationDefaultResponse,\n): response is GetDocumentClassifierCopyToOperationDefaultResponse;\nexport function isUnexpected(\n response:\n | GetDocumentClassifierBuildOperation200Response\n | GetDocumentClassifierBuildOperationDefaultResponse,\n): response is GetDocumentClassifierBuildOperationDefaultResponse;\nexport function isUnexpected(\n response: GetOperation200Response | GetOperationDefaultResponse,\n): response is GetOperationDefaultResponse;\nexport function isUnexpected(\n response: GetResourceDetails200Response | GetResourceDetailsDefaultResponse,\n): response is GetResourceDetailsDefaultResponse;\nexport function isUnexpected(\n response: GetAnalyzeResult200Response | GetAnalyzeResultDefaultResponse,\n): response is GetAnalyzeResultDefaultResponse;\nexport function isUnexpected(\n response: DeleteAnalyzeResult204Response | DeleteAnalyzeResultDefaultResponse,\n): response is DeleteAnalyzeResultDefaultResponse;\nexport function isUnexpected(\n response: GetAnalyzeResultPdf200Response | GetAnalyzeResultPdfDefaultResponse,\n): response is GetAnalyzeResultPdfDefaultResponse;\nexport function isUnexpected(\n response: GetAnalyzeResultFigure200Response | GetAnalyzeResultFigureDefaultResponse,\n): response is GetAnalyzeResultFigureDefaultResponse;\nexport function isUnexpected(\n response:\n | AnalyzeDocumentFromStream202Response\n | AnalyzeDocumentFromStreamLogicalResponse\n | AnalyzeDocumentFromStreamDefaultResponse,\n): response is AnalyzeDocumentFromStreamDefaultResponse;\nexport function isUnexpected(\n response:\n | AnalyzeDocument202Response\n | AnalyzeDocumentLogicalResponse\n | AnalyzeDocumentDefaultResponse,\n): response is AnalyzeDocumentDefaultResponse;\nexport function isUnexpected(\n response: GetAnalyzeBatchResult200Response | GetAnalyzeBatchResultDefaultResponse,\n): response is GetAnalyzeBatchResultDefaultResponse;\nexport function isUnexpected(\n response: DeleteAnalyzeBatchResult204Response | DeleteAnalyzeBatchResultDefaultResponse,\n): response is DeleteAnalyzeBatchResultDefaultResponse;\nexport function isUnexpected(\n response:\n | AnalyzeBatchDocuments202Response\n | AnalyzeBatchDocumentsLogicalResponse\n | AnalyzeBatchDocumentsDefaultResponse,\n): response is AnalyzeBatchDocumentsDefaultResponse;\nexport function isUnexpected(\n response: ListAnalyzeBatchResults200Response | ListAnalyzeBatchResultsDefaultResponse,\n): response is ListAnalyzeBatchResultsDefaultResponse;\nexport function isUnexpected(\n response: GetModel200Response | GetModelDefaultResponse,\n): response is GetModelDefaultResponse;\nexport function isUnexpected(\n response: DeleteModel204Response | DeleteModelDefaultResponse,\n): response is DeleteModelDefaultResponse;\nexport function isUnexpected(\n response: BuildModel202Response | BuildModelLogicalResponse | BuildModelDefaultResponse,\n): response is BuildModelDefaultResponse;\nexport function isUnexpected(\n response: ComposeModel202Response | ComposeModelLogicalResponse | ComposeModelDefaultResponse,\n): response is ComposeModelDefaultResponse;\nexport function isUnexpected(\n response: AuthorizeModelCopy200Response | AuthorizeModelCopyDefaultResponse,\n): response is AuthorizeModelCopyDefaultResponse;\nexport function isUnexpected(\n response: CopyModelTo202Response | CopyModelToLogicalResponse | CopyModelToDefaultResponse,\n): response is CopyModelToDefaultResponse;\nexport function isUnexpected(\n response: ListModels200Response | ListModelsDefaultResponse,\n): response is ListModelsDefaultResponse;\nexport function isUnexpected(\n response:\n | BuildClassifier202Response\n | BuildClassifierLogicalResponse\n | BuildClassifierDefaultResponse,\n): response is BuildClassifierDefaultResponse;\nexport function isUnexpected(\n response: ListClassifiers200Response | ListClassifiersDefaultResponse,\n): response is ListClassifiersDefaultResponse;\nexport function isUnexpected(\n response: GetClassifier200Response | GetClassifierDefaultResponse,\n): response is GetClassifierDefaultResponse;\nexport function isUnexpected(\n response: DeleteClassifier204Response | DeleteClassifierDefaultResponse,\n): response is DeleteClassifierDefaultResponse;\nexport function isUnexpected(\n response:\n | ClassifyDocumentFromStream202Response\n | ClassifyDocumentFromStreamLogicalResponse\n | ClassifyDocumentFromStreamDefaultResponse,\n): response is ClassifyDocumentFromStreamDefaultResponse;\nexport function isUnexpected(\n response:\n | ClassifyDocument202Response\n | ClassifyDocumentLogicalResponse\n | ClassifyDocumentDefaultResponse,\n): response is ClassifyDocumentDefaultResponse;\nexport function isUnexpected(\n response: GetClassifyResult200Response | GetClassifyResultDefaultResponse,\n): response is GetClassifyResultDefaultResponse;\nexport function isUnexpected(\n response: AuthorizeClassifierCopy200Response | AuthorizeClassifierCopyDefaultResponse,\n): response is AuthorizeClassifierCopyDefaultResponse;\nexport function isUnexpected(\n response:\n | CopyClassifierTo202Response\n | CopyClassifierToLogicalResponse\n | CopyClassifierToDefaultResponse,\n): response is CopyClassifierToDefaultResponse;\nexport function isUnexpected(\n response:\n | ListOperations200Response\n | ListOperationsDefaultResponse\n | GetDocumentModelBuildOperation200Response\n | GetDocumentModelBuildOperationDefaultResponse\n | GetDocumentModelComposeOperation200Response\n | GetDocumentModelComposeOperationDefaultResponse\n | GetDocumentModelCopyToOperation200Response\n | GetDocumentModelCopyToOperationDefaultResponse\n | GetDocumentClassifierCopyToOperation200Response\n | GetDocumentClassifierCopyToOperationDefaultResponse\n | GetDocumentClassifierBuildOperation200Response\n | GetDocumentClassifierBuildOperationDefaultResponse\n | GetOperation200Response\n | GetOperationDefaultResponse\n | GetResourceDetails200Response\n | GetResourceDetailsDefaultResponse\n | GetAnalyzeResult200Response\n | GetAnalyzeResultDefaultResponse\n | DeleteAnalyzeResult204Response\n | DeleteAnalyzeResultDefaultResponse\n | GetAnalyzeResultPdf200Response\n | GetAnalyzeResultPdfDefaultResponse\n | GetAnalyzeResultFigure200Response\n | GetAnalyzeResultFigureDefaultResponse\n | AnalyzeDocumentFromStream202Response\n | AnalyzeDocumentFromStreamLogicalResponse\n | AnalyzeDocumentFromStreamDefaultResponse\n | AnalyzeDocument202Response\n | AnalyzeDocumentLogicalResponse\n | AnalyzeDocumentDefaultResponse\n | GetAnalyzeBatchResult200Response\n | GetAnalyzeBatchResultDefaultResponse\n | DeleteAnalyzeBatchResult204Response\n | DeleteAnalyzeBatchResultDefaultResponse\n | AnalyzeBatchDocuments202Response\n | AnalyzeBatchDocumentsLogicalResponse\n | AnalyzeBatchDocumentsDefaultResponse\n | ListAnalyzeBatchResults200Response\n | ListAnalyzeBatchResultsDefaultResponse\n | GetModel200Response\n | GetModelDefaultResponse\n | DeleteModel204Response\n | DeleteModelDefaultResponse\n | BuildModel202Response\n | BuildModelLogicalResponse\n | BuildModelDefaultResponse\n | ComposeModel202Response\n | ComposeModelLogicalResponse\n | ComposeModelDefaultResponse\n | AuthorizeModelCopy200Response\n | AuthorizeModelCopyDefaultResponse\n | CopyModelTo202Response\n | CopyModelToLogicalResponse\n | CopyModelToDefaultResponse\n | ListModels200Response\n | ListModelsDefaultResponse\n | BuildClassifier202Response\n | BuildClassifierLogicalResponse\n | BuildClassifierDefaultResponse\n | ListClassifiers200Response\n | ListClassifiersDefaultResponse\n | GetClassifier200Response\n | GetClassifierDefaultResponse\n | DeleteClassifier204Response\n | DeleteClassifierDefaultResponse\n | ClassifyDocumentFromStream202Response\n | ClassifyDocumentFromStreamLogicalResponse\n | ClassifyDocumentFromStreamDefaultResponse\n | ClassifyDocument202Response\n | ClassifyDocumentLogicalResponse\n | ClassifyDocumentDefaultResponse\n | GetClassifyResult200Response\n | GetClassifyResultDefaultResponse\n | AuthorizeClassifierCopy200Response\n | AuthorizeClassifierCopyDefaultResponse\n | CopyClassifierTo202Response\n | CopyClassifierToLogicalResponse\n | CopyClassifierToDefaultResponse,\n): response is\n | ListOperationsDefaultResponse\n | GetDocumentModelBuildOperationDefaultResponse\n | GetDocumentModelComposeOperationDefaultResponse\n | GetDocumentModelCopyToOperationDefaultResponse\n | GetDocumentClassifierCopyToOperationDefaultResponse\n | GetDocumentClassifierBuildOperationDefaultResponse\n | GetOperationDefaultResponse\n | GetResourceDetailsDefaultResponse\n | GetAnalyzeResultDefaultResponse\n | DeleteAnalyzeResultDefaultResponse\n | GetAnalyzeResultPdfDefaultResponse\n | GetAnalyzeResultFigureDefaultResponse\n | AnalyzeDocumentFromStreamDefaultResponse\n | AnalyzeDocumentDefaultResponse\n | GetAnalyzeBatchResultDefaultResponse\n | DeleteAnalyzeBatchResultDefaultResponse\n | AnalyzeBatchDocumentsDefaultResponse\n | ListAnalyzeBatchResultsDefaultResponse\n | GetModelDefaultResponse\n | DeleteModelDefaultResponse\n | BuildModelDefaultResponse\n | ComposeModelDefaultResponse\n | AuthorizeModelCopyDefaultResponse\n | CopyModelToDefaultResponse\n | ListModelsDefaultResponse\n | BuildClassifierDefaultResponse\n | ListClassifiersDefaultResponse\n | GetClassifierDefaultResponse\n | DeleteClassifierDefaultResponse\n | ClassifyDocumentFromStreamDefaultResponse\n | ClassifyDocumentDefaultResponse\n | GetClassifyResultDefaultResponse\n | AuthorizeClassifierCopyDefaultResponse\n | CopyClassifierToDefaultResponse {\n const lroOriginal = response.headers[\"x-ms-original-url\"];\n const url = new URL(lroOriginal ?? response.request.url);\n const method = response.request.method;\n let pathDetails = responseMap[`${method} ${url.pathname}`];\n if (!pathDetails) {\n pathDetails = getParametrizedPathSuccess(method, url.pathname);\n }\n return !pathDetails.includes(response.status);\n}\n\nfunction getParametrizedPathSuccess(method: string, path: string): string[] {\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: string[] = [];\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(responseMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
2
+ // Licensed under the MIT License.
3
3
  import { createClientLogger } from "@azure/logger";
4
4
  export const logger = createClientLogger("ai-document-intelligence");
5
5
  //# sourceMappingURL=logger.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,0BAA0B,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { createClientLogger } from \"@azure/logger\";\nexport const logger = createClientLogger(\"ai-document-intelligence\");\n"]}
1
+ {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,0BAA0B,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { createClientLogger } from \"@azure/logger\";\nexport const logger = createClientLogger(\"ai-document-intelligence\");\n"]}
@@ -19,7 +19,7 @@ export interface DocumentTypeDetails {
19
19
  /**
20
20
  * Custom document model build mode.
21
21
  *
22
- * Possible values: "template", "neural", "generative"
22
+ * Possible values: "template", "neural"
23
23
  */
24
24
  buildMode?: DocumentBuildMode;
25
25
  /** Description of the document semantic schema using a JSON Schema style syntax. */
@@ -113,7 +113,7 @@ export interface BuildDocumentModelRequest {
113
113
  /**
114
114
  * Custom document model build mode.
115
115
  *
116
- * Possible values: "template", "neural", "generative"
116
+ * Possible values: "template", "neural"
117
117
  */
118
118
  buildMode: DocumentBuildMode;
119
119
  /**
@@ -165,7 +165,7 @@ export interface AuthorizeCopyRequest {
165
165
  * Authorization to copy a document model to the specified target resource and
166
166
  * modelId.
167
167
  */
168
- export interface CopyAuthorization {
168
+ export interface ModelCopyAuthorization {
169
169
  /** ID of the target Azure resource where the document model should be copied to. */
170
170
  targetResourceId: string;
171
171
  /**
@@ -247,8 +247,8 @@ export type DocumentAnalysisFeature = string;
247
247
  export type ContentSourceKind = string;
248
248
  /** Alias for StringIndexType */
249
249
  export type StringIndexType = string;
250
- /** Alias for ContentFormat */
251
- export type ContentFormat = string;
250
+ /** Alias for DocumentContentFormat */
251
+ export type DocumentContentFormat = string;
252
252
  /** Alias for AnalyzeOutputOption */
253
253
  export type AnalyzeOutputOption = string;
254
254
  //# sourceMappingURL=models.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAGA,kCAAkC;AAClC,MAAM,WAAW,sBAAsB;IACrC,wCAAwC;IACxC,YAAY,EAAE,MAAM,CAAC;IACrB,wBAAwB;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,uCAAuC;AACvC,MAAM,WAAW,8BAA8B;IAC7C,wCAAwC;IACxC,YAAY,EAAE,MAAM,CAAC;IACrB,kFAAkF;IAClF,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,0BAA0B;AAC1B,MAAM,WAAW,mBAAmB;IAClC,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,oFAAoF;IACpF,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;IAClD,2CAA2C;IAC3C,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC,yEAAyE;IACzE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sEAAsE;IACtE,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,uBAAuB,EAAE,CAAC;IACrC,8EA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AClC,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC;AACvC,wCAAwC;AACxC,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAC7C,kCAAkC;AAClC,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC;AACvC,gCAAgC;AAChC,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC;AACrC,sCAAsC;AACtC,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC;AAC3C,oCAAoC;AACpC,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC"}
@@ -1,4 +1,4 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
2
+ // Licensed under the MIT License.
3
3
  export {};
4
4
  //# sourceMappingURL=models.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/** Azure Blob Storage content. */\nexport interface AzureBlobContentSource {\n /** Azure Blob Storage container URL. */\n containerUrl: string;\n /** Blob name prefix. */\n prefix?: string;\n}\n\n/** File list in Azure Blob Storage. */\nexport interface AzureBlobFileListContentSource {\n /** Azure Blob Storage container URL. */\n containerUrl: string;\n /** Path to a JSONL file within the container specifying a subset of documents. */\n fileList: string;\n}\n\n/** Document type info. */\nexport interface DocumentTypeDetails {\n /** Document model description. */\n description?: string;\n /**\n * Custom document model build mode.\n *\n * Possible values: \"template\", \"neural\", \"generative\"\n */\n buildMode?: DocumentBuildMode;\n /** Description of the document semantic schema using a JSON Schema style syntax. */\n fieldSchema?: Record<string, DocumentFieldSchema>;\n /** Estimated confidence for each field. */\n fieldConfidence?: Record<string, number>;\n /** Document model to use for analyzing documents with specified type. */\n modelId?: string;\n /** Only perform analysis if docType confidence is above threshold. */\n confidenceThreshold?: number;\n /** List of optional analysis features. */\n features?: DocumentAnalysisFeature[];\n /** List of additional fields to extract. Ex. \"NumberOfGuests,StoreNumber\" */\n queryFields?: string[];\n /** Maximum number of documents of specified type to analyze. Default=all. */\n maxDocumentsToAnalyze?: number;\n}\n\n/** Description of the field semantic schema using a JSON Schema style syntax. */\nexport interface DocumentFieldSchema {\n /**\n * Semantic data type of the field value.\n *\n * Possible values: \"string\", \"date\", \"time\", \"phoneNumber\", \"number\", \"integer\", \"selectionMark\", \"countryRegion\", \"signature\", \"array\", \"object\", \"currency\", \"address\", \"boolean\", \"selectionGroup\"\n */\n type: DocumentFieldType;\n /** Field description. */\n description?: string;\n /** Example field content. */\n example?: string;\n /** Field type schema of each array element. */\n items?: DocumentFieldSchema;\n /** Named sub-fields of the object field. */\n properties?: Record<string, DocumentFieldSchema>;\n}\n\n/** Classifier document type info. */\nexport interface ClassifierDocumentTypeDetails {\n /**\n * Type of training data source.\n *\n * Possible values: \"url\", \"base64\", \"azureBlob\", \"azureBlobFileList\"\n */\n sourceKind?: ContentSourceKind;\n /**\n * Azure Blob Storage location containing the training data for a classifier\n * document type. Either azureBlobSource or azureBlobFileListSource must be\n * specified.\n */\n azureBlobSource?: AzureBlobContentSource;\n /**\n * Azure Blob Storage file list specifying the training data for a classifier\n * document type. Either azureBlobSource or azureBlobFileListSource must be\n * specified.\n */\n azureBlobFileListSource?: AzureBlobFileListContentSource;\n}\n\n/** Document analysis parameters. */\nexport interface AnalyzeDocumentRequest {\n /** Document URL to analyze. Either urlSource or base64Source must be specified. */\n urlSource?: string;\n /**\n * Base64 encoding of the document to analyze. Either urlSource or base64Source\n * must be specified.\n */\n base64Source?: string;\n}\n\n/** Batch document analysis parameters. */\nexport interface AnalyzeBatchDocumentsRequest {\n /**\n * Azure Blob Storage location containing the batch documents. Either\n * azureBlobSource or azureBlobFileListSource must be specified.\n */\n azureBlobSource?: AzureBlobContentSource;\n /**\n * Azure Blob Storage file list specifying the batch documents. Either\n * azureBlobSource or azureBlobFileListSource must be specified.\n */\n azureBlobFileListSource?: AzureBlobFileListContentSource;\n /** Azure Blob Storage container URL where analyze result files will be stored. */\n resultContainerUrl: string;\n /** Blob name prefix of result files. */\n resultPrefix?: string;\n /** Overwrite existing analyze result files? */\n overwriteExisting?: boolean;\n}\n\n/** Request body to build a new custom document model. */\nexport interface BuildDocumentModelRequest {\n /** Unique document model name. */\n modelId: string;\n /** Document model description. */\n description?: string;\n /**\n * Custom document model build mode.\n *\n * Possible values: \"template\", \"neural\", \"generative\"\n */\n buildMode: DocumentBuildMode;\n /**\n * Azure Blob Storage location containing the training data. Either\n * azureBlobSource or azureBlobFileListSource must be specified.\n */\n azureBlobSource?: AzureBlobContentSource;\n /**\n * Azure Blob Storage file list specifying the training data. Either\n * azureBlobSource or azureBlobFileListSource must be specified.\n */\n azureBlobFileListSource?: AzureBlobFileListContentSource;\n /** List of key-value tag attributes associated with the document model. */\n tags?: Record<string, string>;\n /** Max number of V100-equivalent GPU hours to use for model training. Default=0.5. */\n maxTrainingHours?: number;\n /** Allow overwriting an existing model with the same name. */\n allowOverwrite?: boolean;\n}\n\n/** Request body to create a composed document model from component document models. */\nexport interface ComposeDocumentModelRequest {\n /** Unique document model name. */\n modelId: string;\n /** Document model description. */\n description?: string;\n /** Custom classifier to split and classify the input file. */\n classifierId: string;\n /**\n * File splitting behavior.\n *\n * Possible values: \"auto\", \"none\", \"perPage\"\n */\n split?: SplitMode;\n /** Dictionary mapping supported docTypes to the corresponding document models. */\n docTypes: Record<string, DocumentTypeDetails>;\n /** List of key-value tag attributes associated with the document model. */\n tags?: Record<string, string>;\n}\n\n/** Request body to authorize document model copy. */\nexport interface AuthorizeCopyRequest {\n /** Unique document model name. */\n modelId: string;\n /** Document model description. */\n description?: string;\n /** List of key-value tag attributes associated with the document model. */\n tags?: Record<string, string>;\n}\n\n/**\n * Authorization to copy a document model to the specified target resource and\n * modelId.\n */\nexport interface CopyAuthorization {\n /** ID of the target Azure resource where the document model should be copied to. */\n targetResourceId: string;\n /**\n * Location of the target Azure resource where the document model should be copied\n * to.\n */\n targetResourceRegion: string;\n /** Identifier of the target document model. */\n targetModelId: string;\n /** URL of the copied document model in the target account. */\n targetModelLocation: string;\n /** Token used to authorize the request. */\n accessToken: string;\n /** Date/time when the access token expires. */\n expirationDateTime: Date | string;\n}\n\n/** Request body to build a new custom document classifier. */\nexport interface BuildDocumentClassifierRequest {\n /** Unique document classifier name. */\n classifierId: string;\n /** Document classifier description. */\n description?: string;\n /** Base classifierId on top of which to train the classifier. */\n baseClassifierId?: string;\n /** List of document types to classify against. */\n docTypes: Record<string, ClassifierDocumentTypeDetails>;\n /** Allow overwriting an existing classifier with the same name. */\n allowOverwrite?: boolean;\n}\n\n/** Document classification parameters. */\nexport interface ClassifyDocumentRequest {\n /** Document URL to classify. Either urlSource or base64Source must be specified. */\n urlSource?: string;\n /**\n * Base64 encoding of the document to classify. Either urlSource or base64Source\n * must be specified.\n */\n base64Source?: string;\n}\n\n/** Request body to authorize document classifier copy. */\nexport interface AuthorizeClassifierCopyRequest {\n /** Unique document classifier name. */\n classifierId: string;\n /** Document classifier description. */\n description?: string;\n /** List of key-value tag attributes associated with the document classifier. */\n tags?: Record<string, string>;\n}\n\n/**\n * Authorization to copy a document classifier to the specified target resource and\n * classifierId.\n */\nexport interface ClassifierCopyAuthorization {\n /** ID of the target Azure resource where the document classifier should be copied to. */\n targetResourceId: string;\n /**\n * Location of the target Azure resource where the document classifier should be copied\n * to.\n */\n targetResourceRegion: string;\n /** Identifier of the target document classifier. */\n targetClassifierId: string;\n /** URL of the copied document classifier in the target account. */\n targetClassifierLocation: string;\n /** Token used to authorize the request. */\n accessToken: string;\n /** Date/time when the access token expires. */\n expirationDateTime: Date | string;\n}\n\n/** Alias for DocumentBuildMode */\nexport type DocumentBuildMode = string;\n/** Alias for SplitMode */\nexport type SplitMode = string;\n/** Alias for DocumentFieldType */\nexport type DocumentFieldType = string;\n/** Alias for DocumentAnalysisFeature */\nexport type DocumentAnalysisFeature = string;\n/** Alias for ContentSourceKind */\nexport type ContentSourceKind = string;\n/** Alias for StringIndexType */\nexport type StringIndexType = string;\n/** Alias for ContentFormat */\nexport type ContentFormat = string;\n/** Alias for AnalyzeOutputOption */\nexport type AnalyzeOutputOption = string;\n"]}
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** Azure Blob Storage content. */\nexport interface AzureBlobContentSource {\n /** Azure Blob Storage container URL. */\n containerUrl: string;\n /** Blob name prefix. */\n prefix?: string;\n}\n\n/** File list in Azure Blob Storage. */\nexport interface AzureBlobFileListContentSource {\n /** Azure Blob Storage container URL. */\n containerUrl: string;\n /** Path to a JSONL file within the container specifying a subset of documents. */\n fileList: string;\n}\n\n/** Document type info. */\nexport interface DocumentTypeDetails {\n /** Document model description. */\n description?: string;\n /**\n * Custom document model build mode.\n *\n * Possible values: \"template\", \"neural\"\n */\n buildMode?: DocumentBuildMode;\n /** Description of the document semantic schema using a JSON Schema style syntax. */\n fieldSchema?: Record<string, DocumentFieldSchema>;\n /** Estimated confidence for each field. */\n fieldConfidence?: Record<string, number>;\n /** Document model to use for analyzing documents with specified type. */\n modelId?: string;\n /** Only perform analysis if docType confidence is above threshold. */\n confidenceThreshold?: number;\n /** List of optional analysis features. */\n features?: DocumentAnalysisFeature[];\n /** List of additional fields to extract. Ex. \"NumberOfGuests,StoreNumber\" */\n queryFields?: string[];\n /** Maximum number of documents of specified type to analyze. Default=all. */\n maxDocumentsToAnalyze?: number;\n}\n\n/** Description of the field semantic schema using a JSON Schema style syntax. */\nexport interface DocumentFieldSchema {\n /**\n * Semantic data type of the field value.\n *\n * Possible values: \"string\", \"date\", \"time\", \"phoneNumber\", \"number\", \"integer\", \"selectionMark\", \"countryRegion\", \"signature\", \"array\", \"object\", \"currency\", \"address\", \"boolean\", \"selectionGroup\"\n */\n type: DocumentFieldType;\n /** Field description. */\n description?: string;\n /** Example field content. */\n example?: string;\n /** Field type schema of each array element. */\n items?: DocumentFieldSchema;\n /** Named sub-fields of the object field. */\n properties?: Record<string, DocumentFieldSchema>;\n}\n\n/** Classifier document type info. */\nexport interface ClassifierDocumentTypeDetails {\n /**\n * Type of training data source.\n *\n * Possible values: \"url\", \"base64\", \"azureBlob\", \"azureBlobFileList\"\n */\n sourceKind?: ContentSourceKind;\n /**\n * Azure Blob Storage location containing the training data for a classifier\n * document type. Either azureBlobSource or azureBlobFileListSource must be\n * specified.\n */\n azureBlobSource?: AzureBlobContentSource;\n /**\n * Azure Blob Storage file list specifying the training data for a classifier\n * document type. Either azureBlobSource or azureBlobFileListSource must be\n * specified.\n */\n azureBlobFileListSource?: AzureBlobFileListContentSource;\n}\n\n/** Document analysis parameters. */\nexport interface AnalyzeDocumentRequest {\n /** Document URL to analyze. Either urlSource or base64Source must be specified. */\n urlSource?: string;\n /**\n * Base64 encoding of the document to analyze. Either urlSource or base64Source\n * must be specified.\n */\n base64Source?: string;\n}\n\n/** Batch document analysis parameters. */\nexport interface AnalyzeBatchDocumentsRequest {\n /**\n * Azure Blob Storage location containing the batch documents. Either\n * azureBlobSource or azureBlobFileListSource must be specified.\n */\n azureBlobSource?: AzureBlobContentSource;\n /**\n * Azure Blob Storage file list specifying the batch documents. Either\n * azureBlobSource or azureBlobFileListSource must be specified.\n */\n azureBlobFileListSource?: AzureBlobFileListContentSource;\n /** Azure Blob Storage container URL where analyze result files will be stored. */\n resultContainerUrl: string;\n /** Blob name prefix of result files. */\n resultPrefix?: string;\n /** Overwrite existing analyze result files? */\n overwriteExisting?: boolean;\n}\n\n/** Request body to build a new custom document model. */\nexport interface BuildDocumentModelRequest {\n /** Unique document model name. */\n modelId: string;\n /** Document model description. */\n description?: string;\n /**\n * Custom document model build mode.\n *\n * Possible values: \"template\", \"neural\"\n */\n buildMode: DocumentBuildMode;\n /**\n * Azure Blob Storage location containing the training data. Either\n * azureBlobSource or azureBlobFileListSource must be specified.\n */\n azureBlobSource?: AzureBlobContentSource;\n /**\n * Azure Blob Storage file list specifying the training data. Either\n * azureBlobSource or azureBlobFileListSource must be specified.\n */\n azureBlobFileListSource?: AzureBlobFileListContentSource;\n /** List of key-value tag attributes associated with the document model. */\n tags?: Record<string, string>;\n /** Max number of V100-equivalent GPU hours to use for model training. Default=0.5. */\n maxTrainingHours?: number;\n /** Allow overwriting an existing model with the same name. */\n allowOverwrite?: boolean;\n}\n\n/** Request body to create a composed document model from component document models. */\nexport interface ComposeDocumentModelRequest {\n /** Unique document model name. */\n modelId: string;\n /** Document model description. */\n description?: string;\n /** Custom classifier to split and classify the input file. */\n classifierId: string;\n /**\n * File splitting behavior.\n *\n * Possible values: \"auto\", \"none\", \"perPage\"\n */\n split?: SplitMode;\n /** Dictionary mapping supported docTypes to the corresponding document models. */\n docTypes: Record<string, DocumentTypeDetails>;\n /** List of key-value tag attributes associated with the document model. */\n tags?: Record<string, string>;\n}\n\n/** Request body to authorize document model copy. */\nexport interface AuthorizeCopyRequest {\n /** Unique document model name. */\n modelId: string;\n /** Document model description. */\n description?: string;\n /** List of key-value tag attributes associated with the document model. */\n tags?: Record<string, string>;\n}\n\n/**\n * Authorization to copy a document model to the specified target resource and\n * modelId.\n */\nexport interface ModelCopyAuthorization {\n /** ID of the target Azure resource where the document model should be copied to. */\n targetResourceId: string;\n /**\n * Location of the target Azure resource where the document model should be copied\n * to.\n */\n targetResourceRegion: string;\n /** Identifier of the target document model. */\n targetModelId: string;\n /** URL of the copied document model in the target account. */\n targetModelLocation: string;\n /** Token used to authorize the request. */\n accessToken: string;\n /** Date/time when the access token expires. */\n expirationDateTime: Date | string;\n}\n\n/** Request body to build a new custom document classifier. */\nexport interface BuildDocumentClassifierRequest {\n /** Unique document classifier name. */\n classifierId: string;\n /** Document classifier description. */\n description?: string;\n /** Base classifierId on top of which to train the classifier. */\n baseClassifierId?: string;\n /** List of document types to classify against. */\n docTypes: Record<string, ClassifierDocumentTypeDetails>;\n /** Allow overwriting an existing classifier with the same name. */\n allowOverwrite?: boolean;\n}\n\n/** Document classification parameters. */\nexport interface ClassifyDocumentRequest {\n /** Document URL to classify. Either urlSource or base64Source must be specified. */\n urlSource?: string;\n /**\n * Base64 encoding of the document to classify. Either urlSource or base64Source\n * must be specified.\n */\n base64Source?: string;\n}\n\n/** Request body to authorize document classifier copy. */\nexport interface AuthorizeClassifierCopyRequest {\n /** Unique document classifier name. */\n classifierId: string;\n /** Document classifier description. */\n description?: string;\n /** List of key-value tag attributes associated with the document classifier. */\n tags?: Record<string, string>;\n}\n\n/**\n * Authorization to copy a document classifier to the specified target resource and\n * classifierId.\n */\nexport interface ClassifierCopyAuthorization {\n /** ID of the target Azure resource where the document classifier should be copied to. */\n targetResourceId: string;\n /**\n * Location of the target Azure resource where the document classifier should be copied\n * to.\n */\n targetResourceRegion: string;\n /** Identifier of the target document classifier. */\n targetClassifierId: string;\n /** URL of the copied document classifier in the target account. */\n targetClassifierLocation: string;\n /** Token used to authorize the request. */\n accessToken: string;\n /** Date/time when the access token expires. */\n expirationDateTime: Date | string;\n}\n\n/** Alias for DocumentBuildMode */\nexport type DocumentBuildMode = string;\n/** Alias for SplitMode */\nexport type SplitMode = string;\n/** Alias for DocumentFieldType */\nexport type DocumentFieldType = string;\n/** Alias for DocumentAnalysisFeature */\nexport type DocumentAnalysisFeature = string;\n/** Alias for ContentSourceKind */\nexport type ContentSourceKind = string;\n/** Alias for StringIndexType */\nexport type StringIndexType = string;\n/** Alias for DocumentContentFormat */\nexport type DocumentContentFormat = string;\n/** Alias for AnalyzeOutputOption */\nexport type AnalyzeOutputOption = string;\n"]}