@azure-rest/ai-document-intelligence 1.0.0-alpha.20241030.1 → 1.0.0-alpha.20241101.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 (101) hide show
  1. package/dist/browser/clientDefinitions.d.ts +3 -3
  2. package/dist/browser/clientDefinitions.d.ts.map +1 -1
  3. package/dist/browser/clientDefinitions.js.map +1 -1
  4. package/dist/browser/documentIntelligence.d.ts +3 -3
  5. package/dist/browser/documentIntelligence.d.ts.map +1 -1
  6. package/dist/browser/documentIntelligence.js.map +1 -1
  7. package/dist/browser/isUnexpected.d.ts +1 -1
  8. package/dist/browser/isUnexpected.d.ts.map +1 -1
  9. package/dist/browser/isUnexpected.js.map +1 -1
  10. package/dist/browser/outputModels.d.ts +1 -1
  11. package/dist/browser/outputModels.d.ts.map +1 -1
  12. package/dist/browser/outputModels.js.map +1 -1
  13. package/dist/browser/paginateHelper.d.ts +2 -2
  14. package/dist/browser/paginateHelper.d.ts.map +1 -1
  15. package/dist/browser/paginateHelper.js.map +1 -1
  16. package/dist/browser/parameters.d.ts +3 -3
  17. package/dist/browser/parameters.d.ts.map +1 -1
  18. package/dist/browser/parameters.js.map +1 -1
  19. package/dist/browser/pollingHelper.d.ts +4 -4
  20. package/dist/browser/pollingHelper.d.ts.map +1 -1
  21. package/dist/browser/pollingHelper.js +1 -1
  22. package/dist/browser/pollingHelper.js.map +1 -1
  23. package/dist/browser/responses.d.ts +3 -3
  24. package/dist/browser/responses.d.ts.map +1 -1
  25. package/dist/browser/responses.js.map +1 -1
  26. package/dist/commonjs/clientDefinitions.d.ts +3 -3
  27. package/dist/commonjs/clientDefinitions.d.ts.map +1 -1
  28. package/dist/commonjs/clientDefinitions.js.map +1 -1
  29. package/dist/commonjs/documentIntelligence.d.ts +3 -3
  30. package/dist/commonjs/documentIntelligence.d.ts.map +1 -1
  31. package/dist/commonjs/documentIntelligence.js.map +1 -1
  32. package/dist/commonjs/isUnexpected.d.ts +1 -1
  33. package/dist/commonjs/isUnexpected.d.ts.map +1 -1
  34. package/dist/commonjs/isUnexpected.js.map +1 -1
  35. package/dist/commonjs/outputModels.d.ts +1 -1
  36. package/dist/commonjs/outputModels.d.ts.map +1 -1
  37. package/dist/commonjs/outputModels.js.map +1 -1
  38. package/dist/commonjs/paginateHelper.d.ts +2 -2
  39. package/dist/commonjs/paginateHelper.d.ts.map +1 -1
  40. package/dist/commonjs/paginateHelper.js.map +1 -1
  41. package/dist/commonjs/parameters.d.ts +3 -3
  42. package/dist/commonjs/parameters.d.ts.map +1 -1
  43. package/dist/commonjs/parameters.js.map +1 -1
  44. package/dist/commonjs/pollingHelper.d.ts +4 -4
  45. package/dist/commonjs/pollingHelper.d.ts.map +1 -1
  46. package/dist/commonjs/pollingHelper.js.map +1 -1
  47. package/dist/commonjs/responses.d.ts +3 -3
  48. package/dist/commonjs/responses.d.ts.map +1 -1
  49. package/dist/commonjs/responses.js.map +1 -1
  50. package/dist/esm/clientDefinitions.d.ts +3 -3
  51. package/dist/esm/clientDefinitions.d.ts.map +1 -1
  52. package/dist/esm/clientDefinitions.js.map +1 -1
  53. package/dist/esm/documentIntelligence.d.ts +3 -3
  54. package/dist/esm/documentIntelligence.d.ts.map +1 -1
  55. package/dist/esm/documentIntelligence.js.map +1 -1
  56. package/dist/esm/isUnexpected.d.ts +1 -1
  57. package/dist/esm/isUnexpected.d.ts.map +1 -1
  58. package/dist/esm/isUnexpected.js.map +1 -1
  59. package/dist/esm/outputModels.d.ts +1 -1
  60. package/dist/esm/outputModels.d.ts.map +1 -1
  61. package/dist/esm/outputModels.js.map +1 -1
  62. package/dist/esm/paginateHelper.d.ts +2 -2
  63. package/dist/esm/paginateHelper.d.ts.map +1 -1
  64. package/dist/esm/paginateHelper.js.map +1 -1
  65. package/dist/esm/parameters.d.ts +3 -3
  66. package/dist/esm/parameters.d.ts.map +1 -1
  67. package/dist/esm/parameters.js.map +1 -1
  68. package/dist/esm/pollingHelper.d.ts +4 -4
  69. package/dist/esm/pollingHelper.d.ts.map +1 -1
  70. package/dist/esm/pollingHelper.js +1 -1
  71. package/dist/esm/pollingHelper.js.map +1 -1
  72. package/dist/esm/responses.d.ts +3 -3
  73. package/dist/esm/responses.d.ts.map +1 -1
  74. package/dist/esm/responses.js.map +1 -1
  75. package/dist/react-native/clientDefinitions.d.ts +3 -3
  76. package/dist/react-native/clientDefinitions.d.ts.map +1 -1
  77. package/dist/react-native/clientDefinitions.js.map +1 -1
  78. package/dist/react-native/documentIntelligence.d.ts +3 -3
  79. package/dist/react-native/documentIntelligence.d.ts.map +1 -1
  80. package/dist/react-native/documentIntelligence.js.map +1 -1
  81. package/dist/react-native/isUnexpected.d.ts +1 -1
  82. package/dist/react-native/isUnexpected.d.ts.map +1 -1
  83. package/dist/react-native/isUnexpected.js.map +1 -1
  84. package/dist/react-native/outputModels.d.ts +1 -1
  85. package/dist/react-native/outputModels.d.ts.map +1 -1
  86. package/dist/react-native/outputModels.js.map +1 -1
  87. package/dist/react-native/paginateHelper.d.ts +2 -2
  88. package/dist/react-native/paginateHelper.d.ts.map +1 -1
  89. package/dist/react-native/paginateHelper.js.map +1 -1
  90. package/dist/react-native/parameters.d.ts +3 -3
  91. package/dist/react-native/parameters.d.ts.map +1 -1
  92. package/dist/react-native/parameters.js.map +1 -1
  93. package/dist/react-native/pollingHelper.d.ts +4 -4
  94. package/dist/react-native/pollingHelper.d.ts.map +1 -1
  95. package/dist/react-native/pollingHelper.js +1 -1
  96. package/dist/react-native/pollingHelper.js.map +1 -1
  97. package/dist/react-native/responses.d.ts +3 -3
  98. package/dist/react-native/responses.d.ts.map +1 -1
  99. package/dist/react-native/responses.js.map +1 -1
  100. package/package.json +2 -2
  101. package/review/ai-document-intelligence.api.md +16 -16
@@ -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 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"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure-rest/ai-document-intelligence",
3
- "version": "1.0.0-alpha.20241030.1",
3
+ "version": "1.0.0-alpha.20241101.1",
4
4
  "description": "Document Intelligence Rest Client",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
@@ -96,7 +96,7 @@
96
96
  "integration-test:node": "echo skipped",
97
97
  "lint": "eslint package.json api-extractor.json src test",
98
98
  "lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
99
- "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
99
+ "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
100
100
  "pack": "npm pack 2>&1",
101
101
  "test": "npm run clean && dev-tool run build-package && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test",
102
102
  "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser",
@@ -4,22 +4,22 @@
4
4
 
5
5
  ```ts
6
6
 
7
- import { AbortSignalLike } from '@azure/abort-controller';
8
- import { CancelOnProgress } from '@azure/core-lro';
9
- import { Client } from '@azure-rest/core-client';
10
- import { ClientOptions } from '@azure-rest/core-client';
11
- import { CreateHttpPollerOptions } from '@azure/core-lro';
12
- import { HttpResponse } from '@azure-rest/core-client';
13
- import { KeyCredential } from '@azure/core-auth';
14
- import { OperationState } from '@azure/core-lro';
15
- import { Paged } from '@azure/core-paging';
16
- import { PagedAsyncIterableIterator } from '@azure/core-paging';
17
- import { PathUncheckedResponse } from '@azure-rest/core-client';
18
- import { RawHttpHeaders } from '@azure/core-rest-pipeline';
19
- import { RawHttpHeadersInput } from '@azure/core-rest-pipeline';
20
- import { RequestParameters } from '@azure-rest/core-client';
21
- import { StreamableMethod } from '@azure-rest/core-client';
22
- import { TokenCredential } from '@azure/core-auth';
7
+ import type { AbortSignalLike } from '@azure/abort-controller';
8
+ import type { CancelOnProgress } from '@azure/core-lro';
9
+ import type { Client } from '@azure-rest/core-client';
10
+ import type { ClientOptions } from '@azure-rest/core-client';
11
+ import type { CreateHttpPollerOptions } from '@azure/core-lro';
12
+ import type { HttpResponse } from '@azure-rest/core-client';
13
+ import type { KeyCredential } from '@azure/core-auth';
14
+ import type { OperationState } from '@azure/core-lro';
15
+ import type { Paged } from '@azure/core-paging';
16
+ import type { PagedAsyncIterableIterator } from '@azure/core-paging';
17
+ import type { PathUncheckedResponse } from '@azure-rest/core-client';
18
+ import type { RawHttpHeaders } from '@azure/core-rest-pipeline';
19
+ import type { RawHttpHeadersInput } from '@azure/core-rest-pipeline';
20
+ import type { RequestParameters } from '@azure-rest/core-client';
21
+ import type { StreamableMethod } from '@azure-rest/core-client';
22
+ import type { TokenCredential } from '@azure/core-auth';
23
23
 
24
24
  // @public
25
25
  export interface AddressValueOutput {