UNPKG

wombo-dream-api

Version:
35 lines 89.4 kB
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>WomboDream | wombo-dream-api</title><meta name="description" content="Documentation for wombo-dream-api"/><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 async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">wombo-dream-api</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label><input type="checkbox" id="tsd-filter-externals" checked/><label class="tsd-widget" for="tsd-filter-externals">Externals</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../modules.html">wombo-dream-api</a></li><li><a href="../modules/WomboDream.html">WomboDream</a></li><li><a href="WomboDream.WomboDream-1.html">WomboDream</a></li></ul><h1>Class WomboDream</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="target">WomboDream</span></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Constructors</h3><ul class="tsd-index-list"><li class="tsd-kind-constructor tsd-parent-kind-class"><a href="WomboDream.WomboDream-1.html#constructor" class="tsd-kind-icon">constructor</a></li></ul></section><section class="tsd-index-section "><h3>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-class"><a href="WomboDream.WomboDream-1.html#apiGallerySuffix" class="tsd-kind-icon">api<wbr/>Gallery<wbr/>Suffix</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="WomboDream.WomboDream-1.html#apiShopSuffix" class="tsd-kind-icon">api<wbr/>Shop<wbr/>Suffix</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="WomboDream.WomboDream-1.html#apiStyleSuffix" class="tsd-kind-icon">api<wbr/>Style<wbr/>Suffix</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="WomboDream.WomboDream-1.html#apiTaskSuffix" class="tsd-kind-icon">api<wbr/>Task<wbr/>Suffix</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="WomboDream.WomboDream-1.html#apiTaskUrl" class="tsd-kind-icon">api<wbr/>Task<wbr/>Url</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="WomboDream.WomboDream-1.html#apiUserSuffix" class="tsd-kind-icon">api<wbr/>User<wbr/>Suffix</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="WomboDream.WomboDream-1.html#authentifier" class="tsd-kind-icon">authentifier</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="WomboDream.WomboDream-1.html#originUrl" class="tsd-kind-icon">origin<wbr/>Url</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="WomboDream.WomboDream-1.html#uploadUrl" class="tsd-kind-icon">upload<wbr/>Url</a></li></ul></section><section class="tsd-index-section "><h3>Methods</h3><ul class="tsd-index-list"><li class="tsd-kind-method tsd-parent-kind-class"><a href="WomboDream.WomboDream-1.html#buildApiGalleryUrl" class="tsd-kind-icon">build<wbr/>Api<wbr/>Gallery<wbr/>Url</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="WomboDream.WomboDream-1.html#buildApiStyleUrl" class="tsd-kind-icon">build<wbr/>Api<wbr/>Style<wbr/>Url</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="WomboDream.WomboDream-1.html#buildApiTaskShopUrl" class="tsd-kind-icon">build<wbr/>Api<wbr/>Task<wbr/>Shop<wbr/>Url</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="WomboDream.WomboDream-1.html#buildApiTaskUrl" class="tsd-kind-icon">build<wbr/>Api<wbr/>Task<wbr/>Url</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="WomboDream.WomboDream-1.html#buildHttpRequestAgent" class="tsd-kind-icon">build<wbr/>Http<wbr/>Request<wbr/>Agent</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="WomboDream.WomboDream-1.html#buildHttpRequestAgentForDreamApi" class="tsd-kind-icon">build<wbr/>Http<wbr/>Request<wbr/>Agent<wbr/>For<wbr/>Dream<wbr/>Api</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="WomboDream.WomboDream-1.html#buildHttpRequestAgentForUserAPI" class="tsd-kind-icon">build<wbr/>Http<wbr/>Request<wbr/>Agent<wbr/>For<wbr/>UserAPI</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="WomboDream.WomboDream-1.html#buildRawApiGalleryUrl" class="tsd-kind-icon">build<wbr/>Raw<wbr/>Api<wbr/>Gallery<wbr/>Url</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="WomboDream.WomboDream-1.html#buildRawApiTaskUrl" class="tsd-kind-icon">build<wbr/>Raw<wbr/>Api<wbr/>Task<wbr/>Url</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="WomboDream.WomboDream-1.html#buildUploadUrl" class="tsd-kind-icon">build<wbr/>Upload<wbr/>Url</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="WomboDream.WomboDream-1.html#configureTask" class="tsd-kind-icon">configure<wbr/>Task</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="WomboDream.WomboDream-1.html#createTask" class="tsd-kind-icon">create<wbr/>Task</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="WomboDream.WomboDream-1.html#deleteGalleryTask" class="tsd-kind-icon">delete<wbr/>Gallery<wbr/>Task</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="WomboDream.WomboDream-1.html#fetchGalleryTask" class="tsd-kind-icon">fetch<wbr/>Gallery<wbr/>Task</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="WomboDream.WomboDream-1.html#fetchGalleryTasks" class="tsd-kind-icon">fetch<wbr/>Gallery<wbr/>Tasks</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="WomboDream.WomboDream-1.html#fetchStyles" class="tsd-kind-icon">fetch<wbr/>Styles</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="WomboDream.WomboDream-1.html#fetchTaskInfos" class="tsd-kind-icon">fetch<wbr/>Task<wbr/>Infos</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="WomboDream.WomboDream-1.html#fetchTaskShopUrl" class="tsd-kind-icon">fetch<wbr/>Task<wbr/>Shop<wbr/>Url</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="WomboDream.WomboDream-1.html#generatePicture" class="tsd-kind-icon">generate<wbr/>Picture</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="WomboDream.WomboDream-1.html#initTask" class="tsd-kind-icon">init<wbr/>Task</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="WomboDream.WomboDream-1.html#saveTaskToGallery" class="tsd-kind-icon">save<wbr/>Task<wbr/>To<wbr/>Gallery</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="WomboDream.WomboDream-1.html#setUsername" class="tsd-kind-icon">set<wbr/>Username</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="WomboDream.WomboDream-1.html#uploadImage" class="tsd-kind-icon">upload<wbr/>Image</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Constructors</h2><section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class"><a id="constructor" class="tsd-anchor"></a><h3 class="tsd-anchor-link">constructor<a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">new <wbr/>Wombo<wbr/>Dream<span class="tsd-signature-symbol">(</span>authentifier<span class="tsd-signature-symbol">: </span><a href="GoogleAuthentifier.GoogleAuthentifier-1.html" class="tsd-signature-type" data-tsd-kind="Class">GoogleAuthentifier</a>, apiTaskUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, apiUserSuffix<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, apiTaskSuffix<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, apiShopSuffix<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, apiStyleSuffix<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, apiGallerySuffix<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, originUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, uploadUrl<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><a href="WomboDream.WomboDream-1.html" class="tsd-signature-type" data-tsd-kind="Class">WomboDream</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/leopoldhub/wombo-dream-api/blob/b1890d0/src/WomboDream.ts#L16">src/WomboDream.ts:16</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>authentifier: <a href="GoogleAuthentifier.GoogleAuthentifier-1.html" class="tsd-signature-type" data-tsd-kind="Class">GoogleAuthentifier</a></h5></li><li><h5>apiTaskUrl: <span class="tsd-signature-type">string</span></h5></li><li><h5>apiUserSuffix: <span class="tsd-signature-type">string</span></h5></li><li><h5>apiTaskSuffix: <span class="tsd-signature-type">string</span></h5></li><li><h5>apiShopSuffix: <span class="tsd-signature-type">string</span></h5></li><li><h5>apiStyleSuffix: <span class="tsd-signature-type">string</span></h5></li><li><h5>apiGallerySuffix: <span class="tsd-signature-type">string</span></h5></li><li><h5>originUrl: <span class="tsd-signature-type">string</span></h5></li><li><h5>uploadUrl: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="WomboDream.WomboDream-1.html" class="tsd-signature-type" data-tsd-kind="Class">WomboDream</a></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group "><h2>Properties</h2><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="apiGallerySuffix" class="tsd-anchor"></a><h3 class="tsd-anchor-link">api<wbr/>Gallery<wbr/>Suffix<a href="#apiGallerySuffix" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">api<wbr/>Gallery<wbr/>Suffix<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="apiShopSuffix" class="tsd-anchor"></a><h3 class="tsd-anchor-link">api<wbr/>Shop<wbr/>Suffix<a href="#apiShopSuffix" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">api<wbr/>Shop<wbr/>Suffix<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="apiStyleSuffix" class="tsd-anchor"></a><h3 class="tsd-anchor-link">api<wbr/>Style<wbr/>Suffix<a href="#apiStyleSuffix" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">api<wbr/>Style<wbr/>Suffix<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="apiTaskSuffix" class="tsd-anchor"></a><h3 class="tsd-anchor-link">api<wbr/>Task<wbr/>Suffix<a href="#apiTaskSuffix" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">api<wbr/>Task<wbr/>Suffix<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="apiTaskUrl" class="tsd-anchor"></a><h3 class="tsd-anchor-link">api<wbr/>Task<wbr/>Url<a href="#apiTaskUrl" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">api<wbr/>Task<wbr/>Url<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="apiUserSuffix" class="tsd-anchor"></a><h3 class="tsd-anchor-link">api<wbr/>User<wbr/>Suffix<a href="#apiUserSuffix" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">api<wbr/>User<wbr/>Suffix<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="authentifier" class="tsd-anchor"></a><h3 class="tsd-anchor-link">authentifier<a href="#authentifier" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">authentifier<span class="tsd-signature-symbol">:</span> <a href="GoogleAuthentifier.GoogleAuthentifier-1.html" class="tsd-signature-type" data-tsd-kind="Class">GoogleAuthentifier</a></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="originUrl" class="tsd-anchor"></a><h3 class="tsd-anchor-link">origin<wbr/>Url<a href="#originUrl" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">origin<wbr/>Url<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="uploadUrl" class="tsd-anchor"></a><h3 class="tsd-anchor-link">upload<wbr/>Url<a href="#uploadUrl" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">upload<wbr/>Url<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Methods</h2><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="buildApiGalleryUrl" class="tsd-anchor"></a><h3 class="tsd-anchor-link">build<wbr/>Api<wbr/>Gallery<wbr/>Url<a href="#buildApiGalleryUrl" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">build<wbr/>Api<wbr/>Gallery<wbr/>Url<span class="tsd-signature-symbol">(</span>taskId<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">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/leopoldhub/wombo-dream-api/blob/b1890d0/src/WomboDream.ts#L54">src/WomboDream.ts:54</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>taskId: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="buildApiStyleUrl" class="tsd-anchor"></a><h3 class="tsd-anchor-link">build<wbr/>Api<wbr/>Style<wbr/>Url<a href="#buildApiStyleUrl" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">build<wbr/>Api<wbr/>Style<wbr/>Url<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/leopoldhub/wombo-dream-api/blob/b1890d0/src/WomboDream.ts#L42">src/WomboDream.ts:42</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="buildApiTaskShopUrl" class="tsd-anchor"></a><h3 class="tsd-anchor-link">build<wbr/>Api<wbr/>Task<wbr/>Shop<wbr/>Url<a href="#buildApiTaskShopUrl" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">build<wbr/>Api<wbr/>Task<wbr/>Shop<wbr/>Url<span class="tsd-signature-symbol">(</span>taskId<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">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/leopoldhub/wombo-dream-api/blob/b1890d0/src/WomboDream.ts#L48">src/WomboDream.ts:48</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>taskId: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="buildApiTaskUrl" class="tsd-anchor"></a><h3 class="tsd-anchor-link">build<wbr/>Api<wbr/>Task<wbr/>Url<a href="#buildApiTaskUrl" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">build<wbr/>Api<wbr/>Task<wbr/>Url<span class="tsd-signature-symbol">(</span>taskId<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">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/leopoldhub/wombo-dream-api/blob/b1890d0/src/WomboDream.ts#L28">src/WomboDream.ts:28</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>taskId: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="buildHttpRequestAgent" class="tsd-anchor"></a><h3 class="tsd-anchor-link">build<wbr/>Http<wbr/>Request<wbr/>Agent<a href="#buildHttpRequestAgent" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">build<wbr/>Http<wbr/>Request<wbr/>Agent<span class="tsd-signature-symbol">(</span>config<span class="tsd-signature-symbol">: </span><a href="../interfaces/_internal_.AxiosRequestConfig.html" class="tsd-signature-type" data-tsd-kind="Interface">AxiosRequestConfig</a><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><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/_internal_.AxiosInstance.html" class="tsd-signature-type" data-tsd-kind="Interface">AxiosInstance</a><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/leopoldhub/wombo-dream-api/blob/b1890d0/src/WomboDream.ts#L111">src/WomboDream.ts:111</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead"> <p>Create a new HTTP request agent with custom headers</p> </div><dl class="tsd-comment-tags"><dt>example</dt><dd><pre><code class="language-ts"><span class="hl-2">const</span><span class="hl-1"> </span><span class="hl-3">agent</span><span class="hl-1"> = </span><span class="hl-6">await</span><span class="hl-1"> </span><span class="hl-0">dreamInstance</span><span class="hl-1">.</span><span class="hl-4">buildHttpRequestAgentForApiUser</span><span class="hl-1">({</span><span class="hl-0">baseURL:</span><span class="hl-1"> </span><span class="hl-5">&quot;https://app.wombo.art&quot;</span><span class="hl-1">, </span><span class="hl-0">headers:</span><span class="hl-1"> {</span><span class="hl-0">Authorization:</span><span class="hl-1"> </span><span class="hl-5">&quot;Bearer 12345&quot;</span><span class="hl-1">}});</span><br/><span class="hl-0">agent</span><span class="hl-1">.</span><span class="hl-4">get</span><span class="hl-1">(</span><span class="hl-5">&#39;https://app.wombo.art&#39;</span><span class="hl-1">).</span><span class="hl-4">then</span><span class="hl-1">(</span><span class="hl-0">res</span><span class="hl-1"> </span><span class="hl-2">=&gt;</span><span class="hl-1"> </span><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-4">log</span><span class="hl-1">(</span><span class="hl-0">res</span><span class="hl-1">.</span><span class="hl-0">data</span><span class="hl-1">));</span> </code></pre> </dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>config: <a href="../interfaces/_internal_.AxiosRequestConfig.html" class="tsd-signature-type" data-tsd-kind="Interface">AxiosRequestConfig</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/_internal_.AxiosInstance.html" class="tsd-signature-type" data-tsd-kind="Interface">AxiosInstance</a><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="buildHttpRequestAgentForDreamApi" class="tsd-anchor"></a><h3 class="tsd-anchor-link">build<wbr/>Http<wbr/>Request<wbr/>Agent<wbr/>For<wbr/>Dream<wbr/>Api<a href="#buildHttpRequestAgentForDreamApi" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">build<wbr/>Http<wbr/>Request<wbr/>Agent<wbr/>For<wbr/>Dream<wbr/>Api<span class="tsd-signature-symbol">(</span><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/_internal_.AxiosInstance.html" class="tsd-signature-type" data-tsd-kind="Interface">AxiosInstance</a><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/leopoldhub/wombo-dream-api/blob/b1890d0/src/WomboDream.ts#L72">src/WomboDream.ts:72</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead"> <p>Create a new HTTP request agent with custom headers for dream API</p> </div><dl class="tsd-comment-tags"><dt>example</dt><dd><pre><code class="language-ts"><span class="hl-2">const</span><span class="hl-1"> </span><span class="hl-3">agent</span><span class="hl-1"> = </span><span class="hl-6">await</span><span class="hl-1"> </span><span class="hl-0">dreamInstance</span><span class="hl-1">.</span><span class="hl-4">buildHttpRequestAgentForDreamApi</span><span class="hl-1">();</span><br/><span class="hl-0">agent</span><span class="hl-1">.</span><span class="hl-4">get</span><span class="hl-1">(</span><span class="hl-5">&#39;https://app.wombo.art&#39;</span><span class="hl-1">).</span><span class="hl-4">then</span><span class="hl-1">(</span><span class="hl-0">res</span><span class="hl-1"> </span><span class="hl-2">=&gt;</span><span class="hl-1"> </span><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-4">log</span><span class="hl-1">(</span><span class="hl-0">res</span><span class="hl-1">.</span><span class="hl-0">data</span><span class="hl-1">));</span> </code></pre> </dd></dl></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/_internal_.AxiosInstance.html" class="tsd-signature-type" data-tsd-kind="Interface">AxiosInstance</a><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="buildHttpRequestAgentForUserAPI" class="tsd-anchor"></a><h3 class="tsd-anchor-link">build<wbr/>Http<wbr/>Request<wbr/>Agent<wbr/>For<wbr/>UserAPI<a href="#buildHttpRequestAgentForUserAPI" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">build<wbr/>Http<wbr/>Request<wbr/>Agent<wbr/>For<wbr/>UserAPI<span class="tsd-signature-symbol">(</span><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/_internal_.AxiosInstance.html" class="tsd-signature-type" data-tsd-kind="Interface">AxiosInstance</a><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/leopoldhub/wombo-dream-api/blob/b1890d0/src/WomboDream.ts#L92">src/WomboDream.ts:92</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead"> <p>Create a new HTTP request agent with custom headers for user API</p> </div><dl class="tsd-comment-tags"><dt>example</dt><dd><pre><code class="language-ts"><span class="hl-2">const</span><span class="hl-1"> </span><span class="hl-3">agent</span><span class="hl-1"> = </span><span class="hl-6">await</span><span class="hl-1"> </span><span class="hl-0">dreamInstance</span><span class="hl-1">.</span><span class="hl-4">buildHttpRequestAgentForApiUser</span><span class="hl-1">();</span><br/><span class="hl-0">agent</span><span class="hl-1">.</span><span class="hl-4">post</span><span class="hl-1">(</span><span class="hl-5">&#39;https://app.wombo.art/api/users&#39;</span><span class="hl-1">, {</span><span class="hl-0">username:</span><span class="hl-1"> </span><span class="hl-5">&quot;myusername&quot;</span><span class="hl-1">}).</span><span class="hl-4">then</span><span class="hl-1">(</span><span class="hl-0">res</span><span class="hl-1"> </span><span class="hl-2">=&gt;</span><span class="hl-1"> </span><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-4">log</span><span class="hl-1">(</span><span class="hl-0">res</span><span class="hl-1">.</span><span class="hl-0">data</span><span class="hl-1">));</span> </code></pre> </dd></dl></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/_internal_.AxiosInstance.html" class="tsd-signature-type" data-tsd-kind="Interface">AxiosInstance</a><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="buildRawApiGalleryUrl" class="tsd-anchor"></a><h3 class="tsd-anchor-link">build<wbr/>Raw<wbr/>Api<wbr/>Gallery<wbr/>Url<a href="#buildRawApiGalleryUrl" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">build<wbr/>Raw<wbr/>Api<wbr/>Gallery<wbr/>Url<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/leopoldhub/wombo-dream-api/blob/b1890d0/src/WomboDream.ts#L60">src/WomboDream.ts:60</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="buildRawApiTaskUrl" class="tsd-anchor"></a><h3 class="tsd-anchor-link">build<wbr/>Raw<wbr/>Api<wbr/>Task<wbr/>Url<a href="#buildRawApiTaskUrl" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">build<wbr/>Raw<wbr/>Api<wbr/>Task<wbr/>Url<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/leopoldhub/wombo-dream-api/blob/b1890d0/src/WomboDream.ts#L34">src/WomboDream.ts:34</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="buildUploadUrl" class="tsd-anchor"></a><h3 class="tsd-anchor-link">build<wbr/>Upload<wbr/>Url<a href="#buildUploadUrl" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">build<wbr/>Upload<wbr/>Url<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/leopoldhub/wombo-dream-api/blob/b1890d0/src/WomboDream.ts#L38">src/WomboDream.ts:38</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="configureTask" class="tsd-anchor"></a><h3 class="tsd-anchor-link">configure<wbr/>Task<a href="#configureTask" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">configure<wbr/>Task<span class="tsd-signature-symbol">(</span>task<span class="tsd-signature-symbol">: </span><a href="../modules/Types.html#Task" class="tsd-signature-type" data-tsd-kind="Type alias">Task</a>, prompt<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, style<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, input_image<span class="tsd-signature-symbol">?: </span><a href="../modules/Types.html#TaskImageInputSpec" class="tsd-signature-type" data-tsd-kind="Type alias">TaskImageInputSpec</a>, display_freq<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">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../modules/Types.html#Task" class="tsd-signature-type" data-tsd-kind="Type alias">Task</a><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/leopoldhub/wombo-dream-api/blob/b1890d0/src/WomboDream.ts#L162">src/WomboDream.ts:162</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead"> <p>Configure an existing Task</p> </div><dl class="tsd-comment-tags"><dt>warning</dt><dd><p>must be done with the same account as the task was created</p> </dd><dt>example</dt><dd><pre><code class="language-ts"><span class="hl-2">const</span><span class="hl-1"> </span><span class="hl-3">task</span><span class="hl-1">:</span><span class="hl-11">Task</span><span class="hl-1">;</span><br/><span class="hl-0">dreamInstance</span><span class="hl-1">.</span><span class="hl-4">configureTask</span><span class="hl-1">(</span><span class="hl-0">task</span><span class="hl-1">, </span><span class="hl-5">&quot;kitten&quot;</span><span class="hl-1">, </span><span class="hl-9">34</span><span class="hl-1">).</span><span class="hl-4">then</span><span class="hl-1">(</span><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-0">log</span><span class="hl-1">);</span> </code></pre> </dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>task: <a href="../modules/Types.html#Task" class="tsd-signature-type" data-tsd-kind="Type alias">Task</a></h5></li><li><h5>prompt: <span class="tsd-signature-type">string</span></h5></li><li><h5>style: <span class="tsd-signature-type">number</span></h5></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> input_image: <a href="../modules/Types.html#TaskImageInputSpec" class="tsd-signature-type" data-tsd-kind="Type alias">TaskImageInputSpec</a></h5><div class="tsd-comment tsd-typography"><div class="lead"> <p>use an image as input</p> </div></div></li><li><h5>display_freq: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = DEFAULT_DISPLAY_FREQ</span></h5><div class="tsd-comment tsd-typography"><div class="lead"> <p>how often the task makes intermediate renders</p> </div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../modules/Types.html#Task" class="tsd-signature-type" data-tsd-kind="Type alias">Task</a><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="createTask" class="tsd-anchor"></a><h3 class="tsd-anchor-link">create<wbr/>Task<a href="#createTask" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">create<wbr/>Task<span class="tsd-signature-symbol">(</span>prompt<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, style<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, input_image<span class="tsd-signature-symbol">?: </span><a href="../modules/Types.html#TaskImageInputSpec" class="tsd-signature-type" data-tsd-kind="Type alias">TaskImageInputSpec</a>, display_freq<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">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../modules/Types.html#Task" class="tsd-signature-type" data-tsd-kind="Type alias">Task</a><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/leopoldhub/wombo-dream-api/blob/b1890d0/src/WomboDream.ts#L207">src/WomboDream.ts:207</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead"> <p>Create and configure an existing Task</p> </div><dl class="tsd-comment-tags"><dt>example</dt><dd><pre><code class="language-ts"><span class="hl-0">dreamInstance</span><span class="hl-1">.</span><span class="hl-4">createTask</span><span class="hl-1">(</span><span class="hl-5">&quot;kitten&quot;</span><span class="hl-1">, </span><span class="hl-9">34</span><span class="hl-1">).</span><span class="hl-4">then</span><span class="hl-1">(</span><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-0">log</span><span class="hl-1">);</span> </code></pre> </dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>prompt: <span class="tsd-signature-type">string</span></h5></li><li><h5>style: <span class="tsd-signature-type">number</span></h5></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> input_image: <a href="../modules/Types.html#TaskImageInputSpec" class="tsd-signature-type" data-tsd-kind="Type alias">TaskImageInputSpec</a></h5><div class="tsd-comment tsd-typography"><div class="lead"> <p>use an image as input</p> </div></div></li><li><h5>display_freq: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = DEFAULT_DISPLAY_FREQ</span></h5><div class="tsd-comment tsd-typography"><div class="lead"> <p>how often the task makes intermediate renders</p> </div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../modules/Types.html#Task" class="tsd-signature-type" data-tsd-kind="Type alias">Task</a><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="deleteGalleryTask" class="tsd-anchor"></a><h3 class="tsd-anchor-link">delete<wbr/>Gallery<wbr/>Task<a href="#deleteGalleryTask" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">delete<wbr/>Gallery<wbr/>Task<span class="tsd-signature-symbol">(</span>taskGalleryId<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">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/leopoldhub/wombo-dream-api/blob/b1890d0/src/WomboDream.ts#L465">src/WomboDream.ts:465</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead"> <p>Fetch a gallery saved task</p> </div><dl class="tsd-comment-tags"><dt>warning</dt><dd><p>task_id != task_gallery_id</p> </dd><dt>warning</dt><dd><p>you must be logged as a user to use it</p> </dd><dt>example</dt><dd><pre><code class="language-ts"><span class="hl-2">const</span><span class="hl-1"> </span><span class="hl-3">taskGalleryId</span><span class="hl-1">:</span><span class="hl-11">number</span><span class="hl-1">;</span><br/><span class="hl-0">dreamInstance</span><span class="hl-1">.</span><span class="hl-4">deleteGalleryTask</span><span class="hl-1">(</span><span class="hl-0">taskGalleryId</span><span class="hl-1">);</span> </code></pre