UNPKG

@iiif/3d-manifesto-dev

Version:

IIIF Presentation API utility library for client and server with 3D extension

34 lines 152 kB
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Utils | manifesto</title><meta name="description" content="Documentation for manifesto"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">manifesto</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">Utils</a></li></ul><h1>Class Utils</h1></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/IIIF-Commons/manifesto-3d/blob/e1a15f018c20be0d71fde610bcfd928a6974e482/src/Utils.ts#L24">src/Utils.ts:24</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h5 class="tsd-index-heading uppercase">Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Constructors</h3><div class="tsd-index-list"><a href="#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Constructor"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a> </div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Methods</h3><div class="tsd-index-list"><a href="#attemptresourcewithtoken" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>attempt<wbr/>Resource<wbr/>With<wbr/>Token</span></a> <a href="#authorize" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>authorize</span></a> <a href="#checkstatus" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>check<wbr/>Status</span></a> <a href="#createauthorizationfailederror" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>create<wbr/>Authorization<wbr/>Failed<wbr/>Error</span></a> <a href="#createerror" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>create<wbr/>Error</span></a> <a href="#createinternalservererror" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>create<wbr/>Internal<wbr/>Server<wbr/>Error</span></a> <a href="#createrestrictederror" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>create<wbr/>Restricted<wbr/>Error</span></a> <a href="#doauthchain" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>do<wbr/>Auth<wbr/>Chain</span></a> <a href="#generatetreenodeids" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>generate<wbr/>Tree<wbr/>Node<wbr/>Ids</span></a> <a href="#getimagequality" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Image<wbr/>Quality</span></a> <a href="#getinexactlocale" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Inexact<wbr/>Locale</span></a> <a href="#getlocalisedvalue" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Localised<wbr/>Value</span></a> <a href="#getmediatype" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Media<wbr/>Type</span></a> <a href="#getresourcebyid" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Resource<wbr/>By<wbr/>Id</span></a> <a href="#getservice" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Service</span></a> <a href="#getservices" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Services</span></a> <a href="#gettemporalcomponent" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Temporal<wbr/>Component</span></a> <a href="#isimageprofile" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>is<wbr/>Image<wbr/>Profile</span></a> <a href="#isimageservicetype" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>is<wbr/>Image<wbr/>Service<wbr/>Type</span></a> <a href="#islevel0imageprofile" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>is<wbr/>Level0<wbr/>Image<wbr/>Profile</span></a> <a href="#islevel1imageprofile" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>is<wbr/>Level1<wbr/>Image<wbr/>Profile</span></a> <a href="#islevel2imageprofile" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>is<wbr/>Level2<wbr/>Image<wbr/>Profile</span></a> <a href="#loadexternalresourceauth09" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>load<wbr/>External<wbr/>Resource<wbr/>Auth09</span></a> <a href="#loadexternalresourceauth1" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>load<wbr/>External<wbr/>Resource<wbr/>Auth1</span></a> <a href="#loadexternalresourcesauth09" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>load<wbr/>External<wbr/>Resources<wbr/>Auth09</span></a> <a href="#loadexternalresourcesauth1" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>load<wbr/>External<wbr/>Resources<wbr/>Auth1</span></a> <a href="#loadmanifest" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>load<wbr/>Manifest</span></a> <a href="#normalisedurlsmatch" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>normalised<wbr/>Urls<wbr/>Match</span></a> <a href="#normalisetype" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>normalise<wbr/>Type</span></a> <a href="#normaliseurl" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>normalise<wbr/>Url</span></a> <a href="#parsemanifest" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>parse<wbr/>Manifest</span></a> <a href="#traverseandfind" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>traverse<wbr/>And<wbr/>Find</span></a> </div></section></div></details></section></section><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Constructors"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h2>Constructors</h2></summary><section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="constructor"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="constructorutils"><span class="tsd-signature-keyword">new</span> <span class="tsd-kind-constructor-signature">Utils</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="" class="tsd-signature-type tsd-kind-class">Utils</a><a href="#constructorutils" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><h4 class="tsd-returns-title">Returns <a href="" class="tsd-signature-type tsd-kind-class">Utils</a></h4></div></li></ul></section></section></details><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Methods"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h2>Methods</h2></summary><section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="attemptresourcewithtoken"><code class="tsd-tag">Static</code><span>attempt<wbr/>Resource<wbr/>With<wbr/>Token</span><a href="#attemptresourcewithtoken" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="attemptresourcewithtoken-1"><span class="tsd-kind-call-signature">attemptResourceWithToken</span><span class="tsd-signature-symbol">(</span><br/>    <span class="tsd-kind-parameter">resource</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">openTokenService</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/>        <span class="tsd-kind-parameter">resource</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a><span class="tsd-signature-symbol">,</span><br/>        <span class="tsd-kind-parameter">tokenService</span><span class="tsd-signature-symbol">:</span> <a href="Service.html" class="tsd-signature-type tsd-kind-class">Service</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">authService</span><span class="tsd-signature-symbol">:</span> <a href="Service.html" class="tsd-signature-type tsd-kind-class">Service</a><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span> <span class="tsd-signature-symbol">|</span> <a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a><span class="tsd-signature-symbol">&gt;</span><a href="#attemptresourcewithtoken-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">resource</span>: <a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a></span></li><li><span><span class="tsd-kind-parameter">openTokenService</span>: <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">resource</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">tokenService</span><span class="tsd-signature-symbol">:</span> <a href="Service.html" class="tsd-signature-type tsd-kind-class">Service</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></span></li><li><span><span class="tsd-kind-parameter">authService</span>: <a href="Service.html" class="tsd-signature-type tsd-kind-class">Service</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span> <span class="tsd-signature-symbol">|</span> <a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/IIIF-Commons/manifesto-3d/blob/e1a15f018c20be0d71fde610bcfd928a6974e482/src/Utils.ts#L614">src/Utils.ts:614</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="authorize"><code class="tsd-tag">Static</code><span>authorize</span><a href="#authorize" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="authorize-1"><span class="tsd-kind-call-signature">authorize</span><span class="tsd-signature-symbol">(</span><br/>    <span class="tsd-kind-parameter">resource</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">tokenStorageStrategy</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">clickThrough</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">resource</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">restricted</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">resource</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">login</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">resource</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">getAccessToken</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/>        <span class="tsd-kind-parameter">resource</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a><span class="tsd-signature-symbol">,</span><br/>        <span class="tsd-kind-parameter">rejectOnError</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/IAccessToken.html" class="tsd-signature-type tsd-kind-interface">IAccessToken</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">storeAccessToken</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/>        <span class="tsd-kind-parameter">resource</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a><span class="tsd-signature-symbol">,</span><br/>        <span class="tsd-kind-parameter">token</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/IAccessToken.html" class="tsd-signature-type tsd-kind-interface">IAccessToken</a><span class="tsd-signature-symbol">,</span><br/>        <span class="tsd-kind-parameter">tokenStorageStrategy</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">getStoredAccessToken</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/>        <span class="tsd-kind-parameter">resource</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a><span class="tsd-signature-symbol">,</span><br/>        <span class="tsd-kind-parameter">tokenStorageStrategy</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/IAccessToken.html" class="tsd-signature-type tsd-kind-interface">IAccessToken</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a><span class="tsd-signature-symbol">&gt;</span><a href="#authorize-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">resource</span>: <a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a></span></li><li><span><span class="tsd-kind-parameter">tokenStorageStrategy</span>: <span class="tsd-signature-type">string</span></span></li><li><span><span class="tsd-kind-parameter">clickThrough</span>: <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">resource</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></span></li><li><span><span class="tsd-kind-parameter">restricted</span>: <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">resource</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></span></li><li><span><span class="tsd-kind-parameter">login</span>: <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">resource</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></span></li><li><span><span class="tsd-kind-parameter">getAccessToken</span>: <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">resource</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">rejectOnError</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/IAccessToken.html" class="tsd-signature-type tsd-kind-interface">IAccessToken</a><span class="tsd-signature-symbol">&gt;</span></span></li><li><span><span class="tsd-kind-parameter">storeAccessToken</span>: <span class="tsd-signature-symbol">(</span><br/>    <span class="tsd-kind-parameter">resource</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">token</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/IAccessToken.html" class="tsd-signature-type tsd-kind-interface">IAccessToken</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">tokenStorageStrategy</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></span></li><li><span><span class="tsd-kind-parameter">getStoredAccessToken</span>: <span class="tsd-signature-symbol">(</span><br/>    <span class="tsd-kind-parameter">resource</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">tokenStorageStrategy</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/IAccessToken.html" class="tsd-signature-type tsd-kind-interface">IAccessToken</a><span class="tsd-signature-symbol">&gt;</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/IIIF-Commons/manifesto-3d/blob/e1a15f018c20be0d71fde610bcfd928a6974e482/src/Utils.ts#L848">src/Utils.ts:848</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="checkstatus"><code class="tsd-tag">Static</code><span>check<wbr/>Status</span><a href="#checkstatus" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="checkstatus-1"><span class="tsd-kind-call-signature">checkStatus</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">response</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><a href="#checkstatus-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">response</span>: <span class="tsd-signature-type">any</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/IIIF-Commons/manifesto-3d/blob/e1a15f018c20be0d71fde610bcfd928a6974e482/src/Utils.ts#L320">src/Utils.ts:320</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="createauthorizationfailederror"><code class="tsd-tag">Static</code><span>create<wbr/>Authorization<wbr/>Failed<wbr/>Error</span><a href="#createauthorizationfailederror" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="createauthorizationfailederror-1"><span class="tsd-kind-call-signature">createAuthorizationFailedError</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Error</span><a href="#createauthorizationfailederror-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Error</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/IIIF-Commons/manifesto-3d/blob/e1a15f018c20be0d71fde610bcfd928a6974e482/src/Utils.ts#L833">src/Utils.ts:833</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="createerror"><code class="tsd-tag">Static</code><span>create<wbr/>Error</span><a href="#createerror" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="createerror-1"><span class="tsd-kind-call-signature">createError</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">name</span><span class="tsd-signature-symbol">:</span> <a href="../enums/StatusCode.html" class="tsd-signature-type tsd-kind-enum">StatusCode</a><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">message</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Error</span><a href="#createerror-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">name</span>: <a href="../enums/StatusCode.html" class="tsd-signature-type tsd-kind-enum">StatusCode</a></span></li><li><span><span class="tsd-kind-parameter">message</span>: <span class="tsd-signature-type">string</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Error</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/IIIF-Commons/manifesto-3d/blob/e1a15f018c20be0d71fde610bcfd928a6974e482/src/Utils.ts#L826">src/Utils.ts:826</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="createinternalservererror"><code class="tsd-tag">Static</code><span>create<wbr/>Internal<wbr/>Server<wbr/>Error</span><a href="#createinternalservererror" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="createinternalservererror-1"><span class="tsd-kind-call-signature">createInternalServerError</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">message</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Error</span><a href="#createinternalservererror-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">message</span>: <span class="tsd-signature-type">string</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Error</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/IIIF-Commons/manifesto-3d/blob/e1a15f018c20be0d71fde610bcfd928a6974e482/src/Utils.ts#L844">src/Utils.ts:844</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="createrestrictederror"><code class="tsd-tag">Static</code><span>create<wbr/>Restricted<wbr/>Error</span><a href="#createrestrictederror" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="createrestrictederror-1"><span class="tsd-kind-call-signature">createRestrictedError</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Error</span><a href="#createrestrictederror-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Error</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/IIIF-Commons/manifesto-3d/blob/e1a15f018c20be0d71fde610bcfd928a6974e482/src/Utils.ts#L840">src/Utils.ts:840</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="doauthchain"><code class="tsd-tag">Static</code><span>do<wbr/>Auth<wbr/>Chain</span><a href="#doauthchain" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="doauthchain-1"><span class="tsd-kind-call-signature">doAuthChain</span><span class="tsd-signature-symbol">(</span><br/>    <span class="tsd-kind-parameter">resource</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">openContentProviderInteraction</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">service</span><span class="tsd-signature-symbol">:</span> <a href="Service.html" class="tsd-signature-type tsd-kind-class">Service</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">openTokenService</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/>        <span class="tsd-kind-parameter">resource</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a><span class="tsd-signature-symbol">,</span><br/>        <span class="tsd-kind-parameter">tokenService</span><span class="tsd-signature-symbol">:</span> <a href="Service.html" class="tsd-signature-type tsd-kind-class">Service</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">userInteractedWithContentProvider</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/>        <span class="tsd-kind-parameter">contentProviderInteraction</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">getContentProviderInteraction</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/>        <span class="tsd-kind-parameter">resource</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a><span class="tsd-signature-symbol">,</span><br/>        <span class="tsd-kind-parameter">service</span><span class="tsd-signature-symbol">:</span> <a href="Service.html" class="tsd-signature-type tsd-kind-class">Service</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">handleMovedTemporarily</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">resource</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">showOutOfOptionsMessages</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/>        <span class="tsd-kind-parameter">resource</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a><span class="tsd-signature-symbol">,</span><br/>        <span class="tsd-kind-parameter">service</span><span class="tsd-signature-symbol">:</span> <a href="Service.html" class="tsd-signature-type tsd-kind-class">Service</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span> <span class="tsd-signature-symbol">|</span> <a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a><span class="tsd-signature-symbol">&gt;</span><a href="#doauthchain-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">resource</span>: <a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a></span></li><li><span><span class="tsd-kind-parameter">openContentProviderInteraction</span>: <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">service</span><span class="tsd-signature-symbol">:</span> <a href="Service.html" class="tsd-signature-type tsd-kind-class">Service</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">any</span></span></li><li><span><span class="tsd-kind-parameter">openTokenService</span>: <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">resource</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">tokenService</span><span class="tsd-signature-symbol">:</span> <a href="Service.html" class="tsd-signature-type tsd-kind-class">Service</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></span></li><li><span><span class="tsd-kind-parameter">userInteractedWithContentProvider</span>: <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">contentProviderInteraction</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></span></li><li><span><span class="tsd-kind-parameter">getContentProviderInteraction</span>: <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">resource</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">service</span><span class="tsd-signature-symbol">:</span> <a href="Service.html" class="tsd-signature-type tsd-kind-class">Service</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></span></li><li><span><span class="tsd-kind-parameter">handleMovedTemporarily</span>: <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">resource</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></span></li><li><span><span class="tsd-kind-parameter">showOutOfOptionsMessages</span>: <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">resource</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">service</span><span class="tsd-signature-symbol">:</span> <a href="Service.html" class="tsd-signature-type tsd-kind-class">Service</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">void</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span> <span class="tsd-signature-symbol">|</span> <a href="../interfaces/IExternalResource.html" class="tsd-signature-type tsd-kind-interface">IExternalResource</a><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/IIIF-Commons/manifesto-3d/blob/e1a15f018c20be0d71fde610bcfd928a6974e482/src/Utils.ts#L466">src/Utils.ts:466</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="generatetreenodeids"><code class="tsd-tag">Static</code><span>generate<wbr/>Tree<wbr/>Node<wbr/>Ids</span><a href="#generatetreenodeids" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="generatetreenodeids-1"><span class="tsd-kind-call-signature">generateTreeNodeIds</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">treeNode</span><span class="tsd-signature-symbol">:</span> <a href="TreeNode.html" class="tsd-signature-type tsd-kind-class">TreeNode</a><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">index</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#generatetreenodeids-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">treeNode</span>: <a href="TreeNode.html" class="tsd-signature-type tsd-kind-class">TreeNode</a></span></li><li><span><span class="tsd-kind-parameter">index</span>: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/IIIF-Commons/manifesto-3d/blob/e1a15f018c20be0d71fde610bcfd928a6974e482/src/Utils.ts#L91">src/Utils.ts:91</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getimagequality"><code class="tsd-tag">Static</code><span>get<wbr/>Image<wbr/>Quality</span><a href="#getimagequality" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use h