@azure-rest/ai-document-intelligence 1.0.0-alpha.20241030.1 → 1.0.0-alpha.20241031.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":"outputModels.js","sourceRoot":"","sources":["../../src/outputModels.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { Paged } from \"@azure/core-paging\";\n\n/** Operation info. */\nexport interface OperationDetailsOutputParent {\n /** Operation ID */\n operationId: string;\n /**\n * Operation status. notStarted, running, completed, or failed\n *\n * Possible values: \"notStarted\", \"running\", \"failed\", \"succeeded\", \"completed\", \"canceled\"\n */\n status: OperationStatusOutput;\n /** Operation progress (0-100). */\n percentCompleted?: number;\n /** Date and time (UTC) when the operation was created. */\n createdDateTime: string;\n /** Date and time (UTC) when the status was last updated. */\n lastUpdatedDateTime: string;\n /** URL of the resource targeted by this operation. */\n resourceLocation: string;\n /** API version used to create this operation. */\n apiVersion?: string;\n /** List of key-value tag attributes associated with the document model. */\n tags?: Record<string, string>;\n /** Encountered error. */\n error?: ErrorModelOutput;\n kind: OperationKindOutput;\n}\n\n/** The error object. */\nexport interface ErrorModelOutput {\n /** One of a server-defined set of error codes. */\n code: string;\n /** A human-readable representation of the error. */\n message: string;\n /** The target of the error. */\n target?: string;\n /** An array of details about specific errors that led to this reported error. */\n details?: Array<ErrorModelOutput>;\n /** An object containing more specific information than the current object about the error. */\n innererror?: InnerErrorOutput;\n}\n\n/** An object containing more specific information about the error. */\nexport interface InnerErrorOutput {\n /** One of a server-defined set of error codes. */\n code?: string;\n /** A human-readable representation of the error. */\n message?: string;\n /** Inner error. */\n innererror?: InnerErrorOutput;\n}\n\n/** Get Operation response object. */\nexport interface DocumentModelBuildOperationDetailsOutput extends OperationDetailsOutputParent {\n /** Operation result upon success. */\n result?: DocumentModelDetailsOutput;\n /** Type of operation. */\n kind: \"documentModelBuild\";\n}\n\n/** Document model info. */\nexport interface DocumentModelDetailsOutput {\n /** Unique document model name. */\n modelId: string;\n /** Document model description. */\n description?: string;\n /** Date and time (UTC) when the document model was created. */\n readonly createdDateTime: string;\n /** Date and time (UTC) when the document model will expire. */\n readonly expirationDateTime?: string;\n /** API version used to create this document model. */\n readonly apiVersion?: string;\n /** List of key-value tag attributes associated with the document model. */\n tags?: Record<string, string>;\n /**\n * Custom document model build mode.\n *\n * Possible values: \"template\", \"neural\", \"generative\"\n */\n readonly buildMode?: DocumentBuildModeOutput;\n /**\n * Azure Blob Storage location containing the training data. Either\n * azureBlobSource or azureBlobFileListSource must be specified.\n */\n readonly azureBlobSource?: AzureBlobContentSourceOutput;\n /**\n * Azure Blob Storage file list specifying the training data. Either\n * azureBlobSource or azureBlobFileListSource must be specified.\n */\n readonly azureBlobFileListSource?: AzureBlobFileListContentSourceOutput;\n /** For composed models, the custom classifier to split and classify the input file. */\n classifierId?: string;\n /**\n * For composed models, the file splitting behavior.\n *\n * Possible values: \"auto\", \"none\", \"perPage\"\n */\n split?: SplitModeOutput;\n /** Supported document types. */\n readonly docTypes?: Record<string, DocumentTypeDetailsOutput>;\n /** List of warnings encountered while building the model. */\n readonly warnings?: Array<WarningOutput>;\n /** Number of V100-equivalent GPU hours consumed for model training. */\n readonly trainingHours?: number;\n}\n\n/** Azure Blob Storage content. */\nexport interface AzureBlobContentSourceOutput {\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 AzureBlobFileListContentSourceOutput {\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 DocumentTypeDetailsOutput {\n /** Document model description. */\n description?: string;\n /**\n * Custom document model build mode.\n *\n * Possible values: \"template\", \"neural\", \"generative\"\n */\n buildMode?: DocumentBuildModeOutput;\n /** Description of the document semantic schema using a JSON Schema style syntax. */\n fieldSchema?: Record<string, DocumentFieldSchemaOutput>;\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?: DocumentAnalysisFeatureOutput[];\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 DocumentFieldSchemaOutput {\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: DocumentFieldTypeOutput;\n /** Field description. */\n description?: string;\n /** Example field content. */\n example?: string;\n /** Field type schema of each array element. */\n items?: DocumentFieldSchemaOutput;\n /** Named sub-fields of the object field. */\n properties?: Record<string, DocumentFieldSchemaOutput>;\n}\n\n/** The error object. */\nexport interface WarningOutput {\n /** One of a server-defined set of warning codes. */\n code: string;\n /** A human-readable representation of the warning. */\n message: string;\n /** The target of the error. */\n target?: string;\n}\n\n/** Get Operation response object. */\nexport interface DocumentModelComposeOperationDetailsOutput extends OperationDetailsOutputParent {\n /** Operation result upon success. */\n result?: DocumentModelDetailsOutput;\n /** Type of operation. */\n kind: \"documentModelCompose\";\n}\n\n/** Get Operation response object. */\nexport interface DocumentModelCopyToOperationDetailsOutput extends OperationDetailsOutputParent {\n /** Operation result upon success. */\n result?: DocumentModelDetailsOutput;\n /** Type of operation. */\n kind: \"documentModelCopyTo\";\n}\n\n/** Get Operation response object. */\nexport interface DocumentClassifierCopyToOperationDetailsOutput\n extends OperationDetailsOutputParent {\n /** Operation result upon success. */\n result?: DocumentClassifierDetailsOutput;\n /** Type of operation. */\n kind: \"documentClassifierCopyTo\";\n}\n\n/** Document classifier info. */\nexport interface DocumentClassifierDetailsOutput {\n /** Unique document classifier name. */\n classifierId: string;\n /** Document classifier description. */\n description?: string;\n /** Date and time (UTC) when the document classifier was created. */\n createdDateTime: string;\n /** Date and time (UTC) when the document classifier will expire. */\n expirationDateTime?: string;\n /** API version used to create this document classifier. */\n apiVersion: string;\n /** Base classifierId on top of which the classifier was trained. */\n baseClassifierId?: string;\n /** List of document types to classify against. */\n docTypes: Record<string, ClassifierDocumentTypeDetailsOutput>;\n /** List of warnings encountered while building the classifier. */\n warnings?: Array<WarningOutput>;\n}\n\n/** Classifier document type info. */\nexport interface ClassifierDocumentTypeDetailsOutput {\n /**\n * Type of training data source.\n *\n * Possible values: \"url\", \"base64\", \"azureBlob\", \"azureBlobFileList\"\n */\n sourceKind?: ContentSourceKindOutput;\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?: AzureBlobContentSourceOutput;\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?: AzureBlobFileListContentSourceOutput;\n}\n\n/** Get Operation response object. */\nexport interface DocumentClassifierBuildOperationDetailsOutput\n extends OperationDetailsOutputParent {\n /** Operation result upon success. */\n result?: DocumentClassifierDetailsOutput;\n /** Type of operation. */\n kind: \"documentClassifierBuild\";\n}\n\n/** Error response object. */\nexport interface ErrorResponseOutput {\n /** Error info. */\n error: ErrorModelOutput;\n}\n\n/** General information regarding the current resource. */\nexport interface ResourceDetailsOutput {\n /** Details regarding custom document models. */\n customDocumentModels: CustomDocumentModelsDetailsOutput;\n}\n\n/** Details regarding custom document models. */\nexport interface CustomDocumentModelsDetailsOutput {\n /** Number of custom document models in the current resource. */\n count: number;\n /** Maximum number of custom document models supported in the current resource. */\n limit: number;\n}\n\n/** Status and result of the analyze operation. */\nexport interface AnalyzeResultOperationOutput {\n /**\n * Operation status. notStarted, running, succeeded, or failed\n *\n * Possible values: \"notStarted\", \"running\", \"failed\", \"succeeded\", \"completed\", \"canceled\"\n */\n status: OperationStatusOutput;\n /** Date and time (UTC) when the analyze operation was submitted. */\n createdDateTime: string;\n /** Date and time (UTC) when the status was last updated. */\n lastUpdatedDateTime: string;\n /** Encountered error during document analysis. */\n error?: ErrorModelOutput;\n /** Document analysis result. */\n analyzeResult?: AnalyzeResultOutput;\n}\n\n/** Document analysis result. */\nexport interface AnalyzeResultOutput {\n /** API version used to produce this result. */\n apiVersion: string;\n /** Document model ID used to produce this result. */\n modelId: string;\n /**\n * Method used to compute string offset and length.\n *\n * Possible values: \"textElements\", \"unicodeCodePoint\", \"utf16CodeUnit\"\n */\n stringIndexType: StringIndexTypeOutput;\n /**\n * Format of the analyze result top-level content.\n *\n * Possible values: \"text\", \"markdown\"\n */\n contentFormat?: ContentFormatOutput;\n /**\n * Concatenate string representation of all textual and visual elements in reading\n * order.\n */\n content: string;\n /** Analyzed pages. */\n pages: Array<DocumentPageOutput>;\n /** Extracted paragraphs. */\n paragraphs?: Array<DocumentParagraphOutput>;\n /** Extracted tables. */\n tables?: Array<DocumentTableOutput>;\n /** Extracted figures. */\n figures?: Array<DocumentFigureOutput>;\n /** Extracted sections. */\n sections?: Array<DocumentSectionOutput>;\n /** Extracted key-value pairs. */\n keyValuePairs?: Array<DocumentKeyValuePairOutput>;\n /** Extracted font styles. */\n styles?: Array<DocumentStyleOutput>;\n /** Detected languages. */\n languages?: Array<DocumentLanguageOutput>;\n /** Extracted documents. */\n documents?: Array<DocumentOutput>;\n /** List of warnings encountered. */\n warnings?: Array<WarningOutput>;\n}\n\n/** Content and layout elements extracted from a page from the input. */\nexport interface DocumentPageOutput {\n /** 1-based page number in the input document. */\n pageNumber: number;\n /**\n * The general orientation of the content in clockwise direction, measured in\n * degrees between (-180, 180].\n */\n angle?: number;\n /** The width of the image/PDF in pixels/inches, respectively. */\n width?: number;\n /** The height of the image/PDF in pixels/inches, respectively. */\n height?: number;\n /**\n * The unit used by the width, height, and polygon properties. For images, the\n * unit is \"pixel\". For PDF, the unit is \"inch\".\n *\n * Possible values: \"pixel\", \"inch\"\n */\n unit?: LengthUnitOutput;\n /** Location of the page in the reading order concatenated content. */\n spans: Array<DocumentSpanOutput>;\n /** Extracted words from the page. */\n words?: Array<DocumentWordOutput>;\n /** Extracted selection marks from the page. */\n selectionMarks?: Array<DocumentSelectionMarkOutput>;\n /**\n * Extracted lines from the page, potentially containing both textual and visual\n * elements.\n */\n lines?: Array<DocumentLineOutput>;\n /** Extracted barcodes from the page. */\n barcodes?: Array<DocumentBarcodeOutput>;\n /** Extracted formulas from the page. */\n formulas?: Array<DocumentFormulaOutput>;\n}\n\n/**\n * Contiguous region of the concatenated content property, specified as an offset\n * and length.\n */\nexport interface DocumentSpanOutput {\n /** Zero-based index of the content represented by the span. */\n offset: number;\n /** Number of characters in the content represented by the span. */\n length: number;\n}\n\n/**\n * A word object consisting of a contiguous sequence of characters. For non-space\n * delimited languages, such as Chinese, Japanese, and Korean, each character is\n * represented as its own word.\n */\nexport interface DocumentWordOutput {\n /** Text content of the word. */\n content: string;\n /**\n * Bounding polygon of the word, with coordinates specified relative to the\n * top-left of the page. The numbers represent the x, y values of the polygon\n * vertices, clockwise from the left (-180 degrees inclusive) relative to the\n * element orientation.\n */\n polygon?: number[];\n /** Location of the word in the reading order concatenated content. */\n span: DocumentSpanOutput;\n /** Confidence of correctly extracting the word. */\n confidence: number;\n}\n\n/**\n * A selection mark object representing check boxes, radio buttons, and other\n * elements indicating a selection.\n */\nexport interface DocumentSelectionMarkOutput {\n /**\n * State of the selection mark.\n *\n * Possible values: \"selected\", \"unselected\"\n */\n state: DocumentSelectionMarkStateOutput;\n /**\n * Bounding polygon of the selection mark, with coordinates specified relative\n * to the top-left of the page. The numbers represent the x, y values of the\n * polygon vertices, clockwise from the left (-180 degrees inclusive) relative\n * to the element orientation.\n */\n polygon?: number[];\n /** Location of the selection mark in the reading order concatenated content. */\n span: DocumentSpanOutput;\n /** Confidence of correctly extracting the selection mark. */\n confidence: number;\n}\n\n/**\n * A content line object consisting of an adjacent sequence of content elements,\n * such as words and selection marks.\n */\nexport interface DocumentLineOutput {\n /** Concatenated content of the contained elements in reading order. */\n content: string;\n /**\n * Bounding polygon of the line, with coordinates specified relative to the\n * top-left of the page. The numbers represent the x, y values of the polygon\n * vertices, clockwise from the left (-180 degrees inclusive) relative to the\n * element orientation.\n */\n polygon?: number[];\n /** Location of the line in the reading order concatenated content. */\n spans: Array<DocumentSpanOutput>;\n}\n\n/** A barcode object. */\nexport interface DocumentBarcodeOutput {\n /**\n * Barcode kind.\n *\n * Possible values: \"QRCode\", \"PDF417\", \"UPCA\", \"UPCE\", \"Code39\", \"Code128\", \"EAN8\", \"EAN13\", \"DataBar\", \"Code93\", \"Codabar\", \"DataBarExpanded\", \"ITF\", \"MicroQRCode\", \"Aztec\", \"DataMatrix\", \"MaxiCode\"\n */\n kind: DocumentBarcodeKindOutput;\n /** Barcode value. */\n value: string;\n /**\n * Bounding polygon of the barcode, with coordinates specified relative to the\n * top-left of the page. The numbers represent the x, y values of the polygon\n * vertices, clockwise from the left (-180 degrees inclusive) relative to the\n * element orientation.\n */\n polygon?: number[];\n /** Location of the barcode in the reading order concatenated content. */\n span: DocumentSpanOutput;\n /** Confidence of correctly extracting the barcode. */\n confidence: number;\n}\n\n/** A formula object. */\nexport interface DocumentFormulaOutput {\n /**\n * Formula kind.\n *\n * Possible values: \"inline\", \"display\"\n */\n kind: DocumentFormulaKindOutput;\n /** LaTex expression describing the formula. */\n value: string;\n /**\n * Bounding polygon of the formula, with coordinates specified relative to the\n * top-left of the page. The numbers represent the x, y values of the polygon\n * vertices, clockwise from the left (-180 degrees inclusive) relative to the\n * element orientation.\n */\n polygon?: number[];\n /** Location of the formula in the reading order concatenated content. */\n span: DocumentSpanOutput;\n /** Confidence of correctly extracting the formula. */\n confidence: number;\n}\n\n/**\n * A paragraph object consisting with contiguous lines generally with common\n * alignment and spacing.\n */\nexport interface DocumentParagraphOutput {\n /**\n * Semantic role of the paragraph.\n *\n * Possible values: \"pageHeader\", \"pageFooter\", \"pageNumber\", \"title\", \"sectionHeading\", \"footnote\", \"formulaBlock\"\n */\n role?: ParagraphRoleOutput;\n /** Concatenated content of the paragraph in reading order. */\n content: string;\n /** Bounding regions covering the paragraph. */\n boundingRegions?: Array<BoundingRegionOutput>;\n /** Location of the paragraph in the reading order concatenated content. */\n spans: Array<DocumentSpanOutput>;\n}\n\n/** Bounding polygon on a specific page of the input. */\nexport interface BoundingRegionOutput {\n /** 1-based page number of page containing the bounding region. */\n pageNumber: number;\n /**\n * Bounding polygon on the page, or the entire page if not specified.\n * Coordinates specified relative to the top-left of the page. The numbers\n * represent the x, y values of the polygon vertices, clockwise from the left\n * (-180 degrees inclusive) relative to the element orientation.\n */\n polygon: number[];\n}\n\n/** A table object consisting table cells arranged in a rectangular layout. */\nexport interface DocumentTableOutput {\n /** Number of rows in the table. */\n rowCount: number;\n /** Number of columns in the table. */\n columnCount: number;\n /** Cells contained within the table. */\n cells: Array<DocumentTableCellOutput>;\n /** Bounding regions covering the table. */\n boundingRegions?: Array<BoundingRegionOutput>;\n /** Location of the table in the reading order concatenated content. */\n spans: Array<DocumentSpanOutput>;\n /** Caption associated with the table. */\n caption?: DocumentCaptionOutput;\n /** List of footnotes associated with the table. */\n footnotes?: Array<DocumentFootnoteOutput>;\n}\n\n/** An object representing the location and content of a table cell. */\nexport interface DocumentTableCellOutput {\n /**\n * Table cell kind.\n *\n * Possible values: \"content\", \"rowHeader\", \"columnHeader\", \"stubHead\", \"description\"\n */\n kind?: DocumentTableCellKindOutput;\n /** Row index of the cell. */\n rowIndex: number;\n /** Column index of the cell. */\n columnIndex: number;\n /** Number of rows spanned by this cell. */\n rowSpan?: number;\n /** Number of columns spanned by this cell. */\n columnSpan?: number;\n /** Concatenated content of the table cell in reading order. */\n content: string;\n /** Bounding regions covering the table cell. */\n boundingRegions?: Array<BoundingRegionOutput>;\n /** Location of the table cell in the reading order concatenated content. */\n spans: Array<DocumentSpanOutput>;\n /** Child elements of the table cell. */\n elements?: string[];\n}\n\n/** A caption object describing a table or figure. */\nexport interface DocumentCaptionOutput {\n /** Content of the caption. */\n content: string;\n /** Bounding regions covering the caption. */\n boundingRegions?: Array<BoundingRegionOutput>;\n /** Location of the caption in the reading order concatenated content. */\n spans: Array<DocumentSpanOutput>;\n /** Child elements of the caption. */\n elements?: string[];\n}\n\n/** A footnote object describing a table or figure. */\nexport interface DocumentFootnoteOutput {\n /** Content of the footnote. */\n content: string;\n /** Bounding regions covering the footnote. */\n boundingRegions?: Array<BoundingRegionOutput>;\n /** Location of the footnote in the reading order concatenated content. */\n spans: Array<DocumentSpanOutput>;\n /** Child elements of the footnote. */\n elements?: string[];\n}\n\n/** An object representing a figure in the document. */\nexport interface DocumentFigureOutput {\n /** Bounding regions covering the figure. */\n boundingRegions?: Array<BoundingRegionOutput>;\n /** Location of the figure in the reading order concatenated content. */\n spans: Array<DocumentSpanOutput>;\n /** Child elements of the figure, excluding any caption or footnotes. */\n elements?: string[];\n /** Caption associated with the figure. */\n caption?: DocumentCaptionOutput;\n /** List of footnotes associated with the figure. */\n footnotes?: Array<DocumentFootnoteOutput>;\n /** Figure ID. */\n id?: string;\n}\n\n/** An object representing a section in the document. */\nexport interface DocumentSectionOutput {\n /** Location of the section in the reading order concatenated content. */\n spans: Array<DocumentSpanOutput>;\n /** Child elements of the section. */\n elements?: string[];\n}\n\n/**\n * An object representing a form field with distinct field label (key) and field\n * value (may be empty).\n */\nexport interface DocumentKeyValuePairOutput {\n /** Field label of the key-value pair. */\n key: DocumentKeyValueElementOutput;\n /** Field value of the key-value pair. */\n value?: DocumentKeyValueElementOutput;\n /** Confidence of correctly extracting the key-value pair. */\n confidence: number;\n}\n\n/** An object representing the field key or value in a key-value pair. */\nexport interface DocumentKeyValueElementOutput {\n /** Concatenated content of the key-value element in reading order. */\n content: string;\n /** Bounding regions covering the key-value element. */\n boundingRegions?: Array<BoundingRegionOutput>;\n /** Location of the key-value element in the reading order concatenated content. */\n spans: Array<DocumentSpanOutput>;\n}\n\n/** An object representing observed text styles. */\nexport interface DocumentStyleOutput {\n /** Is content handwritten? */\n isHandwritten?: boolean;\n /**\n * Visually most similar font from among the set of supported font families, with\n * fallback fonts following CSS convention (ex. 'Arial, sans-serif').\n */\n similarFontFamily?: string;\n /**\n * Font style.\n *\n * Possible values: \"normal\", \"italic\"\n */\n fontStyle?: FontStyleOutput;\n /**\n * Font weight.\n *\n * Possible values: \"normal\", \"bold\"\n */\n fontWeight?: FontWeightOutput;\n /** Foreground color in #rrggbb hexadecimal format. */\n color?: string;\n /** Background color in #rrggbb hexadecimal format.. */\n backgroundColor?: string;\n /** Location of the text elements in the concatenated content the style applies to. */\n spans: Array<DocumentSpanOutput>;\n /** Confidence of correctly identifying the style. */\n confidence: number;\n}\n\n/** An object representing the detected language for a given text span. */\nexport interface DocumentLanguageOutput {\n /**\n * Detected language. Value may an ISO 639-1 language code (ex. \"en\", \"fr\")\n * or BCP 47 language tag (ex. \"zh-Hans\").\n */\n locale: string;\n /**\n * Location of the text elements in the concatenated content the language applies\n * to.\n */\n spans: Array<DocumentSpanOutput>;\n /** Confidence of correctly identifying the language. */\n confidence: number;\n}\n\n/** An object describing the location and semantic content of a document. */\nexport interface DocumentOutput {\n /** Document type. */\n docType: string;\n /** Bounding regions covering the document. */\n boundingRegions?: Array<BoundingRegionOutput>;\n /** Location of the document in the reading order concatenated content. */\n spans: Array<DocumentSpanOutput>;\n /** Dictionary of named field values. */\n fields?: Record<string, DocumentFieldOutput>;\n /** Confidence of correctly extracting the document. */\n confidence: number;\n}\n\n/** An object representing the content and location of a field value. */\nexport interface DocumentFieldOutput {\n /**\n * 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: DocumentFieldTypeOutput;\n /** String value. */\n valueString?: string;\n /** Date value in YYYY-MM-DD format (ISO 8601). */\n valueDate?: string;\n /** Time value in hh:mm:ss format (ISO 8601). */\n valueTime?: string;\n /** Phone number value in E.164 format (ex. +19876543210). */\n valuePhoneNumber?: string;\n /** Floating point value. */\n valueNumber?: number;\n /** Integer value. */\n valueInteger?: number;\n /**\n * Selection mark value.\n *\n * Possible values: \"selected\", \"unselected\"\n */\n valueSelectionMark?: DocumentSelectionMarkStateOutput;\n /**\n * Presence of signature.\n *\n * Possible values: \"signed\", \"unsigned\"\n */\n valueSignature?: DocumentSignatureTypeOutput;\n /** 3-letter country code value (ISO 3166-1 alpha-3). */\n valueCountryRegion?: string;\n /** Array of field values. */\n valueArray?: Array<DocumentFieldOutput>;\n /** Dictionary of named field values. */\n valueObject?: Record<string, DocumentFieldOutput>;\n /** Currency value. */\n valueCurrency?: CurrencyValueOutput;\n /** Address value. */\n valueAddress?: AddressValueOutput;\n /** Boolean value. */\n valueBoolean?: boolean;\n /** Selection group value. */\n valueSelectionGroup?: string[];\n /** Field content. */\n content?: string;\n /** Bounding regions covering the field. */\n boundingRegions?: Array<BoundingRegionOutput>;\n /** Location of the field in the reading order concatenated content. */\n spans?: Array<DocumentSpanOutput>;\n /** Confidence of correctly extracting the field. */\n confidence?: number;\n}\n\n/** Currency field value. */\nexport interface CurrencyValueOutput {\n /** Currency amount. */\n amount: number;\n /** Currency symbol label, if any. */\n currencySymbol?: string;\n /** Resolved currency code (ISO 4217), if any. */\n currencyCode?: string;\n}\n\n/** Address field value. */\nexport interface AddressValueOutput {\n /** House or building number. */\n houseNumber?: string;\n /** Post office box number. */\n poBox?: string;\n /** Street name. */\n road?: string;\n /** Name of city, town, village, etc. */\n city?: string;\n /** First-level administrative division. */\n state?: string;\n /** Postal code used for mail sorting. */\n postalCode?: string;\n /** Country/region. */\n countryRegion?: string;\n /** Street-level address, excluding city, state, countryRegion, and postalCode. */\n streetAddress?: string;\n /** Apartment or office number */\n unit?: string;\n /**\n * Districts or boroughs within a city, such as Brooklyn in New York City or City\n * of Westminster in London.\n */\n cityDistrict?: string;\n /** Second-level administrative division used in certain locales. */\n stateDistrict?: string;\n /** Unofficial neighborhood name, like Chinatown. */\n suburb?: string;\n /** Build name, such as World Trade Center. */\n house?: string;\n /** Floor number, such as 3F. */\n level?: string;\n}\n\n/** Status and result of the analyze batch operation. */\nexport interface AnalyzeBatchResultOperationOutput {\n /**\n * Operation status. notStarted, running, completed, or failed\n *\n * Possible values: \"notStarted\", \"running\", \"failed\", \"succeeded\", \"completed\", \"canceled\"\n */\n status: OperationStatusOutput;\n /** Date and time (UTC) when the operation was submitted. */\n createdDateTime: string;\n /** Date and time (UTC) when the status was last updated. */\n lastUpdatedDateTime: string;\n /** Operation progress (0-100). */\n percentCompleted?: number;\n /** Encountered error during batch document analysis. */\n error?: ErrorModelOutput;\n /** Batch document analysis result. */\n result?: AnalyzeBatchResultOutput;\n}\n\n/** Batch document analysis result. */\nexport interface AnalyzeBatchResultOutput {\n /** Number of documents that completed with status succeeded. */\n succeededCount: number;\n /** Number of documents that completed with status failed. */\n failedCount: number;\n /** Number of documents that completed with status skipped. */\n skippedCount: number;\n /** Operation detail for each document in the batch. */\n details: Array<AnalyzeBatchOperationDetailOutput>;\n}\n\n/** Operation detail for a document in a batch analysis. */\nexport interface AnalyzeBatchOperationDetailOutput {\n /**\n * Analyze status. succeeded, failed, or skipped\n *\n * Possible values: \"notStarted\", \"running\", \"failed\", \"succeeded\", \"completed\", \"canceled\"\n */\n status: OperationStatusOutput;\n /** URL of the source document. */\n sourceUrl: string;\n /** URL of the analyze result JSON. */\n resultUrl?: string;\n /** Encountered error. */\n error?: ErrorModelOutput;\n}\n\n/**\n * Authorization to copy a document model to the specified target resource and\n * modelId.\n */\nexport interface CopyAuthorizationOutput {\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: string;\n}\n\n/**\n * Authorization to copy a document classifier to the specified target resource and\n * classifierId.\n */\nexport interface ClassifierCopyAuthorizationOutput {\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: string;\n}\n\n/** Operation info. */\nexport type OperationDetailsOutput =\n | OperationDetailsOutputParent\n | DocumentModelBuildOperationDetailsOutput\n | DocumentModelComposeOperationDetailsOutput\n | DocumentModelCopyToOperationDetailsOutput\n | DocumentClassifierCopyToOperationDetailsOutput\n | DocumentClassifierBuildOperationDetailsOutput;\n/** Paged collection of OperationDetails items */\nexport type PagedOperationDetailsOutput = Paged<OperationDetailsOutput>;\n/** Alias for OperationStatusOutput */\nexport type OperationStatusOutput = string;\n/** Alias for OperationKindOutput */\nexport type OperationKindOutput = string;\n/** Alias for DocumentBuildModeOutput */\nexport type DocumentBuildModeOutput = string;\n/** Alias for SplitModeOutput */\nexport type SplitModeOutput = string;\n/** Alias for DocumentFieldTypeOutput */\nexport type DocumentFieldTypeOutput = string;\n/** Alias for DocumentAnalysisFeatureOutput */\nexport type DocumentAnalysisFeatureOutput = string;\n/** Alias for ContentSourceKindOutput */\nexport type ContentSourceKindOutput = string;\n/** Alias for StringIndexTypeOutput */\nexport type StringIndexTypeOutput = string;\n/** Alias for ContentFormatOutput */\nexport type ContentFormatOutput = string;\n/** Alias for LengthUnitOutput */\nexport type LengthUnitOutput = string;\n/** Alias for DocumentSelectionMarkStateOutput */\nexport type DocumentSelectionMarkStateOutput = string;\n/** Alias for DocumentBarcodeKindOutput */\nexport type DocumentBarcodeKindOutput = string;\n/** Alias for DocumentFormulaKindOutput */\nexport type DocumentFormulaKindOutput = string;\n/** Alias for ParagraphRoleOutput */\nexport type ParagraphRoleOutput = string;\n/** Alias for DocumentTableCellKindOutput */\nexport type DocumentTableCellKindOutput = string;\n/** Alias for FontStyleOutput */\nexport type FontStyleOutput = string;\n/** Alias for FontWeightOutput */\nexport type FontWeightOutput = string;\n/** Alias for DocumentSignatureTypeOutput */\nexport type DocumentSignatureTypeOutput = string;\n/** Paged collection of DocumentModelDetails items */\nexport type PagedDocumentModelDetailsOutput = Paged<DocumentModelDetailsOutput>;\n/** Paged collection of DocumentClassifierDetails items */\nexport type PagedDocumentClassifierDetailsOutput = Paged<DocumentClassifierDetailsOutput>;\n"]}
1
+ {"version":3,"file":"outputModels.js","sourceRoot":"","sources":["../../src/outputModels.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { Paged } from \"@azure/core-paging\";\n\n/** Operation info. */\nexport interface OperationDetailsOutputParent {\n /** Operation ID */\n operationId: string;\n /**\n * Operation status. notStarted, running, completed, or failed\n *\n * Possible values: \"notStarted\", \"running\", \"failed\", \"succeeded\", \"completed\", \"canceled\"\n */\n status: OperationStatusOutput;\n /** Operation progress (0-100). */\n percentCompleted?: number;\n /** Date and time (UTC) when the operation was created. */\n createdDateTime: string;\n /** Date and time (UTC) when the status was last updated. */\n lastUpdatedDateTime: string;\n /** URL of the resource targeted by this operation. */\n resourceLocation: string;\n /** API version used to create this operation. */\n apiVersion?: string;\n /** List of key-value tag attributes associated with the document model. */\n tags?: Record<string, string>;\n /** Encountered error. */\n error?: ErrorModelOutput;\n kind: OperationKindOutput;\n}\n\n/** The error object. */\nexport interface ErrorModelOutput {\n /** One of a server-defined set of error codes. */\n code: string;\n /** A human-readable representation of the error. */\n message: string;\n /** The target of the error. */\n target?: string;\n /** An array of details about specific errors that led to this reported error. */\n details?: Array<ErrorModelOutput>;\n /** An object containing more specific information than the current object about the error. */\n innererror?: InnerErrorOutput;\n}\n\n/** An object containing more specific information about the error. */\nexport interface InnerErrorOutput {\n /** One of a server-defined set of error codes. */\n code?: string;\n /** A human-readable representation of the error. */\n message?: string;\n /** Inner error. */\n innererror?: InnerErrorOutput;\n}\n\n/** Get Operation response object. */\nexport interface DocumentModelBuildOperationDetailsOutput extends OperationDetailsOutputParent {\n /** Operation result upon success. */\n result?: DocumentModelDetailsOutput;\n /** Type of operation. */\n kind: \"documentModelBuild\";\n}\n\n/** Document model info. */\nexport interface DocumentModelDetailsOutput {\n /** Unique document model name. */\n modelId: string;\n /** Document model description. */\n description?: string;\n /** Date and time (UTC) when the document model was created. */\n readonly createdDateTime: string;\n /** Date and time (UTC) when the document model will expire. */\n readonly expirationDateTime?: string;\n /** API version used to create this document model. */\n readonly apiVersion?: string;\n /** List of key-value tag attributes associated with the document model. */\n tags?: Record<string, string>;\n /**\n * Custom document model build mode.\n *\n * Possible values: \"template\", \"neural\", \"generative\"\n */\n readonly buildMode?: DocumentBuildModeOutput;\n /**\n * Azure Blob Storage location containing the training data. Either\n * azureBlobSource or azureBlobFileListSource must be specified.\n */\n readonly azureBlobSource?: AzureBlobContentSourceOutput;\n /**\n * Azure Blob Storage file list specifying the training data. Either\n * azureBlobSource or azureBlobFileListSource must be specified.\n */\n readonly azureBlobFileListSource?: AzureBlobFileListContentSourceOutput;\n /** For composed models, the custom classifier to split and classify the input file. */\n classifierId?: string;\n /**\n * For composed models, the file splitting behavior.\n *\n * Possible values: \"auto\", \"none\", \"perPage\"\n */\n split?: SplitModeOutput;\n /** Supported document types. */\n readonly docTypes?: Record<string, DocumentTypeDetailsOutput>;\n /** List of warnings encountered while building the model. */\n readonly warnings?: Array<WarningOutput>;\n /** Number of V100-equivalent GPU hours consumed for model training. */\n readonly trainingHours?: number;\n}\n\n/** Azure Blob Storage content. */\nexport interface AzureBlobContentSourceOutput {\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 AzureBlobFileListContentSourceOutput {\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 DocumentTypeDetailsOutput {\n /** Document model description. */\n description?: string;\n /**\n * Custom document model build mode.\n *\n * Possible values: \"template\", \"neural\", \"generative\"\n */\n buildMode?: DocumentBuildModeOutput;\n /** Description of the document semantic schema using a JSON Schema style syntax. */\n fieldSchema?: Record<string, DocumentFieldSchemaOutput>;\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?: DocumentAnalysisFeatureOutput[];\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 DocumentFieldSchemaOutput {\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: DocumentFieldTypeOutput;\n /** Field description. */\n description?: string;\n /** Example field content. */\n example?: string;\n /** Field type schema of each array element. */\n items?: DocumentFieldSchemaOutput;\n /** Named sub-fields of the object field. */\n properties?: Record<string, DocumentFieldSchemaOutput>;\n}\n\n/** The error object. */\nexport interface WarningOutput {\n /** One of a server-defined set of warning codes. */\n code: string;\n /** A human-readable representation of the warning. */\n message: string;\n /** The target of the error. */\n target?: string;\n}\n\n/** Get Operation response object. */\nexport interface DocumentModelComposeOperationDetailsOutput extends OperationDetailsOutputParent {\n /** Operation result upon success. */\n result?: DocumentModelDetailsOutput;\n /** Type of operation. */\n kind: \"documentModelCompose\";\n}\n\n/** Get Operation response object. */\nexport interface DocumentModelCopyToOperationDetailsOutput extends OperationDetailsOutputParent {\n /** Operation result upon success. */\n result?: DocumentModelDetailsOutput;\n /** Type of operation. */\n kind: \"documentModelCopyTo\";\n}\n\n/** Get Operation response object. */\nexport interface DocumentClassifierCopyToOperationDetailsOutput\n extends OperationDetailsOutputParent {\n /** Operation result upon success. */\n result?: DocumentClassifierDetailsOutput;\n /** Type of operation. */\n kind: \"documentClassifierCopyTo\";\n}\n\n/** Document classifier info. */\nexport interface DocumentClassifierDetailsOutput {\n /** Unique document classifier name. */\n classifierId: string;\n /** Document classifier description. */\n description?: string;\n /** Date and time (UTC) when the document classifier was created. */\n createdDateTime: string;\n /** Date and time (UTC) when the document classifier will expire. */\n expirationDateTime?: string;\n /** API version used to create this document classifier. */\n apiVersion: string;\n /** Base classifierId on top of which the classifier was trained. */\n baseClassifierId?: string;\n /** List of document types to classify against. */\n docTypes: Record<string, ClassifierDocumentTypeDetailsOutput>;\n /** List of warnings encountered while building the classifier. */\n warnings?: Array<WarningOutput>;\n}\n\n/** Classifier document type info. */\nexport interface ClassifierDocumentTypeDetailsOutput {\n /**\n * Type of training data source.\n *\n * Possible values: \"url\", \"base64\", \"azureBlob\", \"azureBlobFileList\"\n */\n sourceKind?: ContentSourceKindOutput;\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?: AzureBlobContentSourceOutput;\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?: AzureBlobFileListContentSourceOutput;\n}\n\n/** Get Operation response object. */\nexport interface DocumentClassifierBuildOperationDetailsOutput\n extends OperationDetailsOutputParent {\n /** Operation result upon success. */\n result?: DocumentClassifierDetailsOutput;\n /** Type of operation. */\n kind: \"documentClassifierBuild\";\n}\n\n/** Error response object. */\nexport interface ErrorResponseOutput {\n /** Error info. */\n error: ErrorModelOutput;\n}\n\n/** General information regarding the current resource. */\nexport interface ResourceDetailsOutput {\n /** Details regarding custom document models. */\n customDocumentModels: CustomDocumentModelsDetailsOutput;\n}\n\n/** Details regarding custom document models. */\nexport interface CustomDocumentModelsDetailsOutput {\n /** Number of custom document models in the current resource. */\n count: number;\n /** Maximum number of custom document models supported in the current resource. */\n limit: number;\n}\n\n/** Status and result of the analyze operation. */\nexport interface AnalyzeResultOperationOutput {\n /**\n * Operation status. notStarted, running, succeeded, or failed\n *\n * Possible values: \"notStarted\", \"running\", \"failed\", \"succeeded\", \"completed\", \"canceled\"\n */\n status: OperationStatusOutput;\n /** Date and time (UTC) when the analyze operation was submitted. */\n createdDateTime: string;\n /** Date and time (UTC) when the status was last updated. */\n lastUpdatedDateTime: string;\n /** Encountered error during document analysis. */\n error?: ErrorModelOutput;\n /** Document analysis result. */\n analyzeResult?: AnalyzeResultOutput;\n}\n\n/** Document analysis result. */\nexport interface AnalyzeResultOutput {\n /** API version used to produce this result. */\n apiVersion: string;\n /** Document model ID used to produce this result. */\n modelId: string;\n /**\n * Method used to compute string offset and length.\n *\n * Possible values: \"textElements\", \"unicodeCodePoint\", \"utf16CodeUnit\"\n */\n stringIndexType: StringIndexTypeOutput;\n /**\n * Format of the analyze result top-level content.\n *\n * Possible values: \"text\", \"markdown\"\n */\n contentFormat?: ContentFormatOutput;\n /**\n * Concatenate string representation of all textual and visual elements in reading\n * order.\n */\n content: string;\n /** Analyzed pages. */\n pages: Array<DocumentPageOutput>;\n /** Extracted paragraphs. */\n paragraphs?: Array<DocumentParagraphOutput>;\n /** Extracted tables. */\n tables?: Array<DocumentTableOutput>;\n /** Extracted figures. */\n figures?: Array<DocumentFigureOutput>;\n /** Extracted sections. */\n sections?: Array<DocumentSectionOutput>;\n /** Extracted key-value pairs. */\n keyValuePairs?: Array<DocumentKeyValuePairOutput>;\n /** Extracted font styles. */\n styles?: Array<DocumentStyleOutput>;\n /** Detected languages. */\n languages?: Array<DocumentLanguageOutput>;\n /** Extracted documents. */\n documents?: Array<DocumentOutput>;\n /** List of warnings encountered. */\n warnings?: Array<WarningOutput>;\n}\n\n/** Content and layout elements extracted from a page from the input. */\nexport interface DocumentPageOutput {\n /** 1-based page number in the input document. */\n pageNumber: number;\n /**\n * The general orientation of the content in clockwise direction, measured in\n * degrees between (-180, 180].\n */\n angle?: number;\n /** The width of the image/PDF in pixels/inches, respectively. */\n width?: number;\n /** The height of the image/PDF in pixels/inches, respectively. */\n height?: number;\n /**\n * The unit used by the width, height, and polygon properties. For images, the\n * unit is \"pixel\". For PDF, the unit is \"inch\".\n *\n * Possible values: \"pixel\", \"inch\"\n */\n unit?: LengthUnitOutput;\n /** Location of the page in the reading order concatenated content. */\n spans: Array<DocumentSpanOutput>;\n /** Extracted words from the page. */\n words?: Array<DocumentWordOutput>;\n /** Extracted selection marks from the page. */\n selectionMarks?: Array<DocumentSelectionMarkOutput>;\n /**\n * Extracted lines from the page, potentially containing both textual and visual\n * elements.\n */\n lines?: Array<DocumentLineOutput>;\n /** Extracted barcodes from the page. */\n barcodes?: Array<DocumentBarcodeOutput>;\n /** Extracted formulas from the page. */\n formulas?: Array<DocumentFormulaOutput>;\n}\n\n/**\n * Contiguous region of the concatenated content property, specified as an offset\n * and length.\n */\nexport interface DocumentSpanOutput {\n /** Zero-based index of the content represented by the span. */\n offset: number;\n /** Number of characters in the content represented by the span. */\n length: number;\n}\n\n/**\n * A word object consisting of a contiguous sequence of characters. For non-space\n * delimited languages, such as Chinese, Japanese, and Korean, each character is\n * represented as its own word.\n */\nexport interface DocumentWordOutput {\n /** Text content of the word. */\n content: string;\n /**\n * Bounding polygon of the word, with coordinates specified relative to the\n * top-left of the page. The numbers represent the x, y values of the polygon\n * vertices, clockwise from the left (-180 degrees inclusive) relative to the\n * element orientation.\n */\n polygon?: number[];\n /** Location of the word in the reading order concatenated content. */\n span: DocumentSpanOutput;\n /** Confidence of correctly extracting the word. */\n confidence: number;\n}\n\n/**\n * A selection mark object representing check boxes, radio buttons, and other\n * elements indicating a selection.\n */\nexport interface DocumentSelectionMarkOutput {\n /**\n * State of the selection mark.\n *\n * Possible values: \"selected\", \"unselected\"\n */\n state: DocumentSelectionMarkStateOutput;\n /**\n * Bounding polygon of the selection mark, with coordinates specified relative\n * to the top-left of the page. The numbers represent the x, y values of the\n * polygon vertices, clockwise from the left (-180 degrees inclusive) relative\n * to the element orientation.\n */\n polygon?: number[];\n /** Location of the selection mark in the reading order concatenated content. */\n span: DocumentSpanOutput;\n /** Confidence of correctly extracting the selection mark. */\n confidence: number;\n}\n\n/**\n * A content line object consisting of an adjacent sequence of content elements,\n * such as words and selection marks.\n */\nexport interface DocumentLineOutput {\n /** Concatenated content of the contained elements in reading order. */\n content: string;\n /**\n * Bounding polygon of the line, with coordinates specified relative to the\n * top-left of the page. The numbers represent the x, y values of the polygon\n * vertices, clockwise from the left (-180 degrees inclusive) relative to the\n * element orientation.\n */\n polygon?: number[];\n /** Location of the line in the reading order concatenated content. */\n spans: Array<DocumentSpanOutput>;\n}\n\n/** A barcode object. */\nexport interface DocumentBarcodeOutput {\n /**\n * Barcode kind.\n *\n * Possible values: \"QRCode\", \"PDF417\", \"UPCA\", \"UPCE\", \"Code39\", \"Code128\", \"EAN8\", \"EAN13\", \"DataBar\", \"Code93\", \"Codabar\", \"DataBarExpanded\", \"ITF\", \"MicroQRCode\", \"Aztec\", \"DataMatrix\", \"MaxiCode\"\n */\n kind: DocumentBarcodeKindOutput;\n /** Barcode value. */\n value: string;\n /**\n * Bounding polygon of the barcode, with coordinates specified relative to the\n * top-left of the page. The numbers represent the x, y values of the polygon\n * vertices, clockwise from the left (-180 degrees inclusive) relative to the\n * element orientation.\n */\n polygon?: number[];\n /** Location of the barcode in the reading order concatenated content. */\n span: DocumentSpanOutput;\n /** Confidence of correctly extracting the barcode. */\n confidence: number;\n}\n\n/** A formula object. */\nexport interface DocumentFormulaOutput {\n /**\n * Formula kind.\n *\n * Possible values: \"inline\", \"display\"\n */\n kind: DocumentFormulaKindOutput;\n /** LaTex expression describing the formula. */\n value: string;\n /**\n * Bounding polygon of the formula, with coordinates specified relative to the\n * top-left of the page. The numbers represent the x, y values of the polygon\n * vertices, clockwise from the left (-180 degrees inclusive) relative to the\n * element orientation.\n */\n polygon?: number[];\n /** Location of the formula in the reading order concatenated content. */\n span: DocumentSpanOutput;\n /** Confidence of correctly extracting the formula. */\n confidence: number;\n}\n\n/**\n * A paragraph object consisting with contiguous lines generally with common\n * alignment and spacing.\n */\nexport interface DocumentParagraphOutput {\n /**\n * Semantic role of the paragraph.\n *\n * Possible values: \"pageHeader\", \"pageFooter\", \"pageNumber\", \"title\", \"sectionHeading\", \"footnote\", \"formulaBlock\"\n */\n role?: ParagraphRoleOutput;\n /** Concatenated content of the paragraph in reading order. */\n content: string;\n /** Bounding regions covering the paragraph. */\n boundingRegions?: Array<BoundingRegionOutput>;\n /** Location of the paragraph in the reading order concatenated content. */\n spans: Array<DocumentSpanOutput>;\n}\n\n/** Bounding polygon on a specific page of the input. */\nexport interface BoundingRegionOutput {\n /** 1-based page number of page containing the bounding region. */\n pageNumber: number;\n /**\n * Bounding polygon on the page, or the entire page if not specified.\n * Coordinates specified relative to the top-left of the page. The numbers\n * represent the x, y values of the polygon vertices, clockwise from the left\n * (-180 degrees inclusive) relative to the element orientation.\n */\n polygon: number[];\n}\n\n/** A table object consisting table cells arranged in a rectangular layout. */\nexport interface DocumentTableOutput {\n /** Number of rows in the table. */\n rowCount: number;\n /** Number of columns in the table. */\n columnCount: number;\n /** Cells contained within the table. */\n cells: Array<DocumentTableCellOutput>;\n /** Bounding regions covering the table. */\n boundingRegions?: Array<BoundingRegionOutput>;\n /** Location of the table in the reading order concatenated content. */\n spans: Array<DocumentSpanOutput>;\n /** Caption associated with the table. */\n caption?: DocumentCaptionOutput;\n /** List of footnotes associated with the table. */\n footnotes?: Array<DocumentFootnoteOutput>;\n}\n\n/** An object representing the location and content of a table cell. */\nexport interface DocumentTableCellOutput {\n /**\n * Table cell kind.\n *\n * Possible values: \"content\", \"rowHeader\", \"columnHeader\", \"stubHead\", \"description\"\n */\n kind?: DocumentTableCellKindOutput;\n /** Row index of the cell. */\n rowIndex: number;\n /** Column index of the cell. */\n columnIndex: number;\n /** Number of rows spanned by this cell. */\n rowSpan?: number;\n /** Number of columns spanned by this cell. */\n columnSpan?: number;\n /** Concatenated content of the table cell in reading order. */\n content: string;\n /** Bounding regions covering the table cell. */\n boundingRegions?: Array<BoundingRegionOutput>;\n /** Location of the table cell in the reading order concatenated content. */\n spans: Array<DocumentSpanOutput>;\n /** Child elements of the table cell. */\n elements?: string[];\n}\n\n/** A caption object describing a table or figure. */\nexport interface DocumentCaptionOutput {\n /** Content of the caption. */\n content: string;\n /** Bounding regions covering the caption. */\n boundingRegions?: Array<BoundingRegionOutput>;\n /** Location of the caption in the reading order concatenated content. */\n spans: Array<DocumentSpanOutput>;\n /** Child elements of the caption. */\n elements?: string[];\n}\n\n/** A footnote object describing a table or figure. */\nexport interface DocumentFootnoteOutput {\n /** Content of the footnote. */\n content: string;\n /** Bounding regions covering the footnote. */\n boundingRegions?: Array<BoundingRegionOutput>;\n /** Location of the footnote in the reading order concatenated content. */\n spans: Array<DocumentSpanOutput>;\n /** Child elements of the footnote. */\n elements?: string[];\n}\n\n/** An object representing a figure in the document. */\nexport interface DocumentFigureOutput {\n /** Bounding regions covering the figure. */\n boundingRegions?: Array<BoundingRegionOutput>;\n /** Location of the figure in the reading order concatenated content. */\n spans: Array<DocumentSpanOutput>;\n /** Child elements of the figure, excluding any caption or footnotes. */\n elements?: string[];\n /** Caption associated with the figure. */\n caption?: DocumentCaptionOutput;\n /** List of footnotes associated with the figure. */\n footnotes?: Array<DocumentFootnoteOutput>;\n /** Figure ID. */\n id?: string;\n}\n\n/** An object representing a section in the document. */\nexport interface DocumentSectionOutput {\n /** Location of the section in the reading order concatenated content. */\n spans: Array<DocumentSpanOutput>;\n /** Child elements of the section. */\n elements?: string[];\n}\n\n/**\n * An object representing a form field with distinct field label (key) and field\n * value (may be empty).\n */\nexport interface DocumentKeyValuePairOutput {\n /** Field label of the key-value pair. */\n key: DocumentKeyValueElementOutput;\n /** Field value of the key-value pair. */\n value?: DocumentKeyValueElementOutput;\n /** Confidence of correctly extracting the key-value pair. */\n confidence: number;\n}\n\n/** An object representing the field key or value in a key-value pair. */\nexport interface DocumentKeyValueElementOutput {\n /** Concatenated content of the key-value element in reading order. */\n content: string;\n /** Bounding regions covering the key-value element. */\n boundingRegions?: Array<BoundingRegionOutput>;\n /** Location of the key-value element in the reading order concatenated content. */\n spans: Array<DocumentSpanOutput>;\n}\n\n/** An object representing observed text styles. */\nexport interface DocumentStyleOutput {\n /** Is content handwritten? */\n isHandwritten?: boolean;\n /**\n * Visually most similar font from among the set of supported font families, with\n * fallback fonts following CSS convention (ex. 'Arial, sans-serif').\n */\n similarFontFamily?: string;\n /**\n * Font style.\n *\n * Possible values: \"normal\", \"italic\"\n */\n fontStyle?: FontStyleOutput;\n /**\n * Font weight.\n *\n * Possible values: \"normal\", \"bold\"\n */\n fontWeight?: FontWeightOutput;\n /** Foreground color in #rrggbb hexadecimal format. */\n color?: string;\n /** Background color in #rrggbb hexadecimal format.. */\n backgroundColor?: string;\n /** Location of the text elements in the concatenated content the style applies to. */\n spans: Array<DocumentSpanOutput>;\n /** Confidence of correctly identifying the style. */\n confidence: number;\n}\n\n/** An object representing the detected language for a given text span. */\nexport interface DocumentLanguageOutput {\n /**\n * Detected language. Value may an ISO 639-1 language code (ex. \"en\", \"fr\")\n * or BCP 47 language tag (ex. \"zh-Hans\").\n */\n locale: string;\n /**\n * Location of the text elements in the concatenated content the language applies\n * to.\n */\n spans: Array<DocumentSpanOutput>;\n /** Confidence of correctly identifying the language. */\n confidence: number;\n}\n\n/** An object describing the location and semantic content of a document. */\nexport interface DocumentOutput {\n /** Document type. */\n docType: string;\n /** Bounding regions covering the document. */\n boundingRegions?: Array<BoundingRegionOutput>;\n /** Location of the document in the reading order concatenated content. */\n spans: Array<DocumentSpanOutput>;\n /** Dictionary of named field values. */\n fields?: Record<string, DocumentFieldOutput>;\n /** Confidence of correctly extracting the document. */\n confidence: number;\n}\n\n/** An object representing the content and location of a field value. */\nexport interface DocumentFieldOutput {\n /**\n * 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: DocumentFieldTypeOutput;\n /** String value. */\n valueString?: string;\n /** Date value in YYYY-MM-DD format (ISO 8601). */\n valueDate?: string;\n /** Time value in hh:mm:ss format (ISO 8601). */\n valueTime?: string;\n /** Phone number value in E.164 format (ex. +19876543210). */\n valuePhoneNumber?: string;\n /** Floating point value. */\n valueNumber?: number;\n /** Integer value. */\n valueInteger?: number;\n /**\n * Selection mark value.\n *\n * Possible values: \"selected\", \"unselected\"\n */\n valueSelectionMark?: DocumentSelectionMarkStateOutput;\n /**\n * Presence of signature.\n *\n * Possible values: \"signed\", \"unsigned\"\n */\n valueSignature?: DocumentSignatureTypeOutput;\n /** 3-letter country code value (ISO 3166-1 alpha-3). */\n valueCountryRegion?: string;\n /** Array of field values. */\n valueArray?: Array<DocumentFieldOutput>;\n /** Dictionary of named field values. */\n valueObject?: Record<string, DocumentFieldOutput>;\n /** Currency value. */\n valueCurrency?: CurrencyValueOutput;\n /** Address value. */\n valueAddress?: AddressValueOutput;\n /** Boolean value. */\n valueBoolean?: boolean;\n /** Selection group value. */\n valueSelectionGroup?: string[];\n /** Field content. */\n content?: string;\n /** Bounding regions covering the field. */\n boundingRegions?: Array<BoundingRegionOutput>;\n /** Location of the field in the reading order concatenated content. */\n spans?: Array<DocumentSpanOutput>;\n /** Confidence of correctly extracting the field. */\n confidence?: number;\n}\n\n/** Currency field value. */\nexport interface CurrencyValueOutput {\n /** Currency amount. */\n amount: number;\n /** Currency symbol label, if any. */\n currencySymbol?: string;\n /** Resolved currency code (ISO 4217), if any. */\n currencyCode?: string;\n}\n\n/** Address field value. */\nexport interface AddressValueOutput {\n /** House or building number. */\n houseNumber?: string;\n /** Post office box number. */\n poBox?: string;\n /** Street name. */\n road?: string;\n /** Name of city, town, village, etc. */\n city?: string;\n /** First-level administrative division. */\n state?: string;\n /** Postal code used for mail sorting. */\n postalCode?: string;\n /** Country/region. */\n countryRegion?: string;\n /** Street-level address, excluding city, state, countryRegion, and postalCode. */\n streetAddress?: string;\n /** Apartment or office number */\n unit?: string;\n /**\n * Districts or boroughs within a city, such as Brooklyn in New York City or City\n * of Westminster in London.\n */\n cityDistrict?: string;\n /** Second-level administrative division used in certain locales. */\n stateDistrict?: string;\n /** Unofficial neighborhood name, like Chinatown. */\n suburb?: string;\n /** Build name, such as World Trade Center. */\n house?: string;\n /** Floor number, such as 3F. */\n level?: string;\n}\n\n/** Status and result of the analyze batch operation. */\nexport interface AnalyzeBatchResultOperationOutput {\n /**\n * Operation status. notStarted, running, completed, or failed\n *\n * Possible values: \"notStarted\", \"running\", \"failed\", \"succeeded\", \"completed\", \"canceled\"\n */\n status: OperationStatusOutput;\n /** Date and time (UTC) when the operation was submitted. */\n createdDateTime: string;\n /** Date and time (UTC) when the status was last updated. */\n lastUpdatedDateTime: string;\n /** Operation progress (0-100). */\n percentCompleted?: number;\n /** Encountered error during batch document analysis. */\n error?: ErrorModelOutput;\n /** Batch document analysis result. */\n result?: AnalyzeBatchResultOutput;\n}\n\n/** Batch document analysis result. */\nexport interface AnalyzeBatchResultOutput {\n /** Number of documents that completed with status succeeded. */\n succeededCount: number;\n /** Number of documents that completed with status failed. */\n failedCount: number;\n /** Number of documents that completed with status skipped. */\n skippedCount: number;\n /** Operation detail for each document in the batch. */\n details: Array<AnalyzeBatchOperationDetailOutput>;\n}\n\n/** Operation detail for a document in a batch analysis. */\nexport interface AnalyzeBatchOperationDetailOutput {\n /**\n * Analyze status. succeeded, failed, or skipped\n *\n * Possible values: \"notStarted\", \"running\", \"failed\", \"succeeded\", \"completed\", \"canceled\"\n */\n status: OperationStatusOutput;\n /** URL of the source document. */\n sourceUrl: string;\n /** URL of the analyze result JSON. */\n resultUrl?: string;\n /** Encountered error. */\n error?: ErrorModelOutput;\n}\n\n/**\n * Authorization to copy a document model to the specified target resource and\n * modelId.\n */\nexport interface CopyAuthorizationOutput {\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: string;\n}\n\n/**\n * Authorization to copy a document classifier to the specified target resource and\n * classifierId.\n */\nexport interface ClassifierCopyAuthorizationOutput {\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: string;\n}\n\n/** Operation info. */\nexport type OperationDetailsOutput =\n | OperationDetailsOutputParent\n | DocumentModelBuildOperationDetailsOutput\n | DocumentModelComposeOperationDetailsOutput\n | DocumentModelCopyToOperationDetailsOutput\n | DocumentClassifierCopyToOperationDetailsOutput\n | DocumentClassifierBuildOperationDetailsOutput;\n/** Paged collection of OperationDetails items */\nexport type PagedOperationDetailsOutput = Paged<OperationDetailsOutput>;\n/** Alias for OperationStatusOutput */\nexport type OperationStatusOutput = string;\n/** Alias for OperationKindOutput */\nexport type OperationKindOutput = string;\n/** Alias for DocumentBuildModeOutput */\nexport type DocumentBuildModeOutput = string;\n/** Alias for SplitModeOutput */\nexport type SplitModeOutput = string;\n/** Alias for DocumentFieldTypeOutput */\nexport type DocumentFieldTypeOutput = string;\n/** Alias for DocumentAnalysisFeatureOutput */\nexport type DocumentAnalysisFeatureOutput = string;\n/** Alias for ContentSourceKindOutput */\nexport type ContentSourceKindOutput = string;\n/** Alias for StringIndexTypeOutput */\nexport type StringIndexTypeOutput = string;\n/** Alias for ContentFormatOutput */\nexport type ContentFormatOutput = string;\n/** Alias for LengthUnitOutput */\nexport type LengthUnitOutput = string;\n/** Alias for DocumentSelectionMarkStateOutput */\nexport type DocumentSelectionMarkStateOutput = string;\n/** Alias for DocumentBarcodeKindOutput */\nexport type DocumentBarcodeKindOutput = string;\n/** Alias for DocumentFormulaKindOutput */\nexport type DocumentFormulaKindOutput = string;\n/** Alias for ParagraphRoleOutput */\nexport type ParagraphRoleOutput = string;\n/** Alias for DocumentTableCellKindOutput */\nexport type DocumentTableCellKindOutput = string;\n/** Alias for FontStyleOutput */\nexport type FontStyleOutput = string;\n/** Alias for FontWeightOutput */\nexport type FontWeightOutput = string;\n/** Alias for DocumentSignatureTypeOutput */\nexport type DocumentSignatureTypeOutput = string;\n/** Paged collection of DocumentModelDetails items */\nexport type PagedDocumentModelDetailsOutput = Paged<DocumentModelDetailsOutput>;\n/** Paged collection of DocumentClassifierDetails items */\nexport type PagedDocumentClassifierDetailsOutput = Paged<DocumentClassifierDetailsOutput>;\n"]}
@@ -1,5 +1,5 @@
1
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import { Client, PathUncheckedResponse } from "@azure-rest/core-client";
1
+ import type { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import type { Client, PathUncheckedResponse } from "@azure-rest/core-client";
3
3
  /**
4
4
  * Helper type to extract the type of an array
5
5
  */
@@ -1 +1 @@
1
- {"version":3,"file":"paginateHelper.d.ts","sourceRoot":"","sources":["../../src/paginateHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAyB,0BAA0B,EAAe,MAAM,oBAAoB,CAAC;AACpG,OAAO,EAAE,MAAM,EAAmB,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEzF;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,SAAS,KAAK,CAAC,MAAM,KAAK,CAAC,GAAG,KAAK,GAAG,KAAK,CAAC;AAE3E;;GAEG;AACH,MAAM,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AkF,QAAQ,EAAE,CAC7F,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,CAAC;AACrB,CAAC;AAED;;GAEG;AACH,SAAS,kBAAkB,CAAC,QAA+B;IACzD,MAAM,kBAAkB,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAClG,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAClD,MAAM,eAAe,CACnB,gDAAgD,QAAQ,CAAC,MAAM,EAAE,EACjE,QAAQ,CACT,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { getPagedAsyncIterator, PagedAsyncIterableIterator, PagedResult } from \"@azure/core-paging\";\nimport { Client, createRestError, PathUncheckedResponse } from \"@azure-rest/core-client\";\n\n/**\n * Helper type to extract the type of an array\n */\nexport type GetArrayType<T> = T extends Array<infer TData> ? TData : never;\n\n/**\n * The type of a custom function that defines how to get a page and a link to the next one if any.\n */\nexport type GetPage<TPage> = (\n pageLink: string,\n maxPageSize?: number,\n) => Promise<{\n page: TPage;\n nextPageLink?: string;\n}>;\n\n/**\n * Options for the paging helper\n */\nexport interface PagingOptions<TResponse> {\n /**\n * Custom function to extract pagination details for crating the PagedAsyncIterableIterator\n */\n customGetPage?: GetPage<PaginateReturn<TResponse>[]>;\n}\n\n/**\n * Helper type to infer the Type of the paged elements from the response type\n * This type is generated based on the swagger information for x-ms-pageable\n * specifically on the itemName property which indicates the property of the response\n * where the page items are found. The default value is `value`.\n * This type will allow us to provide strongly typed Iterator based on the response we get as second parameter\n */\nexport type PaginateReturn<TResult> = TResult extends {\n body: { value?: infer TPage };\n}\n ? GetArrayType<TPage>\n : Array<unknown>;\n\n/**\n * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension\n * @param client - Client to use for sending the next page requests\n * @param initialResponse - Initial response containing the nextLink and current page of elements\n * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results\n * @returns - PagedAsyncIterableIterator to iterate the elements\n */\nexport function paginate<TResponse extends PathUncheckedResponse>(\n client: Client,\n initialResponse: TResponse,\n options: PagingOptions<TResponse> = {},\n): PagedAsyncIterableIterator<PaginateReturn<TResponse>> {\n // Extract element type from initial response\n type TElement = PaginateReturn<TResponse>;\n let firstRun = true;\n const itemName = \"value\";\n const nextLinkName = \"nextLink\";\n const { customGetPage } = options;\n const pagedResult: PagedResult<TElement[]> = {\n firstPageLink: \"\",\n getPage:\n typeof customGetPage === \"function\"\n ? customGetPage\n : async (pageLink: string) => {\n const result = firstRun ? initialResponse : await client.pathUnchecked(pageLink).get();\n firstRun = false;\n checkPagingRequest(result);\n const nextLink = getNextLink(result.body, nextLinkName);\n const values = getElements<TElement>(result.body, itemName);\n return {\n page: values,\n nextPageLink: nextLink,\n };\n },\n };\n\n return getPagedAsyncIterator(pagedResult);\n}\n\n/**\n * Gets for the value of nextLink in the body\n */\nfunction getNextLink(body: unknown, nextLinkName?: string): string | undefined {\n if (!nextLinkName) {\n return undefined;\n }\n\n const nextLink = (body as Record<string, unknown>)[nextLinkName];\n\n if (typeof nextLink !== \"string\" && typeof nextLink !== \"undefined\") {\n throw new Error(`Body Property ${nextLinkName} should be a string or undefined`);\n }\n\n return nextLink;\n}\n\n/**\n * Gets the elements of the current request in the body.\n */\nfunction getElements<T = unknown>(body: unknown, itemName: string): T[] {\n const value = (body as Record<string, unknown>)[itemName] as T[];\n\n // value has to be an array according to the x-ms-pageable extension.\n // The fact that this must be an array is used above to calculate the\n // type of elements in the page in PaginateReturn\n if (!Array.isArray(value)) {\n throw new Error(\n `Couldn't paginate response\\n Body doesn't contain an array property with name: ${itemName}`,\n );\n }\n\n return value ?? [];\n}\n\n/**\n * Checks if a request failed\n */\nfunction checkPagingRequest(response: PathUncheckedResponse): void {\n const Http2xxStatusCodes = [\"200\", \"201\", \"202\", \"203\", \"204\", \"205\", \"206\", \"207\", \"208\", \"226\"];\n if (!Http2xxStatusCodes.includes(response.status)) {\n throw createRestError(\n `Pagination failed with unexpected statusCode ${response.status}`,\n response,\n );\n }\n}\n"]}
1
+ {"version":3,"file":"paginateHelper.js","sourceRoot":"","sources":["../../src/paginateHelper.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAyC1D;;;;;;GAMG;AACH,MAAM,UAAU,QAAQ,CACtB,MAAc,EACd,eAA0B,EAC1B,UAAoC,EAAE;IAItC,IAAI,QAAQ,GAAG,IAAI,CAAC;IACpB,MAAM,QAAQ,GAAG,OAAO,CAAC;IACzB,MAAM,YAAY,GAAG,UAAU,CAAC;IAChC,MAAM,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC;IAClC,MAAM,WAAW,GAA4B;QAC3C,aAAa,EAAE,EAAE;QACjB,OAAO,EACL,OAAO,aAAa,KAAK,UAAU;YACjC,CAAC,CAAC,aAAa;YACf,CAAC,CAAC,KAAK,EAAE,QAAgB,EAAE,EAAE;gBACzB,MAAM,MAAM,GAAG,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,CAAC;gBACvF,QAAQ,GAAG,KAAK,CAAC;gBACjB,kBAAkB,CAAC,MAAM,CAAC,CAAC;gBAC3B,MAAM,QAAQ,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;gBACxD,MAAM,MAAM,GAAG,WAAW,CAAW,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;gBAC5D,OAAO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,EAAE,EACjE,QAAQ,CACT,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { PagedAsyncIterableIterator, PagedResult } from \"@azure/core-paging\";\nimport { getPagedAsyncIterator } from \"@azure/core-paging\";\nimport type { Client, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError } from \"@azure-rest/core-client\";\n\n/**\n * Helper type to extract the type of an array\n */\nexport type GetArrayType<T> = T extends Array<infer TData> ? TData : never;\n\n/**\n * The type of a custom function that defines how to get a page and a link to the next one if any.\n */\nexport type GetPage<TPage> = (\n pageLink: string,\n maxPageSize?: number,\n) => Promise<{\n page: TPage;\n nextPageLink?: string;\n}>;\n\n/**\n * Options for the paging helper\n */\nexport interface PagingOptions<TResponse> {\n /**\n * Custom function to extract pagination details for crating the PagedAsyncIterableIterator\n */\n customGetPage?: GetPage<PaginateReturn<TResponse>[]>;\n}\n\n/**\n * Helper type to infer the Type of the paged elements from the response type\n * This type is generated based on the swagger information for x-ms-pageable\n * specifically on the itemName property which indicates the property of the response\n * where the page items are found. The default value is `value`.\n * This type will allow us to provide strongly typed Iterator based on the response we get as second parameter\n */\nexport type PaginateReturn<TResult> = TResult extends {\n body: { value?: infer TPage };\n}\n ? GetArrayType<TPage>\n : Array<unknown>;\n\n/**\n * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension\n * @param client - Client to use for sending the next page requests\n * @param initialResponse - Initial response containing the nextLink and current page of elements\n * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results\n * @returns - PagedAsyncIterableIterator to iterate the elements\n */\nexport function paginate<TResponse extends PathUncheckedResponse>(\n client: Client,\n initialResponse: TResponse,\n options: PagingOptions<TResponse> = {},\n): PagedAsyncIterableIterator<PaginateReturn<TResponse>> {\n // Extract element type from initial response\n type TElement = PaginateReturn<TResponse>;\n let firstRun = true;\n const itemName = \"value\";\n const nextLinkName = \"nextLink\";\n const { customGetPage } = options;\n const pagedResult: PagedResult<TElement[]> = {\n firstPageLink: \"\",\n getPage:\n typeof customGetPage === \"function\"\n ? customGetPage\n : async (pageLink: string) => {\n const result = firstRun ? initialResponse : await client.pathUnchecked(pageLink).get();\n firstRun = false;\n checkPagingRequest(result);\n const nextLink = getNextLink(result.body, nextLinkName);\n const values = getElements<TElement>(result.body, itemName);\n return {\n page: values,\n nextPageLink: nextLink,\n };\n },\n };\n\n return getPagedAsyncIterator(pagedResult);\n}\n\n/**\n * Gets for the value of nextLink in the body\n */\nfunction getNextLink(body: unknown, nextLinkName?: string): string | undefined {\n if (!nextLinkName) {\n return undefined;\n }\n\n const nextLink = (body as Record<string, unknown>)[nextLinkName];\n\n if (typeof nextLink !== \"string\" && typeof nextLink !== \"undefined\") {\n throw new Error(`Body Property ${nextLinkName} should be a string or undefined`);\n }\n\n return nextLink;\n}\n\n/**\n * Gets the elements of the current request in the body.\n */\nfunction getElements<T = unknown>(body: unknown, itemName: string): T[] {\n const value = (body as Record<string, unknown>)[itemName] as T[];\n\n // value has to be an array according to the x-ms-pageable extension.\n // The fact that this must be an array is used above to calculate the\n // type of elements in the page in PaginateReturn\n if (!Array.isArray(value)) {\n throw new Error(\n `Couldn't paginate response\\n Body doesn't contain an array property with name: ${itemName}`,\n );\n }\n\n return value ?? [];\n}\n\n/**\n * Checks if a request failed\n */\nfunction checkPagingRequest(response: PathUncheckedResponse): void {\n const Http2xxStatusCodes = [\"200\", \"201\", \"202\", \"203\", \"204\", \"205\", \"206\", \"207\", \"208\", \"226\"];\n if (!Http2xxStatusCodes.includes(response.status)) {\n throw createRestError(\n `Pagination failed with unexpected statusCode ${response.status}`,\n response,\n );\n }\n}\n"]}
@@ -1,6 +1,6 @@
1
- import { RawHttpHeadersInput } from "@azure/core-rest-pipeline";
2
- import { RequestParameters } from "@azure-rest/core-client";
3
- import { StringIndexType, DocumentAnalysisFeature, ContentFormat, AnalyzeOutputOption, AnalyzeDocumentRequest, AnalyzeBatchDocumentsRequest, BuildDocumentModelRequest, ComposeDocumentModelRequest, AuthorizeCopyRequest, CopyAuthorization, BuildDocumentClassifierRequest, SplitMode, ClassifyDocumentRequest, AuthorizeClassifierCopyRequest, ClassifierCopyAuthorization } from "./models.js";
1
+ import type { RawHttpHeadersInput } from "@azure/core-rest-pipeline";
2
+ import type { RequestParameters } from "@azure-rest/core-client";
3
+ import type { StringIndexType, DocumentAnalysisFeature, ContentFormat, AnalyzeOutputOption, AnalyzeDocumentRequest, AnalyzeBatchDocumentsRequest, BuildDocumentModelRequest, ComposeDocumentModelRequest, AuthorizeCopyRequest, CopyAuthorization, BuildDocumentClassifierRequest, SplitMode, ClassifyDocumentRequest, AuthorizeClassifierCopyRequest, ClassifierCopyAuthorization } from "./models.js";
4
4
  export interface ListOperationsHeaders {
5
5
  /** An opaque, globally-unique, client-generated string identifier for the request. */
6
6
  "x-ms-client-request-id"?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../src/parameters.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,uBAAuB,EACvB,aAAa,EACb,mBAAmB,EACnB,sBAAsB,EACtB,4BAA4B,EAC5B,yBAAyB,EACzB,2BAA2B,EAC3B,oBAAoB,EACpB,iBAAiB,EACjB,8BAA8B,EAC9B,SAAS,EACT,uBAAuB,EACvB,8BAA8B,EAC9B,2BAA2B,EAC5B,MAAM,aAAa,CAAC;AAErB,MAAM,WAAW,qBAAqB;IACpC,sFAAsF;IACtF,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC;AAED,MAAM,WAAW,yBAAyB;IACxC,OAAO,CAAC,EAAE,mBAAmB,GAAG,qBAAqB,CAAC;CACvD;AAED,MAAM,MAAM,wBAAwB,GAAG,yBAAyB,GAAG,iBAAiB,CAAC;AAErF,MAA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":["../../src/parameters.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { RawHttpHeadersInput } from \"@azure/core-rest-pipeline\";\nimport { RequestParameters } from \"@azure-rest/core-client\";\nimport {\n StringIndexType,\n DocumentAnalysisFeature,\n ContentFormat,\n AnalyzeOutputOption,\n AnalyzeDocumentRequest,\n AnalyzeBatchDocumentsRequest,\n BuildDocumentModelRequest,\n ComposeDocumentModelRequest,\n AuthorizeCopyRequest,\n CopyAuthorization,\n BuildDocumentClassifierRequest,\n SplitMode,\n ClassifyDocumentRequest,\n AuthorizeClassifierCopyRequest,\n ClassifierCopyAuthorization,\n} from \"./models.js\";\n\nexport interface ListOperationsHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface ListOperationsHeaderParam {\n headers?: RawHttpHeadersInput & ListOperationsHeaders;\n}\n\nexport type ListOperationsParameters = ListOperationsHeaderParam & RequestParameters;\n\nexport interface GetDocumentModelBuildOperationHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetDocumentModelBuildOperationHeaderParam {\n headers?: RawHttpHeadersInput & GetDocumentModelBuildOperationHeaders;\n}\n\nexport type GetDocumentModelBuildOperationParameters = GetDocumentModelBuildOperationHeaderParam &\n RequestParameters;\n\nexport interface GetDocumentModelComposeOperationHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetDocumentModelComposeOperationHeaderParam {\n headers?: RawHttpHeadersInput & GetDocumentModelComposeOperationHeaders;\n}\n\nexport type GetDocumentModelComposeOperationParameters =\n GetDocumentModelComposeOperationHeaderParam & RequestParameters;\n\nexport interface GetDocumentModelCopyToOperationHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetDocumentModelCopyToOperationHeaderParam {\n headers?: RawHttpHeadersInput & GetDocumentModelCopyToOperationHeaders;\n}\n\nexport type GetDocumentModelCopyToOperationParameters = GetDocumentModelCopyToOperationHeaderParam &\n RequestParameters;\n\nexport interface GetDocumentClassifierCopyToOperationHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetDocumentClassifierCopyToOperationHeaderParam {\n headers?: RawHttpHeadersInput & GetDocumentClassifierCopyToOperationHeaders;\n}\n\nexport type GetDocumentClassifierCopyToOperationParameters =\n GetDocumentClassifierCopyToOperationHeaderParam & RequestParameters;\n\nexport interface GetDocumentClassifierBuildOperationHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetDocumentClassifierBuildOperationHeaderParam {\n headers?: RawHttpHeadersInput & GetDocumentClassifierBuildOperationHeaders;\n}\n\nexport type GetDocumentClassifierBuildOperationParameters =\n GetDocumentClassifierBuildOperationHeaderParam & RequestParameters;\n\nexport interface GetOperationHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetOperationHeaderParam {\n headers?: RawHttpHeadersInput & GetOperationHeaders;\n}\n\nexport type GetOperationParameters = GetOperationHeaderParam & RequestParameters;\nexport type GetResourceInfoParameters = RequestParameters;\nexport type GetAnalyzeResultParameters = RequestParameters;\nexport type GetAnalyzeResultPdfParameters = RequestParameters;\nexport type GetAnalyzeResultFigureParameters = RequestParameters;\n\nexport interface AnalyzeDocumentFromStreamBodyParam {\n /**\n * Input content.\n *\n * Value may contain any sequence of octets\n */\n body: string | Uint8Array | ReadableStream<Uint8Array> | NodeJS.ReadableStream;\n}\n\nexport interface AnalyzeDocumentFromStreamQueryParamProperties {\n /** List of 1-based page numbers to analyze. Ex. \"1-3,5,7-9\" */\n pages?: string;\n /**\n * Locale hint for text recognition and document analysis. Value may contain only\n * the language code (ex. \"en\", \"fr\") or BCP 47 language tag (ex. \"en-US\").\n */\n locale?: string;\n /**\n * Method used to compute string offset and length.\n *\n * Possible values: \"textElements\", \"unicodeCodePoint\", \"utf16CodeUnit\"\n */\n stringIndexType?: StringIndexType;\n /** List of optional analysis features. */\n features?: DocumentAnalysisFeature[];\n /** List of additional fields to extract. Ex. \"NumberOfGuests,StoreNumber\" */\n queryFields?: string[];\n /**\n * Format of the analyze result top-level content.\n *\n * Possible values: \"text\", \"markdown\"\n */\n outputContentFormat?: ContentFormat;\n /** Additional outputs to generate during analysis. */\n output?: AnalyzeOutputOption[];\n}\n\nexport interface AnalyzeDocumentFromStreamQueryParam {\n queryParameters?: AnalyzeDocumentFromStreamQueryParamProperties;\n}\n\nexport interface AnalyzeDocumentFromStreamMediaTypesParam {\n /** Input content type. */\n contentType:\n | \"application/octet-stream\"\n | \"application/pdf\"\n | \"image/jpeg\"\n | \"image/png\"\n | \"image/tiff\"\n | \"image/bmp\"\n | \"image/heif\"\n | \"text/html\"\n | \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\"\n | \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\"\n | \"application/vnd.openxmlformats-officedocument.presentationml.presentation\";\n}\n\nexport type AnalyzeDocumentFromStreamParameters = AnalyzeDocumentFromStreamQueryParam &\n AnalyzeDocumentFromStreamMediaTypesParam &\n AnalyzeDocumentFromStreamBodyParam &\n RequestParameters;\n\nexport interface AnalyzeDocumentBodyParam {\n /** Analyze request parameters. */\n body?: AnalyzeDocumentRequest;\n}\n\nexport interface AnalyzeDocumentQueryParamProperties {\n /** List of 1-based page numbers to analyze. Ex. \"1-3,5,7-9\" */\n pages?: string;\n /**\n * Locale hint for text recognition and document analysis. Value may contain only\n * the language code (ex. \"en\", \"fr\") or BCP 47 language tag (ex. \"en-US\").\n */\n locale?: string;\n /**\n * Method used to compute string offset and length.\n *\n * Possible values: \"textElements\", \"unicodeCodePoint\", \"utf16CodeUnit\"\n */\n stringIndexType?: StringIndexType;\n /** List of optional analysis features. */\n features?: DocumentAnalysisFeature[];\n /** List of additional fields to extract. Ex. \"NumberOfGuests,StoreNumber\" */\n queryFields?: string[];\n /**\n * Format of the analyze result top-level content.\n *\n * Possible values: \"text\", \"markdown\"\n */\n outputContentFormat?: ContentFormat;\n /** Additional outputs to generate during analysis. */\n output?: AnalyzeOutputOption[];\n}\n\nexport interface AnalyzeDocumentQueryParam {\n queryParameters?: AnalyzeDocumentQueryParamProperties;\n}\n\nexport interface AnalyzeDocumentMediaTypesParam {\n /** Input content type. */\n contentType: \"application/json\";\n}\n\nexport type AnalyzeDocumentParameters = AnalyzeDocumentQueryParam &\n AnalyzeDocumentMediaTypesParam &\n AnalyzeDocumentBodyParam &\n RequestParameters;\nexport type GetAnalyzeBatchResultParameters = RequestParameters;\n\nexport interface AnalyzeBatchDocumentsBodyParam {\n /** Analyze batch request parameters. */\n body?: AnalyzeBatchDocumentsRequest;\n}\n\nexport interface AnalyzeBatchDocumentsQueryParamProperties {\n /** List of 1-based page numbers to analyze. Ex. \"1-3,5,7-9\" */\n pages?: string;\n /**\n * Locale hint for text recognition and document analysis. Value may contain only\n * the language code (ex. \"en\", \"fr\") or BCP 47 language tag (ex. \"en-US\").\n */\n locale?: string;\n /**\n * Method used to compute string offset and length.\n *\n * Possible values: \"textElements\", \"unicodeCodePoint\", \"utf16CodeUnit\"\n */\n stringIndexType?: StringIndexType;\n /** List of optional analysis features. */\n features?: DocumentAnalysisFeature[];\n /** List of additional fields to extract. Ex. \"NumberOfGuests,StoreNumber\" */\n queryFields?: string[];\n /**\n * Format of the analyze result top-level content.\n *\n * Possible values: \"text\", \"markdown\"\n */\n outputContentFormat?: ContentFormat;\n /** Additional outputs to generate during analysis. */\n output?: AnalyzeOutputOption[];\n}\n\nexport interface AnalyzeBatchDocumentsQueryParam {\n queryParameters?: AnalyzeBatchDocumentsQueryParamProperties;\n}\n\nexport interface AnalyzeBatchDocumentsMediaTypesParam {\n /** Input content type */\n contentType: \"application/json\";\n}\n\nexport type AnalyzeBatchDocumentsParameters = AnalyzeBatchDocumentsQueryParam &\n AnalyzeBatchDocumentsMediaTypesParam &\n AnalyzeBatchDocumentsBodyParam &\n RequestParameters;\n\nexport interface GetModelHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetModelHeaderParam {\n headers?: RawHttpHeadersInput & GetModelHeaders;\n}\n\nexport type GetModelParameters = GetModelHeaderParam & RequestParameters;\n\nexport interface BuildModelBodyParam {\n /** Build request parameters. */\n body: BuildDocumentModelRequest;\n}\n\nexport type BuildModelParameters = BuildModelBodyParam & RequestParameters;\n\nexport interface ComposeModelBodyParam {\n /** Compose request parameters. */\n body: ComposeDocumentModelRequest;\n}\n\nexport type ComposeModelParameters = ComposeModelBodyParam & RequestParameters;\n\nexport interface AuthorizeModelCopyBodyParam {\n /** Authorize copy request parameters. */\n body: AuthorizeCopyRequest;\n}\n\nexport type AuthorizeModelCopyParameters = AuthorizeModelCopyBodyParam & RequestParameters;\n\nexport interface CopyModelToBodyParam {\n /** Copy to request parameters. */\n body: CopyAuthorization;\n}\n\nexport type CopyModelToParameters = CopyModelToBodyParam & RequestParameters;\n\nexport interface ListModelsHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface ListModelsHeaderParam {\n headers?: RawHttpHeadersInput & ListModelsHeaders;\n}\n\nexport type ListModelsParameters = ListModelsHeaderParam & RequestParameters;\n\nexport interface DeleteModelHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface DeleteModelHeaderParam {\n headers?: RawHttpHeadersInput & DeleteModelHeaders;\n}\n\nexport type DeleteModelParameters = DeleteModelHeaderParam & RequestParameters;\n\nexport interface BuildClassifierBodyParam {\n /** Build request parameters. */\n body: BuildDocumentClassifierRequest;\n}\n\nexport type BuildClassifierParameters = BuildClassifierBodyParam & RequestParameters;\n\nexport interface ListClassifiersHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface ListClassifiersHeaderParam {\n headers?: RawHttpHeadersInput & ListClassifiersHeaders;\n}\n\nexport type ListClassifiersParameters = ListClassifiersHeaderParam & RequestParameters;\n\nexport interface GetClassifierHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetClassifierHeaderParam {\n headers?: RawHttpHeadersInput & GetClassifierHeaders;\n}\n\nexport type GetClassifierParameters = GetClassifierHeaderParam & RequestParameters;\n\nexport interface DeleteClassifierHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface DeleteClassifierHeaderParam {\n headers?: RawHttpHeadersInput & DeleteClassifierHeaders;\n}\n\nexport type DeleteClassifierParameters = DeleteClassifierHeaderParam & RequestParameters;\n\nexport interface ClassifyDocumentFromStreamBodyParam {\n /**\n * Input content.\n *\n * Value may contain any sequence of octets\n */\n body: string | Uint8Array | ReadableStream<Uint8Array> | NodeJS.ReadableStream;\n}\n\nexport interface ClassifyDocumentFromStreamQueryParamProperties {\n /**\n * Method used to compute string offset and length.\n *\n * Possible values: \"textElements\", \"unicodeCodePoint\", \"utf16CodeUnit\"\n */\n stringIndexType?: StringIndexType;\n /**\n * Document splitting mode.\n *\n * Possible values: \"auto\", \"none\", \"perPage\"\n */\n split?: SplitMode;\n /** List of 1-based page numbers to analyze. Ex. \"1-3,5,7-9\" */\n pages?: string;\n}\n\nexport interface ClassifyDocumentFromStreamQueryParam {\n queryParameters?: ClassifyDocumentFromStreamQueryParamProperties;\n}\n\nexport interface ClassifyDocumentFromStreamMediaTypesParam {\n /** Input content type. */\n contentType:\n | \"application/octet-stream\"\n | \"application/pdf\"\n | \"image/jpeg\"\n | \"image/png\"\n | \"image/tiff\"\n | \"image/bmp\"\n | \"image/heif\"\n | \"text/html\"\n | \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\"\n | \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\"\n | \"application/vnd.openxmlformats-officedocument.presentationml.presentation\";\n}\n\nexport type ClassifyDocumentFromStreamParameters = ClassifyDocumentFromStreamQueryParam &\n ClassifyDocumentFromStreamMediaTypesParam &\n ClassifyDocumentFromStreamBodyParam &\n RequestParameters;\n\nexport interface ClassifyDocumentBodyParam {\n /** Classify request parameters. */\n body: ClassifyDocumentRequest;\n}\n\nexport interface ClassifyDocumentQueryParamProperties {\n /**\n * Method used to compute string offset and length.\n *\n * Possible values: \"textElements\", \"unicodeCodePoint\", \"utf16CodeUnit\"\n */\n stringIndexType?: StringIndexType;\n /**\n * Document splitting mode.\n *\n * Possible values: \"auto\", \"none\", \"perPage\"\n */\n split?: SplitMode;\n /** List of 1-based page numbers to analyze. Ex. \"1-3,5,7-9\" */\n pages?: string;\n}\n\nexport interface ClassifyDocumentQueryParam {\n queryParameters?: ClassifyDocumentQueryParamProperties;\n}\n\nexport interface ClassifyDocumentMediaTypesParam {\n /** Input content type */\n contentType: \"application/json\";\n}\n\nexport type ClassifyDocumentParameters = ClassifyDocumentQueryParam &\n ClassifyDocumentMediaTypesParam &\n ClassifyDocumentBodyParam &\n RequestParameters;\nexport type GetClassifyResultParameters = RequestParameters;\n\nexport interface AuthorizeClassifierCopyBodyParam {\n /** Authorize copy request parameters. */\n body: AuthorizeClassifierCopyRequest;\n}\n\nexport type AuthorizeClassifierCopyParameters = AuthorizeClassifierCopyBodyParam &\n RequestParameters;\n\nexport interface CopyClassifierToBodyParam {\n /** Copy to request parameters. */\n body: ClassifierCopyAuthorization;\n}\n\nexport type CopyClassifierToParameters = CopyClassifierToBodyParam & RequestParameters;\n"]}
1
+ {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../src/parameters.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { RawHttpHeadersInput } from \"@azure/core-rest-pipeline\";\nimport type { RequestParameters } from \"@azure-rest/core-client\";\nimport type {\n StringIndexType,\n DocumentAnalysisFeature,\n ContentFormat,\n AnalyzeOutputOption,\n AnalyzeDocumentRequest,\n AnalyzeBatchDocumentsRequest,\n BuildDocumentModelRequest,\n ComposeDocumentModelRequest,\n AuthorizeCopyRequest,\n CopyAuthorization,\n BuildDocumentClassifierRequest,\n SplitMode,\n ClassifyDocumentRequest,\n AuthorizeClassifierCopyRequest,\n ClassifierCopyAuthorization,\n} from \"./models.js\";\n\nexport interface ListOperationsHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface ListOperationsHeaderParam {\n headers?: RawHttpHeadersInput & ListOperationsHeaders;\n}\n\nexport type ListOperationsParameters = ListOperationsHeaderParam & RequestParameters;\n\nexport interface GetDocumentModelBuildOperationHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetDocumentModelBuildOperationHeaderParam {\n headers?: RawHttpHeadersInput & GetDocumentModelBuildOperationHeaders;\n}\n\nexport type GetDocumentModelBuildOperationParameters = GetDocumentModelBuildOperationHeaderParam &\n RequestParameters;\n\nexport interface GetDocumentModelComposeOperationHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetDocumentModelComposeOperationHeaderParam {\n headers?: RawHttpHeadersInput & GetDocumentModelComposeOperationHeaders;\n}\n\nexport type GetDocumentModelComposeOperationParameters =\n GetDocumentModelComposeOperationHeaderParam & RequestParameters;\n\nexport interface GetDocumentModelCopyToOperationHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetDocumentModelCopyToOperationHeaderParam {\n headers?: RawHttpHeadersInput & GetDocumentModelCopyToOperationHeaders;\n}\n\nexport type GetDocumentModelCopyToOperationParameters = GetDocumentModelCopyToOperationHeaderParam &\n RequestParameters;\n\nexport interface GetDocumentClassifierCopyToOperationHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetDocumentClassifierCopyToOperationHeaderParam {\n headers?: RawHttpHeadersInput & GetDocumentClassifierCopyToOperationHeaders;\n}\n\nexport type GetDocumentClassifierCopyToOperationParameters =\n GetDocumentClassifierCopyToOperationHeaderParam & RequestParameters;\n\nexport interface GetDocumentClassifierBuildOperationHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetDocumentClassifierBuildOperationHeaderParam {\n headers?: RawHttpHeadersInput & GetDocumentClassifierBuildOperationHeaders;\n}\n\nexport type GetDocumentClassifierBuildOperationParameters =\n GetDocumentClassifierBuildOperationHeaderParam & RequestParameters;\n\nexport interface GetOperationHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetOperationHeaderParam {\n headers?: RawHttpHeadersInput & GetOperationHeaders;\n}\n\nexport type GetOperationParameters = GetOperationHeaderParam & RequestParameters;\nexport type GetResourceInfoParameters = RequestParameters;\nexport type GetAnalyzeResultParameters = RequestParameters;\nexport type GetAnalyzeResultPdfParameters = RequestParameters;\nexport type GetAnalyzeResultFigureParameters = RequestParameters;\n\nexport interface AnalyzeDocumentFromStreamBodyParam {\n /**\n * Input content.\n *\n * Value may contain any sequence of octets\n */\n body: string | Uint8Array | ReadableStream<Uint8Array> | NodeJS.ReadableStream;\n}\n\nexport interface AnalyzeDocumentFromStreamQueryParamProperties {\n /** List of 1-based page numbers to analyze. Ex. \"1-3,5,7-9\" */\n pages?: string;\n /**\n * Locale hint for text recognition and document analysis. Value may contain only\n * the language code (ex. \"en\", \"fr\") or BCP 47 language tag (ex. \"en-US\").\n */\n locale?: string;\n /**\n * Method used to compute string offset and length.\n *\n * Possible values: \"textElements\", \"unicodeCodePoint\", \"utf16CodeUnit\"\n */\n stringIndexType?: StringIndexType;\n /** List of optional analysis features. */\n features?: DocumentAnalysisFeature[];\n /** List of additional fields to extract. Ex. \"NumberOfGuests,StoreNumber\" */\n queryFields?: string[];\n /**\n * Format of the analyze result top-level content.\n *\n * Possible values: \"text\", \"markdown\"\n */\n outputContentFormat?: ContentFormat;\n /** Additional outputs to generate during analysis. */\n output?: AnalyzeOutputOption[];\n}\n\nexport interface AnalyzeDocumentFromStreamQueryParam {\n queryParameters?: AnalyzeDocumentFromStreamQueryParamProperties;\n}\n\nexport interface AnalyzeDocumentFromStreamMediaTypesParam {\n /** Input content type. */\n contentType:\n | \"application/octet-stream\"\n | \"application/pdf\"\n | \"image/jpeg\"\n | \"image/png\"\n | \"image/tiff\"\n | \"image/bmp\"\n | \"image/heif\"\n | \"text/html\"\n | \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\"\n | \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\"\n | \"application/vnd.openxmlformats-officedocument.presentationml.presentation\";\n}\n\nexport type AnalyzeDocumentFromStreamParameters = AnalyzeDocumentFromStreamQueryParam &\n AnalyzeDocumentFromStreamMediaTypesParam &\n AnalyzeDocumentFromStreamBodyParam &\n RequestParameters;\n\nexport interface AnalyzeDocumentBodyParam {\n /** Analyze request parameters. */\n body?: AnalyzeDocumentRequest;\n}\n\nexport interface AnalyzeDocumentQueryParamProperties {\n /** List of 1-based page numbers to analyze. Ex. \"1-3,5,7-9\" */\n pages?: string;\n /**\n * Locale hint for text recognition and document analysis. Value may contain only\n * the language code (ex. \"en\", \"fr\") or BCP 47 language tag (ex. \"en-US\").\n */\n locale?: string;\n /**\n * Method used to compute string offset and length.\n *\n * Possible values: \"textElements\", \"unicodeCodePoint\", \"utf16CodeUnit\"\n */\n stringIndexType?: StringIndexType;\n /** List of optional analysis features. */\n features?: DocumentAnalysisFeature[];\n /** List of additional fields to extract. Ex. \"NumberOfGuests,StoreNumber\" */\n queryFields?: string[];\n /**\n * Format of the analyze result top-level content.\n *\n * Possible values: \"text\", \"markdown\"\n */\n outputContentFormat?: ContentFormat;\n /** Additional outputs to generate during analysis. */\n output?: AnalyzeOutputOption[];\n}\n\nexport interface AnalyzeDocumentQueryParam {\n queryParameters?: AnalyzeDocumentQueryParamProperties;\n}\n\nexport interface AnalyzeDocumentMediaTypesParam {\n /** Input content type. */\n contentType: \"application/json\";\n}\n\nexport type AnalyzeDocumentParameters = AnalyzeDocumentQueryParam &\n AnalyzeDocumentMediaTypesParam &\n AnalyzeDocumentBodyParam &\n RequestParameters;\nexport type GetAnalyzeBatchResultParameters = RequestParameters;\n\nexport interface AnalyzeBatchDocumentsBodyParam {\n /** Analyze batch request parameters. */\n body?: AnalyzeBatchDocumentsRequest;\n}\n\nexport interface AnalyzeBatchDocumentsQueryParamProperties {\n /** List of 1-based page numbers to analyze. Ex. \"1-3,5,7-9\" */\n pages?: string;\n /**\n * Locale hint for text recognition and document analysis. Value may contain only\n * the language code (ex. \"en\", \"fr\") or BCP 47 language tag (ex. \"en-US\").\n */\n locale?: string;\n /**\n * Method used to compute string offset and length.\n *\n * Possible values: \"textElements\", \"unicodeCodePoint\", \"utf16CodeUnit\"\n */\n stringIndexType?: StringIndexType;\n /** List of optional analysis features. */\n features?: DocumentAnalysisFeature[];\n /** List of additional fields to extract. Ex. \"NumberOfGuests,StoreNumber\" */\n queryFields?: string[];\n /**\n * Format of the analyze result top-level content.\n *\n * Possible values: \"text\", \"markdown\"\n */\n outputContentFormat?: ContentFormat;\n /** Additional outputs to generate during analysis. */\n output?: AnalyzeOutputOption[];\n}\n\nexport interface AnalyzeBatchDocumentsQueryParam {\n queryParameters?: AnalyzeBatchDocumentsQueryParamProperties;\n}\n\nexport interface AnalyzeBatchDocumentsMediaTypesParam {\n /** Input content type */\n contentType: \"application/json\";\n}\n\nexport type AnalyzeBatchDocumentsParameters = AnalyzeBatchDocumentsQueryParam &\n AnalyzeBatchDocumentsMediaTypesParam &\n AnalyzeBatchDocumentsBodyParam &\n RequestParameters;\n\nexport interface GetModelHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetModelHeaderParam {\n headers?: RawHttpHeadersInput & GetModelHeaders;\n}\n\nexport type GetModelParameters = GetModelHeaderParam & RequestParameters;\n\nexport interface BuildModelBodyParam {\n /** Build request parameters. */\n body: BuildDocumentModelRequest;\n}\n\nexport type BuildModelParameters = BuildModelBodyParam & RequestParameters;\n\nexport interface ComposeModelBodyParam {\n /** Compose request parameters. */\n body: ComposeDocumentModelRequest;\n}\n\nexport type ComposeModelParameters = ComposeModelBodyParam & RequestParameters;\n\nexport interface AuthorizeModelCopyBodyParam {\n /** Authorize copy request parameters. */\n body: AuthorizeCopyRequest;\n}\n\nexport type AuthorizeModelCopyParameters = AuthorizeModelCopyBodyParam & RequestParameters;\n\nexport interface CopyModelToBodyParam {\n /** Copy to request parameters. */\n body: CopyAuthorization;\n}\n\nexport type CopyModelToParameters = CopyModelToBodyParam & RequestParameters;\n\nexport interface ListModelsHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface ListModelsHeaderParam {\n headers?: RawHttpHeadersInput & ListModelsHeaders;\n}\n\nexport type ListModelsParameters = ListModelsHeaderParam & RequestParameters;\n\nexport interface DeleteModelHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface DeleteModelHeaderParam {\n headers?: RawHttpHeadersInput & DeleteModelHeaders;\n}\n\nexport type DeleteModelParameters = DeleteModelHeaderParam & RequestParameters;\n\nexport interface BuildClassifierBodyParam {\n /** Build request parameters. */\n body: BuildDocumentClassifierRequest;\n}\n\nexport type BuildClassifierParameters = BuildClassifierBodyParam & RequestParameters;\n\nexport interface ListClassifiersHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface ListClassifiersHeaderParam {\n headers?: RawHttpHeadersInput & ListClassifiersHeaders;\n}\n\nexport type ListClassifiersParameters = ListClassifiersHeaderParam & RequestParameters;\n\nexport interface GetClassifierHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetClassifierHeaderParam {\n headers?: RawHttpHeadersInput & GetClassifierHeaders;\n}\n\nexport type GetClassifierParameters = GetClassifierHeaderParam & RequestParameters;\n\nexport interface DeleteClassifierHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface DeleteClassifierHeaderParam {\n headers?: RawHttpHeadersInput & DeleteClassifierHeaders;\n}\n\nexport type DeleteClassifierParameters = DeleteClassifierHeaderParam & RequestParameters;\n\nexport interface ClassifyDocumentFromStreamBodyParam {\n /**\n * Input content.\n *\n * Value may contain any sequence of octets\n */\n body: string | Uint8Array | ReadableStream<Uint8Array> | NodeJS.ReadableStream;\n}\n\nexport interface ClassifyDocumentFromStreamQueryParamProperties {\n /**\n * Method used to compute string offset and length.\n *\n * Possible values: \"textElements\", \"unicodeCodePoint\", \"utf16CodeUnit\"\n */\n stringIndexType?: StringIndexType;\n /**\n * Document splitting mode.\n *\n * Possible values: \"auto\", \"none\", \"perPage\"\n */\n split?: SplitMode;\n /** List of 1-based page numbers to analyze. Ex. \"1-3,5,7-9\" */\n pages?: string;\n}\n\nexport interface ClassifyDocumentFromStreamQueryParam {\n queryParameters?: ClassifyDocumentFromStreamQueryParamProperties;\n}\n\nexport interface ClassifyDocumentFromStreamMediaTypesParam {\n /** Input content type. */\n contentType:\n | \"application/octet-stream\"\n | \"application/pdf\"\n | \"image/jpeg\"\n | \"image/png\"\n | \"image/tiff\"\n | \"image/bmp\"\n | \"image/heif\"\n | \"text/html\"\n | \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\"\n | \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\"\n | \"application/vnd.openxmlformats-officedocument.presentationml.presentation\";\n}\n\nexport type ClassifyDocumentFromStreamParameters = ClassifyDocumentFromStreamQueryParam &\n ClassifyDocumentFromStreamMediaTypesParam &\n ClassifyDocumentFromStreamBodyParam &\n RequestParameters;\n\nexport interface ClassifyDocumentBodyParam {\n /** Classify request parameters. */\n body: ClassifyDocumentRequest;\n}\n\nexport interface ClassifyDocumentQueryParamProperties {\n /**\n * Method used to compute string offset and length.\n *\n * Possible values: \"textElements\", \"unicodeCodePoint\", \"utf16CodeUnit\"\n */\n stringIndexType?: StringIndexType;\n /**\n * Document splitting mode.\n *\n * Possible values: \"auto\", \"none\", \"perPage\"\n */\n split?: SplitMode;\n /** List of 1-based page numbers to analyze. Ex. \"1-3,5,7-9\" */\n pages?: string;\n}\n\nexport interface ClassifyDocumentQueryParam {\n queryParameters?: ClassifyDocumentQueryParamProperties;\n}\n\nexport interface ClassifyDocumentMediaTypesParam {\n /** Input content type */\n contentType: \"application/json\";\n}\n\nexport type ClassifyDocumentParameters = ClassifyDocumentQueryParam &\n ClassifyDocumentMediaTypesParam &\n ClassifyDocumentBodyParam &\n RequestParameters;\nexport type GetClassifyResultParameters = RequestParameters;\n\nexport interface AuthorizeClassifierCopyBodyParam {\n /** Authorize copy request parameters. */\n body: AuthorizeClassifierCopyRequest;\n}\n\nexport type AuthorizeClassifierCopyParameters = AuthorizeClassifierCopyBodyParam &\n RequestParameters;\n\nexport interface CopyClassifierToBodyParam {\n /** Copy to request parameters. */\n body: ClassifierCopyAuthorization;\n}\n\nexport type CopyClassifierToParameters = CopyClassifierToBodyParam & RequestParameters;\n"]}
@@ -1,7 +1,7 @@
1
- import { Client } from "@azure-rest/core-client";
2
- import { AbortSignalLike } from "@azure/abort-controller";
3
- import { CancelOnProgress, CreateHttpPollerOptions, OperationState } from "@azure/core-lro";
4
- import { AnalyzeDocumentFromStream202Response, AnalyzeDocumentFromStreamDefaultResponse, AnalyzeDocumentFromStreamLogicalResponse, AnalyzeBatchDocuments202Response, AnalyzeBatchDocumentsDefaultResponse, AnalyzeBatchDocumentsLogicalResponse, BuildModel202Response, BuildModelDefaultResponse, BuildModelLogicalResponse, ComposeModel202Response, ComposeModelDefaultResponse, ComposeModelLogicalResponse, CopyModelTo202Response, CopyModelToDefaultResponse, CopyModelToLogicalResponse, BuildClassifier202Response, BuildClassifierDefaultResponse, BuildClassifierLogicalResponse, ClassifyDocumentFromStream202Response, ClassifyDocumentFromStreamDefaultResponse, ClassifyDocumentFromStreamLogicalResponse, CopyClassifierTo202Response, CopyClassifierToDefaultResponse, CopyClassifierToLogicalResponse } from "./responses.js";
1
+ import type { Client } from "@azure-rest/core-client";
2
+ import type { AbortSignalLike } from "@azure/abort-controller";
3
+ import type { CancelOnProgress, CreateHttpPollerOptions, OperationState } from "@azure/core-lro";
4
+ import type { AnalyzeDocumentFromStream202Response, AnalyzeDocumentFromStreamDefaultResponse, AnalyzeDocumentFromStreamLogicalResponse, AnalyzeBatchDocuments202Response, AnalyzeBatchDocumentsDefaultResponse, AnalyzeBatchDocumentsLogicalResponse, BuildModel202Response, BuildModelDefaultResponse, BuildModelLogicalResponse, ComposeModel202Response, ComposeModelDefaultResponse, ComposeModelLogicalResponse, CopyModelTo202Response, CopyModelToDefaultResponse, CopyModelToLogicalResponse, BuildClassifier202Response, BuildClassifierDefaultResponse, BuildClassifierLogicalResponse, ClassifyDocumentFromStream202Response, ClassifyDocumentFromStreamDefaultResponse, ClassifyDocumentFromStreamLogicalResponse, CopyClassifierTo202Response, CopyClassifierToDefaultResponse, CopyClassifierToLogicalResponse } from "./responses.js";
5
5
  /**
6
6
  * A simple poller that can be used to poll a long running operation.
7
7
  */
@@ -1 +1 @@
1
- {"version":3,"file":"pollingHelper.d.ts","sourceRoot":"","sources":["../../src/pollingHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAgB,MAAM,yBAAyB,CAAC;AAC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AC,OAAO,CAAC,CAAC,GAClE,OAAO,CAAC,gBAAgB,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;AAC/D,wBAAsB,oBAAoB,CACxC,OAAO,SACH,yCAAyC,GACzC,yCAAyC,EAE7C,MAAM,EAAE,MAAM,EACd,eAAe,EACX,qCAAqC,GACrC,yCAAyC,EAC7C,OAAO,CAAC,EAAE,uBAAuB,CAAC,OAAO,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC,GAClE,OAAO,CAAC,gBAAgB,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
- import { createHttpPoller, } from "@azure/core-lro";
3
+ import { createHttpPoller } from "@azure/core-lro";
4
4
  export async function getLongRunningPoller(client, initialResponse, options = {}) {
5
5
  var _a;
6
6
  const abortController = new AbortController();
@@ -1 +1 @@
1
- {"version":3,"file":"pollingHelper.js","sourceRoot":"","sources":["../../src/pollingHelper.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EAML,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AAwKzB,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,MAAc,EACd,eAAwB,EACxB,UAAqE,EAAE;;IAEvE,MAAM,eAAe,GAAG,IAAI,eAAe,EAAE,CAAC;IAC9C,MAAM,MAAM,GAA8B;QACxC,kBAAkB,EAAE,KAAK,IAAI,EAAE;YAC7B,sGAAsG;YACtG,2FAA2F;YAC3F,6BAA6B;YAC7B,OAAO,cAAc,CAAC,eAAe,CAAC,CAAC;QACzC,CAAC;QACD,eAAe,EAAE,KAAK,EAAE,IAAY,EAAE,WAA+C,EAAE,EAAE;YACvF,sEAAsE;YACtE,4EAA4E;YAC5E,0JAA0J;YAC1J,+GAA+G;YAC/G,SAAS,aAAa;gBACpB,eAA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AAC,eAAe,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;KACtF,CAAC;IACF,OAAO,YAAY,CAAC;AACtB,CAAC;AAED;;GAEG;AACH,SAAS,gBAAgB,CAAC,uBAA+B;IACvD,uIAAuI;IACvI,MAAM,KAAK,GAAG,qDAAqD,CAAC;IACpE,MAAM,KAAK,GAAG,uBAAuB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACnD,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CACb,oEAAoE,uBAAuB,EAAE,CAC9F,CAAC;IACJ,CAAC;IACD,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AAED;;;;GAIG;AACH,SAAS,cAAc,CACrB,QAAiB;IAEjB,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAClC,MAAM,IAAI,SAAS,CAAC,uDAAuD,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;IAChG,CAAC;IAED,OAAO;QACL,YAAY,EAAE,QAAQ;QACtB,WAAW,kCACN,QAAQ,KACX,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAC5C,IAAI,EAAE,QAAQ,CAAC,IAAI,GACpB;KACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { Client, HttpResponse } from \"@azure-rest/core-client\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport {\n CancelOnProgress,\n CreateHttpPollerOptions,\n RunningOperation,\n OperationResponse,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport {\n AnalyzeDocumentFromStream202Response,\n AnalyzeDocumentFromStreamDefaultResponse,\n AnalyzeDocumentFromStreamLogicalResponse,\n AnalyzeBatchDocuments202Response,\n AnalyzeBatchDocumentsDefaultResponse,\n AnalyzeBatchDocumentsLogicalResponse,\n BuildModel202Response,\n BuildModelDefaultResponse,\n BuildModelLogicalResponse,\n ComposeModel202Response,\n ComposeModelDefaultResponse,\n ComposeModelLogicalResponse,\n CopyModelTo202Response,\n CopyModelToDefaultResponse,\n CopyModelToLogicalResponse,\n BuildClassifier202Response,\n BuildClassifierDefaultResponse,\n BuildClassifierLogicalResponse,\n ClassifyDocumentFromStream202Response,\n ClassifyDocumentFromStreamDefaultResponse,\n ClassifyDocumentFromStreamLogicalResponse,\n CopyClassifierTo202Response,\n CopyClassifierToDefaultResponse,\n CopyClassifierToLogicalResponse,\n} from \"./responses.js\";\nimport { AnalyzeBatchResultOperationOutput } from \"./outputModels.js\";\n\n/**\n * A simple poller that can be used to poll a long running operation.\n */\nexport interface SimplePollerLike<TState extends OperationState<TResult>, TResult> {\n /**\n * Returns true if the poller has finished polling.\n */\n isDone(): boolean;\n /**\n * Returns the state of the operation.\n */\n getOperationState(): TState;\n /**\n * Returns the id of the operation.\n */\n getOperationId(): string;\n /**\n * Returns the result value of the operation,\n * regardless of the state of the poller.\n * It can return undefined or an incomplete form of the final TResult value\n * depending on the implementation.\n */\n getResult(): TResult | undefined;\n /**\n * Returns a promise that will resolve once a single polling request finishes.\n * It does this by calling the update method of the Poller's operation.\n */\n poll(options?: { abortSignal?: AbortSignalLike }): Promise<TState>;\n /**\n * Returns a promise that will resolve once the underlying operation is completed.\n */\n pollUntilDone(pollOptions?: { abortSignal?: AbortSignalLike }): Promise<TResult>;\n /**\n * Invokes the provided callback after each polling is completed,\n * sending the current state of the poller's operation.\n *\n * It returns a method that can be used to stop receiving updates on the given callback function.\n */\n onProgress(callback: (state: TState) => void): CancelOnProgress;\n\n /**\n * Returns a promise that could be used for serialized version of the poller's operation\n * by invoking the operation's serialize method.\n */\n serialize(): Promise<string>;\n\n /**\n * Wait the poller to be submitted.\n */\n submitted(): Promise<void>;\n\n /**\n * Returns a string representation of the poller's operation. Similar to serialize but returns a string.\n * @deprecated Use serialize() instead.\n */\n toString(): string;\n\n /**\n * Stops the poller from continuing to poll. Please note this will only stop the client-side polling\n * @deprecated Use abortSignal to stop polling instead.\n */\n stopPolling(): void;\n\n /**\n * Returns true if the poller is stopped.\n * @deprecated Use abortSignal status to track this instead.\n */\n isStopped(): boolean;\n}\n\n/**\n * Helper function that builds a Poller object to help polling a long running operation.\n * @param client - Client to use for sending the request to get additional pages.\n * @param initialResponse - The initial response.\n * @param options - Options to set a resume state or custom polling interval.\n * @returns - A poller object to poll for operation state updates and eventually get the final response.\n */\nexport async function getLongRunningPoller<\n TResult extends AnalyzeBatchDocumentsLogicalResponse | AnalyzeBatchDocumentsDefaultResponse,\n>(\n client: Client,\n initialResponse: AnalyzeBatchDocuments202Response | AnalyzeBatchDocumentsDefaultResponse,\n options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>,\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;\nexport async function getLongRunningPoller<\n TResult extends BuildModelLogicalResponse | BuildModelDefaultResponse,\n>(\n client: Client,\n initialResponse: BuildModel202Response | BuildModelDefaultResponse,\n options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>,\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;\nexport async function getLongRunningPoller<\n TResult extends ComposeModelLogicalResponse | ComposeModelDefaultResponse,\n>(\n client: Client,\n initialResponse: ComposeModel202Response | ComposeModelDefaultResponse,\n options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>,\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;\nexport async function getLongRunningPoller<\n TResult extends CopyModelToLogicalResponse | CopyModelToDefaultResponse,\n>(\n client: Client,\n initialResponse: CopyModelTo202Response | CopyModelToDefaultResponse,\n options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>,\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;\nexport async function getLongRunningPoller<\n TResult extends BuildClassifierLogicalResponse | BuildClassifierDefaultResponse,\n>(\n client: Client,\n initialResponse: BuildClassifier202Response | BuildClassifierDefaultResponse,\n options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>,\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;\nexport async function getLongRunningPoller<\n TResult extends CopyClassifierToLogicalResponse | CopyClassifierToDefaultResponse,\n>(\n client: Client,\n initialResponse: CopyClassifierTo202Response | CopyClassifierToDefaultResponse,\n options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>,\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;\nexport async function getLongRunningPoller<\n TResult extends\n | AnalyzeDocumentFromStreamLogicalResponse\n | AnalyzeDocumentFromStreamDefaultResponse,\n>(\n client: Client,\n initialResponse: AnalyzeDocumentFromStream202Response | AnalyzeDocumentFromStreamDefaultResponse,\n options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>,\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;\nexport async function getLongRunningPoller<\n TResult extends\n | ClassifyDocumentFromStreamLogicalResponse\n | ClassifyDocumentFromStreamDefaultResponse,\n>(\n client: Client,\n initialResponse:\n | ClassifyDocumentFromStream202Response\n | ClassifyDocumentFromStreamDefaultResponse,\n options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>,\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;\nexport async function getLongRunningPoller<TResult extends HttpResponse>(\n client: Client,\n initialResponse: TResult,\n options: CreateHttpPollerOptions<TResult, OperationState<TResult>> = {},\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>> {\n const abortController = new AbortController();\n const poller: RunningOperation<TResult> = {\n sendInitialRequest: async () => {\n // In the case of Rest Clients we are building the LRO poller object from a response that's the reason\n // we are not triggering the initial request here, just extracting the information from the\n // response we were provided.\n return getLroResponse(initialResponse);\n },\n sendPollRequest: async (path: string, pollOptions?: { abortSignal?: AbortSignalLike }) => {\n // This is the callback that is going to be called to poll the service\n // to get the latest status. We use the client provided and the polling path\n // which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location\n // depending on the lro pattern that the service implements. If non is provided we default to the initial path.\n function abortListener(): void {\n abortController.abort();\n }\n const inputAbortSignal = pollOptions?.abortSignal;\n const abortSignal = abortController.signal;\n if (inputAbortSignal?.aborted) {\n abortController.abort();\n } else if (!abortSignal.aborted) {\n inputAbortSignal?.addEventListener(\"abort\", abortListener, {\n once: true,\n });\n }\n let response;\n try {\n response = await client\n .pathUnchecked(path ?? initialResponse.request.url)\n .get({ abortSignal });\n } finally {\n inputAbortSignal?.removeEventListener(\"abort\", abortListener);\n }\n const lroResponse = getLroResponse(response as TResult);\n lroResponse.rawResponse.headers[\"x-ms-original-url\"] = initialResponse.request.url;\n return lroResponse;\n },\n };\n\n options.resolveOnUnsuccessful = options.resolveOnUnsuccessful ?? true;\n\n const httpPoller = createHttpPoller(poller, {\n ...options,\n updateState: (state, response) => {\n const flatResponse = <HttpResponse>response.flatResponse;\n if (!(\"body\" in flatResponse)) return;\n const flatResponseBody = <AnalyzeBatchResultOperationOutput>flatResponse.body;\n if (!(\"status\" in flatResponseBody && flatResponseBody.status === \"completed\")) return;\n state.status = \"succeeded\";\n },\n });\n const simplePoller: SimplePollerLike<OperationState<TResult>, TResult> = {\n isDone() {\n return httpPoller.isDone;\n },\n isStopped() {\n return abortController.signal.aborted;\n },\n getOperationState() {\n if (!httpPoller.operationState) {\n throw new Error(\n \"Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().\",\n );\n }\n return httpPoller.operationState;\n },\n getResult() {\n return httpPoller.result;\n },\n toString() {\n if (!httpPoller.operationState) {\n throw new Error(\n \"Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().\",\n );\n }\n return JSON.stringify({\n state: httpPoller.operationState,\n });\n },\n stopPolling() {\n abortController.abort();\n },\n onProgress: httpPoller.onProgress,\n poll: httpPoller.poll,\n pollUntilDone: httpPoller.pollUntilDone,\n serialize: httpPoller.serialize,\n submitted: httpPoller.submitted,\n getOperationId: () => parseOperationId(initialResponse.headers[\"operation-location\"]),\n };\n return simplePoller;\n}\n\n/**\n * Returns the operation-id from the operation-location header\n */\nfunction parseOperationId(operationLocationHeader: string): string {\n // regex to extract the operation id from the operation-location header with the regex \"[^:]+://[^/]+/documentintelligence/.+/([^?/]+)\"\n const regex = /[^:]+:\\/\\/[^/]+\\/documentintelligence\\/.+\\/([^?/]+)/;\n const match = operationLocationHeader.match(regex);\n if (!match) {\n throw new Error(\n `Failed to parse operation id from the operation-location header: ${operationLocationHeader}`,\n );\n }\n return match[1];\n}\n\n/**\n * Converts a Rest Client response to a response that the LRO implementation understands\n * @param response - a rest client http response\n * @returns - An LRO response that the LRO implementation understands\n */\nfunction getLroResponse<TResult extends HttpResponse>(\n response: TResult,\n): OperationResponse<TResult> {\n if (Number.isNaN(response.status)) {\n throw new TypeError(`Status code of the response is not a number. Value: ${response.status}`);\n }\n\n return {\n flatResponse: response,\n rawResponse: {\n ...response,\n statusCode: Number.parseInt(response.status),\n body: response.body,\n },\n };\n}\n"]}
1
+ {"version":3,"file":"pollingHelper.js","sourceRoot":"","sources":["../../src/pollingHelper.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAWlC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAwKnD,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,MAAc,EACd,eAAwB,EACxB,UAAqE,EAAE;;IAEvE,MAAM,eAAe,GAAG,IAAI,eAAe,EAAE,CAAC;IAC9C,MAAM,MAAM,GAA8B;QACxC,kBAAkB,EAAE,KAAK,IAAI,EAAE;YAC7B,sGAAsG;YACtG,2FAA2F;YAC3F,6BAA6B;YAC7B,OAAO,cAAc,CAAC,eAAe,CAAC,CAAC;QACzC,CAAC;QACD,eAAe,EAAE,KAAK,EAAE,IAAY,EAAE,WAA+C,EAAE,EAAE;YACvF,sEAAsE;YACtE,4EAA4E;YAC5E,0JAA0J;YAC1J,+GAA+G;YAC/G,SAAS,aAAa;gBACpB,eAAe,CAAC,KAAK,EAAE,CAAC;YAC1B,CAAC;YACD,MAAM,gBAAgB,GAAG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F,OAAO,YAAY,CAAC;AACtB,CAAC;AAED;;GAEG;AACH,SAAS,gBAAgB,CAAC,uBAA+B;IACvD,uIAAuI;IACvI,MAAM,KAAK,GAAG,qDAAqD,CAAC;IACpE,MAAM,KAAK,GAAG,uBAAuB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACnD,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CACb,oEAAoE,uBAAuB,EAAE,CAC9F,CAAC;IACJ,CAAC;IACD,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AAED;;;;GAIG;AACH,SAAS,cAAc,CACrB,QAAiB;IAEjB,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAClC,MAAM,IAAI,SAAS,CAAC,uDAAuD,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;IAChG,CAAC;IAED,OAAO;QACL,YAAY,EAAE,QAAQ;QACtB,WAAW,kCACN,QAAQ,KACX,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAC5C,IAAI,EAAE,QAAQ,CAAC,IAAI,GACpB;KACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { Client, HttpResponse } from \"@azure-rest/core-client\";\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\nimport type {\n CancelOnProgress,\n CreateHttpPollerOptions,\n RunningOperation,\n OperationResponse,\n OperationState,\n} from \"@azure/core-lro\";\nimport { createHttpPoller } from \"@azure/core-lro\";\nimport type {\n AnalyzeDocumentFromStream202Response,\n AnalyzeDocumentFromStreamDefaultResponse,\n AnalyzeDocumentFromStreamLogicalResponse,\n AnalyzeBatchDocuments202Response,\n AnalyzeBatchDocumentsDefaultResponse,\n AnalyzeBatchDocumentsLogicalResponse,\n BuildModel202Response,\n BuildModelDefaultResponse,\n BuildModelLogicalResponse,\n ComposeModel202Response,\n ComposeModelDefaultResponse,\n ComposeModelLogicalResponse,\n CopyModelTo202Response,\n CopyModelToDefaultResponse,\n CopyModelToLogicalResponse,\n BuildClassifier202Response,\n BuildClassifierDefaultResponse,\n BuildClassifierLogicalResponse,\n ClassifyDocumentFromStream202Response,\n ClassifyDocumentFromStreamDefaultResponse,\n ClassifyDocumentFromStreamLogicalResponse,\n CopyClassifierTo202Response,\n CopyClassifierToDefaultResponse,\n CopyClassifierToLogicalResponse,\n} from \"./responses.js\";\nimport type { AnalyzeBatchResultOperationOutput } from \"./outputModels.js\";\n\n/**\n * A simple poller that can be used to poll a long running operation.\n */\nexport interface SimplePollerLike<TState extends OperationState<TResult>, TResult> {\n /**\n * Returns true if the poller has finished polling.\n */\n isDone(): boolean;\n /**\n * Returns the state of the operation.\n */\n getOperationState(): TState;\n /**\n * Returns the id of the operation.\n */\n getOperationId(): string;\n /**\n * Returns the result value of the operation,\n * regardless of the state of the poller.\n * It can return undefined or an incomplete form of the final TResult value\n * depending on the implementation.\n */\n getResult(): TResult | undefined;\n /**\n * Returns a promise that will resolve once a single polling request finishes.\n * It does this by calling the update method of the Poller's operation.\n */\n poll(options?: { abortSignal?: AbortSignalLike }): Promise<TState>;\n /**\n * Returns a promise that will resolve once the underlying operation is completed.\n */\n pollUntilDone(pollOptions?: { abortSignal?: AbortSignalLike }): Promise<TResult>;\n /**\n * Invokes the provided callback after each polling is completed,\n * sending the current state of the poller's operation.\n *\n * It returns a method that can be used to stop receiving updates on the given callback function.\n */\n onProgress(callback: (state: TState) => void): CancelOnProgress;\n\n /**\n * Returns a promise that could be used for serialized version of the poller's operation\n * by invoking the operation's serialize method.\n */\n serialize(): Promise<string>;\n\n /**\n * Wait the poller to be submitted.\n */\n submitted(): Promise<void>;\n\n /**\n * Returns a string representation of the poller's operation. Similar to serialize but returns a string.\n * @deprecated Use serialize() instead.\n */\n toString(): string;\n\n /**\n * Stops the poller from continuing to poll. Please note this will only stop the client-side polling\n * @deprecated Use abortSignal to stop polling instead.\n */\n stopPolling(): void;\n\n /**\n * Returns true if the poller is stopped.\n * @deprecated Use abortSignal status to track this instead.\n */\n isStopped(): boolean;\n}\n\n/**\n * Helper function that builds a Poller object to help polling a long running operation.\n * @param client - Client to use for sending the request to get additional pages.\n * @param initialResponse - The initial response.\n * @param options - Options to set a resume state or custom polling interval.\n * @returns - A poller object to poll for operation state updates and eventually get the final response.\n */\nexport async function getLongRunningPoller<\n TResult extends AnalyzeBatchDocumentsLogicalResponse | AnalyzeBatchDocumentsDefaultResponse,\n>(\n client: Client,\n initialResponse: AnalyzeBatchDocuments202Response | AnalyzeBatchDocumentsDefaultResponse,\n options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>,\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;\nexport async function getLongRunningPoller<\n TResult extends BuildModelLogicalResponse | BuildModelDefaultResponse,\n>(\n client: Client,\n initialResponse: BuildModel202Response | BuildModelDefaultResponse,\n options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>,\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;\nexport async function getLongRunningPoller<\n TResult extends ComposeModelLogicalResponse | ComposeModelDefaultResponse,\n>(\n client: Client,\n initialResponse: ComposeModel202Response | ComposeModelDefaultResponse,\n options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>,\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;\nexport async function getLongRunningPoller<\n TResult extends CopyModelToLogicalResponse | CopyModelToDefaultResponse,\n>(\n client: Client,\n initialResponse: CopyModelTo202Response | CopyModelToDefaultResponse,\n options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>,\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;\nexport async function getLongRunningPoller<\n TResult extends BuildClassifierLogicalResponse | BuildClassifierDefaultResponse,\n>(\n client: Client,\n initialResponse: BuildClassifier202Response | BuildClassifierDefaultResponse,\n options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>,\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;\nexport async function getLongRunningPoller<\n TResult extends CopyClassifierToLogicalResponse | CopyClassifierToDefaultResponse,\n>(\n client: Client,\n initialResponse: CopyClassifierTo202Response | CopyClassifierToDefaultResponse,\n options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>,\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;\nexport async function getLongRunningPoller<\n TResult extends\n | AnalyzeDocumentFromStreamLogicalResponse\n | AnalyzeDocumentFromStreamDefaultResponse,\n>(\n client: Client,\n initialResponse: AnalyzeDocumentFromStream202Response | AnalyzeDocumentFromStreamDefaultResponse,\n options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>,\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;\nexport async function getLongRunningPoller<\n TResult extends\n | ClassifyDocumentFromStreamLogicalResponse\n | ClassifyDocumentFromStreamDefaultResponse,\n>(\n client: Client,\n initialResponse:\n | ClassifyDocumentFromStream202Response\n | ClassifyDocumentFromStreamDefaultResponse,\n options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>,\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;\nexport async function getLongRunningPoller<TResult extends HttpResponse>(\n client: Client,\n initialResponse: TResult,\n options: CreateHttpPollerOptions<TResult, OperationState<TResult>> = {},\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>> {\n const abortController = new AbortController();\n const poller: RunningOperation<TResult> = {\n sendInitialRequest: async () => {\n // In the case of Rest Clients we are building the LRO poller object from a response that's the reason\n // we are not triggering the initial request here, just extracting the information from the\n // response we were provided.\n return getLroResponse(initialResponse);\n },\n sendPollRequest: async (path: string, pollOptions?: { abortSignal?: AbortSignalLike }) => {\n // This is the callback that is going to be called to poll the service\n // to get the latest status. We use the client provided and the polling path\n // which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location\n // depending on the lro pattern that the service implements. If non is provided we default to the initial path.\n function abortListener(): void {\n abortController.abort();\n }\n const inputAbortSignal = pollOptions?.abortSignal;\n const abortSignal = abortController.signal;\n if (inputAbortSignal?.aborted) {\n abortController.abort();\n } else if (!abortSignal.aborted) {\n inputAbortSignal?.addEventListener(\"abort\", abortListener, {\n once: true,\n });\n }\n let response;\n try {\n response = await client\n .pathUnchecked(path ?? initialResponse.request.url)\n .get({ abortSignal });\n } finally {\n inputAbortSignal?.removeEventListener(\"abort\", abortListener);\n }\n const lroResponse = getLroResponse(response as TResult);\n lroResponse.rawResponse.headers[\"x-ms-original-url\"] = initialResponse.request.url;\n return lroResponse;\n },\n };\n\n options.resolveOnUnsuccessful = options.resolveOnUnsuccessful ?? true;\n\n const httpPoller = createHttpPoller(poller, {\n ...options,\n updateState: (state, response) => {\n const flatResponse = <HttpResponse>response.flatResponse;\n if (!(\"body\" in flatResponse)) return;\n const flatResponseBody = <AnalyzeBatchResultOperationOutput>flatResponse.body;\n if (!(\"status\" in flatResponseBody && flatResponseBody.status === \"completed\")) return;\n state.status = \"succeeded\";\n },\n });\n const simplePoller: SimplePollerLike<OperationState<TResult>, TResult> = {\n isDone() {\n return httpPoller.isDone;\n },\n isStopped() {\n return abortController.signal.aborted;\n },\n getOperationState() {\n if (!httpPoller.operationState) {\n throw new Error(\n \"Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().\",\n );\n }\n return httpPoller.operationState;\n },\n getResult() {\n return httpPoller.result;\n },\n toString() {\n if (!httpPoller.operationState) {\n throw new Error(\n \"Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().\",\n );\n }\n return JSON.stringify({\n state: httpPoller.operationState,\n });\n },\n stopPolling() {\n abortController.abort();\n },\n onProgress: httpPoller.onProgress,\n poll: httpPoller.poll,\n pollUntilDone: httpPoller.pollUntilDone,\n serialize: httpPoller.serialize,\n submitted: httpPoller.submitted,\n getOperationId: () => parseOperationId(initialResponse.headers[\"operation-location\"]),\n };\n return simplePoller;\n}\n\n/**\n * Returns the operation-id from the operation-location header\n */\nfunction parseOperationId(operationLocationHeader: string): string {\n // regex to extract the operation id from the operation-location header with the regex \"[^:]+://[^/]+/documentintelligence/.+/([^?/]+)\"\n const regex = /[^:]+:\\/\\/[^/]+\\/documentintelligence\\/.+\\/([^?/]+)/;\n const match = operationLocationHeader.match(regex);\n if (!match) {\n throw new Error(\n `Failed to parse operation id from the operation-location header: ${operationLocationHeader}`,\n );\n }\n return match[1];\n}\n\n/**\n * Converts a Rest Client response to a response that the LRO implementation understands\n * @param response - a rest client http response\n * @returns - An LRO response that the LRO implementation understands\n */\nfunction getLroResponse<TResult extends HttpResponse>(\n response: TResult,\n): OperationResponse<TResult> {\n if (Number.isNaN(response.status)) {\n throw new TypeError(`Status code of the response is not a number. Value: ${response.status}`);\n }\n\n return {\n flatResponse: response,\n rawResponse: {\n ...response,\n statusCode: Number.parseInt(response.status),\n body: response.body,\n },\n };\n}\n"]}
@@ -1,6 +1,6 @@
1
- import { RawHttpHeaders } from "@azure/core-rest-pipeline";
2
- import { HttpResponse } from "@azure-rest/core-client";
3
- import { PagedOperationDetailsOutput, ErrorResponseOutput, DocumentModelBuildOperationDetailsOutput, DocumentModelComposeOperationDetailsOutput, DocumentModelCopyToOperationDetailsOutput, DocumentClassifierCopyToOperationDetailsOutput, DocumentClassifierBuildOperationDetailsOutput, OperationDetailsOutput, ResourceDetailsOutput, AnalyzeResultOperationOutput, AnalyzeBatchResultOperationOutput, DocumentModelDetailsOutput, CopyAuthorizationOutput, PagedDocumentModelDetailsOutput, PagedDocumentClassifierDetailsOutput, DocumentClassifierDetailsOutput, ClassifierCopyAuthorizationOutput } from "./outputModels.js";
1
+ import type { RawHttpHeaders } from "@azure/core-rest-pipeline";
2
+ import type { HttpResponse } from "@azure-rest/core-client";
3
+ import type { PagedOperationDetailsOutput, ErrorResponseOutput, DocumentModelBuildOperationDetailsOutput, DocumentModelComposeOperationDetailsOutput, DocumentModelCopyToOperationDetailsOutput, DocumentClassifierCopyToOperationDetailsOutput, DocumentClassifierBuildOperationDetailsOutput, OperationDetailsOutput, ResourceDetailsOutput, AnalyzeResultOperationOutput, AnalyzeBatchResultOperationOutput, DocumentModelDetailsOutput, CopyAuthorizationOutput, PagedDocumentModelDetailsOutput, PagedDocumentClassifierDetailsOutput, DocumentClassifierDetailsOutput, ClassifierCopyAuthorizationOutput } from "./outputModels.js";
4
4
  export interface ListOperations200Headers {
5
5
  /** An opaque, globally-unique, client-generated string identifier for the request. */
6
6
  "x-ms-client-request-id"?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../src/responses.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EACL,2BAA2B,EAC3B,mBAAmB,EACnB,wCAAwC,EACxC,0CAA0C,EAC1C,yCAAyC,EACzC,8CAA8C,EAC9C,6CAA6C,EAC7C,sBAAsB,EACtB,qBAAqB,EACrB,4BAA4B,EAC5B,iCAAiC,EACjC,0BAA0B,EAC1B,uBAAuB,EACvB,+BAA+B,EAC/B,oCAAoC,EACpC,+BAA+B,EAC/B,iCAAiC,EAClC,MAAM,mBAAmB,CAAC;AAE3B,MAAM,WAAW,wBAAwB;IACvC,sFAAsF;IACtF,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC;AAED,iCAAiC;AACjC,MAAM,WAAW,yBAA0B,SAAQ,YAAY;IAC7D,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,2BAA2B,CAAC;IAClC,OAAO,EAAE,cAAc,GAAG,wBAAwB,CAAC;CACpD;AAED,MAAM,WAAW,6BAA8B,SAAQ,YAAY;IACjE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,MAAM,WAAW,wCAAwC;IACvD,sFAAsF;IACtF,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC;AAED,iCAAiC;AACjC,MAAM,WAAW,yCAA0C,SAAQ,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