diff --git a/README.md b/README.md index 264782e..b7fbd2c 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,11 @@ Unofficial API for [Wombo Dream](https://app.wombo.art) ## Changelog +> ### 0.1.5 +> +> - Can now fetch tasks shop url +> - Can now save, fetch, fetch all and delete tasks in the gallery + > ### 0.1.4-fix > > - Throw error when task generation fails @@ -16,28 +21,6 @@ Unofficial API for [Wombo Dream](https://app.wombo.art) > - Using **typedoc** to generate **[Documentation][documentation-url]** > - Updating **[Documentation][documentation-url]** -> ### 0.1.3 -> -> - Adding image upload -> - Adding image based generation -> - Updating **[Documentation][documentation-url]** - -> ### 0.1.2 -> -> - Adding **[Documentation][documentation-url]** -> - Adding login -> - Improving authentification token refresh -> - Removing abstract `Authentifier` -> - Massive refactoring (can break code) - -> ### 0.1.1-fix -> -> - Adding the possibility to fetch styles - -> ### 0.1.0 -> -> - Initial release - ## Installation ### node.js @@ -67,6 +50,7 @@ WomboDreamApi.buildDefaultInstance() ```javascript const WomboDreamApi = require('wombo-dream-api'); +const fs = require('fs'); const instance = WomboDreamApi.buildDefaultInstance(); diff --git a/docs/assets/search.js b/docs/assets/search.js index 20576df..1a82a0f 100644 --- a/docs/assets/search.js +++ b/docs/assets/search.js @@ -1 +1 @@ -window.searchData = JSON.parse("{\"kinds\":{\"4\":\"Namespace\",\"32\":\"Variable\",\"64\":\"Function\",\"128\":\"Class\",\"512\":\"Constructor\",\"1024\":\"Property\",\"2048\":\"Method\",\"65536\":\"Type literal\",\"4194304\":\"Type alias\",\"16777216\":\"Reference\"},\"rows\":[{\"id\":0,\"kind\":32,\"name\":\"DEFAULT_ORIGIN_URL\",\"url\":\"modules.html#DEFAULT_ORIGIN_URL\",\"classes\":\"tsd-kind-variable\"},{\"id\":1,\"kind\":32,\"name\":\"DEFAULT_TASK_API_URL\",\"url\":\"modules.html#DEFAULT_TASK_API_URL\",\"classes\":\"tsd-kind-variable\"},{\"id\":2,\"kind\":32,\"name\":\"DEFAULT_STYLE_API_URL\",\"url\":\"modules.html#DEFAULT_STYLE_API_URL\",\"classes\":\"tsd-kind-variable\"},{\"id\":3,\"kind\":32,\"name\":\"DEFAULT_UPLOAD_URL\",\"url\":\"modules.html#DEFAULT_UPLOAD_URL\",\"classes\":\"tsd-kind-variable\"},{\"id\":4,\"kind\":32,\"name\":\"DEFAULT_AUTHENTIFICATION_KEY\",\"url\":\"modules.html#DEFAULT_AUTHENTIFICATION_KEY\",\"classes\":\"tsd-kind-variable\"},{\"id\":5,\"kind\":64,\"name\":\"buildDefaultInstance\",\"url\":\"modules.html#buildDefaultInstance\",\"classes\":\"tsd-kind-function\"},{\"id\":6,\"kind\":4,\"name\":\"WomboDream\",\"url\":\"modules/WomboDream.html\",\"classes\":\"tsd-kind-namespace\"},{\"id\":7,\"kind\":32,\"name\":\"DEFAULT_DISPLAY_FREQ\",\"url\":\"modules/WomboDream.html#DEFAULT_DISPLAY_FREQ\",\"classes\":\"tsd-kind-variable tsd-parent-kind-namespace\",\"parent\":\"WomboDream\"},{\"id\":8,\"kind\":32,\"name\":\"DEFAULT_CHECK_FREQ\",\"url\":\"modules/WomboDream.html#DEFAULT_CHECK_FREQ\",\"classes\":\"tsd-kind-variable tsd-parent-kind-namespace\",\"parent\":\"WomboDream\"},{\"id\":9,\"kind\":128,\"name\":\"WomboDream\",\"url\":\"classes/WomboDream.WomboDream-1.html\",\"classes\":\"tsd-kind-class tsd-parent-kind-namespace\",\"parent\":\"WomboDream\"},{\"id\":10,\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/WomboDream.WomboDream-1.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":11,\"kind\":1024,\"name\":\"authentifier\",\"url\":\"classes/WomboDream.WomboDream-1.html#authentifier\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":12,\"kind\":1024,\"name\":\"apiTaskUrl\",\"url\":\"classes/WomboDream.WomboDream-1.html#apiTaskUrl\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":13,\"kind\":1024,\"name\":\"apiStyleUrl\",\"url\":\"classes/WomboDream.WomboDream-1.html#apiStyleUrl\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":14,\"kind\":1024,\"name\":\"originUrl\",\"url\":\"classes/WomboDream.WomboDream-1.html#originUrl\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":15,\"kind\":1024,\"name\":\"uploadUrl\",\"url\":\"classes/WomboDream.WomboDream-1.html#uploadUrl\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":16,\"kind\":2048,\"name\":\"buildApiTaskUrl\",\"url\":\"classes/WomboDream.WomboDream-1.html#buildApiTaskUrl\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":17,\"kind\":2048,\"name\":\"buildRawApiTaskUrl\",\"url\":\"classes/WomboDream.WomboDream-1.html#buildRawApiTaskUrl\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":18,\"kind\":2048,\"name\":\"buildUploadUrl\",\"url\":\"classes/WomboDream.WomboDream-1.html#buildUploadUrl\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":19,\"kind\":2048,\"name\":\"buildApiStyleUrl\",\"url\":\"classes/WomboDream.WomboDream-1.html#buildApiStyleUrl\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":20,\"kind\":2048,\"name\":\"buildHttpRequestAgent\",\"url\":\"classes/WomboDream.WomboDream-1.html#buildHttpRequestAgent\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":21,\"kind\":2048,\"name\":\"initTask\",\"url\":\"classes/WomboDream.WomboDream-1.html#initTask\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":22,\"kind\":2048,\"name\":\"configureTask\",\"url\":\"classes/WomboDream.WomboDream-1.html#configureTask\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":23,\"kind\":2048,\"name\":\"createTask\",\"url\":\"classes/WomboDream.WomboDream-1.html#createTask\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":24,\"kind\":2048,\"name\":\"fetchTaskInfos\",\"url\":\"classes/WomboDream.WomboDream-1.html#fetchTaskInfos\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":25,\"kind\":2048,\"name\":\"generatePicture\",\"url\":\"classes/WomboDream.WomboDream-1.html#generatePicture\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":26,\"kind\":2048,\"name\":\"uploadImage\",\"url\":\"classes/WomboDream.WomboDream-1.html#uploadImage\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":27,\"kind\":2048,\"name\":\"fetchStyles\",\"url\":\"classes/WomboDream.WomboDream-1.html#fetchStyles\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":28,\"kind\":16777216,\"name\":\"default\",\"url\":\"modules/WomboDream.html#default\",\"classes\":\"tsd-kind-reference tsd-parent-kind-namespace\",\"parent\":\"WomboDream\"},{\"id\":29,\"kind\":4,\"name\":\"GoogleAuthentifier\",\"url\":\"modules/GoogleAuthentifier.html\",\"classes\":\"tsd-kind-namespace\"},{\"id\":30,\"kind\":128,\"name\":\"GoogleAuthentifier\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html\",\"classes\":\"tsd-kind-class tsd-parent-kind-namespace\",\"parent\":\"GoogleAuthentifier\"},{\"id\":31,\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":32,\"kind\":1024,\"name\":\"signUpUserUrlTemplate\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#signUpUserUrlTemplate\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":33,\"kind\":1024,\"name\":\"signInUserUrlTemplate\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#signInUserUrlTemplate\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":34,\"kind\":1024,\"name\":\"tokenRefreshUrlTemplate\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#tokenRefreshUrlTemplate\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":35,\"kind\":1024,\"name\":\"authorisationDataCache\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#authorisationDataCache\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":36,\"kind\":1024,\"name\":\"secret_key\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#secret_key\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":37,\"kind\":1024,\"name\":\"email\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#email\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":38,\"kind\":1024,\"name\":\"password\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#password\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":39,\"kind\":2048,\"name\":\"buildSignUpUserUrl\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#buildSignUpUserUrl\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":40,\"kind\":2048,\"name\":\"buildTokenRefreshUrl\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#buildTokenRefreshUrl\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":41,\"kind\":2048,\"name\":\"buildSignInUserUrl\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#buildSignInUserUrl\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":42,\"kind\":2048,\"name\":\"signUp\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#signUp\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":43,\"kind\":2048,\"name\":\"signIn\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#signIn\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":44,\"kind\":2048,\"name\":\"obtainAuthorisationToken\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#obtainAuthorisationToken\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":45,\"kind\":2048,\"name\":\"refreshAuthorisationToken\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#refreshAuthorisationToken\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":46,\"kind\":2048,\"name\":\"ensureCacheValidity\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#ensureCacheValidity\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":47,\"kind\":2048,\"name\":\"isCacheValid\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#isCacheValid\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":48,\"kind\":16777216,\"name\":\"default\",\"url\":\"modules/GoogleAuthentifier.html#default\",\"classes\":\"tsd-kind-reference tsd-parent-kind-namespace\",\"parent\":\"GoogleAuthentifier\"},{\"id\":49,\"kind\":4,\"name\":\"Types\",\"url\":\"modules/Types.html\",\"classes\":\"tsd-kind-namespace\"},{\"id\":50,\"kind\":4194304,\"name\":\"TaskImageInputSpec\",\"url\":\"modules/Types.html#TaskImageInputSpec\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-namespace\",\"parent\":\"Types\"},{\"id\":51,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/Types.html#TaskImageInputSpec.__type-2\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"Types.TaskImageInputSpec\"},{\"id\":52,\"kind\":1024,\"name\":\"mediastore_id\",\"url\":\"modules/Types.html#TaskImageInputSpec.__type-2.mediastore_id\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.TaskImageInputSpec.__type\"},{\"id\":53,\"kind\":1024,\"name\":\"weight\",\"url\":\"modules/Types.html#TaskImageInputSpec.__type-2.weight\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.TaskImageInputSpec.__type\"},{\"id\":54,\"kind\":4194304,\"name\":\"TaskInputSpec\",\"url\":\"modules/Types.html#TaskInputSpec\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-namespace\",\"parent\":\"Types\"},{\"id\":55,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/Types.html#TaskInputSpec.__type-3\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"Types.TaskInputSpec\"},{\"id\":56,\"kind\":1024,\"name\":\"style\",\"url\":\"modules/Types.html#TaskInputSpec.__type-3.style\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.TaskInputSpec.__type\"},{\"id\":57,\"kind\":1024,\"name\":\"prompt\",\"url\":\"modules/Types.html#TaskInputSpec.__type-3.prompt\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.TaskInputSpec.__type\"},{\"id\":58,\"kind\":1024,\"name\":\"display_freq\",\"url\":\"modules/Types.html#TaskInputSpec.__type-3.display_freq\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.TaskInputSpec.__type\"},{\"id\":59,\"kind\":1024,\"name\":\"input_image\",\"url\":\"modules/Types.html#TaskInputSpec.__type-3.input_image\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.TaskInputSpec.__type\"},{\"id\":60,\"kind\":4194304,\"name\":\"Task\",\"url\":\"modules/Types.html#Task\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-namespace\",\"parent\":\"Types\"},{\"id\":61,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/Types.html#Task.__type-1\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"Types.Task\"},{\"id\":62,\"kind\":1024,\"name\":\"id\",\"url\":\"modules/Types.html#Task.__type-1.id-1\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Task.__type\"},{\"id\":63,\"kind\":1024,\"name\":\"user_id\",\"url\":\"modules/Types.html#Task.__type-1.user_id\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Task.__type\"},{\"id\":64,\"kind\":1024,\"name\":\"input_spec\",\"url\":\"modules/Types.html#Task.__type-1.input_spec\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Task.__type\"},{\"id\":65,\"kind\":1024,\"name\":\"state\",\"url\":\"modules/Types.html#Task.__type-1.state\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Task.__type\"},{\"id\":66,\"kind\":1024,\"name\":\"premium\",\"url\":\"modules/Types.html#Task.__type-1.premium\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Task.__type\"},{\"id\":67,\"kind\":1024,\"name\":\"created_at\",\"url\":\"modules/Types.html#Task.__type-1.created_at-1\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Task.__type\"},{\"id\":68,\"kind\":1024,\"name\":\"updated_at\",\"url\":\"modules/Types.html#Task.__type-1.updated_at-1\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Task.__type\"},{\"id\":69,\"kind\":1024,\"name\":\"photo_url_list\",\"url\":\"modules/Types.html#Task.__type-1.photo_url_list\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Task.__type\"},{\"id\":70,\"kind\":1024,\"name\":\"generated_photo_keys\",\"url\":\"modules/Types.html#Task.__type-1.generated_photo_keys\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Task.__type\"},{\"id\":71,\"kind\":1024,\"name\":\"result\",\"url\":\"modules/Types.html#Task.__type-1.result\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Task.__type\"},{\"id\":72,\"kind\":4194304,\"name\":\"Style\",\"url\":\"modules/Types.html#Style\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-namespace\",\"parent\":\"Types\"},{\"id\":73,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/Types.html#Style.__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"Types.Style\"},{\"id\":74,\"kind\":1024,\"name\":\"id\",\"url\":\"modules/Types.html#Style.__type.id\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Style.__type\"},{\"id\":75,\"kind\":1024,\"name\":\"name\",\"url\":\"modules/Types.html#Style.__type.name\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Style.__type\"},{\"id\":76,\"kind\":1024,\"name\":\"is_visible\",\"url\":\"modules/Types.html#Style.__type.is_visible\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Style.__type\"},{\"id\":77,\"kind\":1024,\"name\":\"created_at\",\"url\":\"modules/Types.html#Style.__type.created_at\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Style.__type\"},{\"id\":78,\"kind\":1024,\"name\":\"updated_at\",\"url\":\"modules/Types.html#Style.__type.updated_at\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Style.__type\"},{\"id\":79,\"kind\":1024,\"name\":\"deleted_at\",\"url\":\"modules/Types.html#Style.__type.deleted_at\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Style.__type\"},{\"id\":80,\"kind\":1024,\"name\":\"photo_url\",\"url\":\"modules/Types.html#Style.__type.photo_url\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Style.__type\"},{\"id\":81,\"kind\":4194304,\"name\":\"UploadResource\",\"url\":\"modules/Types.html#UploadResource\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-namespace\",\"parent\":\"Types\"},{\"id\":82,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/Types.html#UploadResource.__type-4\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"Types.UploadResource\"},{\"id\":83,\"kind\":1024,\"name\":\"id\",\"url\":\"modules/Types.html#UploadResource.__type-4.id-2\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.UploadResource.__type\"},{\"id\":84,\"kind\":1024,\"name\":\"media_url\",\"url\":\"modules/Types.html#UploadResource.__type-4.media_url\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.UploadResource.__type\"},{\"id\":85,\"kind\":1024,\"name\":\"created_at\",\"url\":\"modules/Types.html#UploadResource.__type-4.created_at-2\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.UploadResource.__type\"},{\"id\":86,\"kind\":1024,\"name\":\"expiry_at\",\"url\":\"modules/Types.html#UploadResource.__type-4.expiry_at\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.UploadResource.__type\"},{\"id\":87,\"kind\":4194304,\"name\":\"AuthorisationCache\",\"url\":\"modules/Types.html#AuthorisationCache\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-namespace\",\"parent\":\"Types\"},{\"id\":88,\"kind\":4194304,\"name\":\"CreditentialsBody\",\"url\":\"modules/Types.html#CreditentialsBody\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-namespace\",\"parent\":\"Types\"},{\"id\":89,\"kind\":4,\"name\":\"\",\"url\":\"modules/_internal_.html\",\"classes\":\"tsd-kind-namespace\"}],\"index\":{\"version\":\"2.3.9\",\"fields\":[\"name\",\"parent\"],\"fieldVectors\":[[\"name/0\",[0,41.054]],[\"parent/0\",[]],[\"name/1\",[1,41.054]],[\"parent/1\",[]],[\"name/2\",[2,41.054]],[\"parent/2\",[]],[\"name/3\",[3,41.054]],[\"parent/3\",[]],[\"name/4\",[4,41.054]],[\"parent/4\",[]],[\"name/5\",[5,41.054]],[\"parent/5\",[]],[\"name/6\",[6,26.391]],[\"parent/6\",[]],[\"name/7\",[7,41.054]],[\"parent/7\",[6,2.511]],[\"name/8\",[8,41.054]],[\"parent/8\",[6,2.511]],[\"name/9\",[6,26.391]],[\"parent/9\",[6,2.511]],[\"name/10\",[9,35.946]],[\"parent/10\",[10,1.516]],[\"name/11\",[11,41.054]],[\"parent/11\",[10,1.516]],[\"name/12\",[12,41.054]],[\"parent/12\",[10,1.516]],[\"name/13\",[13,41.054]],[\"parent/13\",[10,1.516]],[\"name/14\",[14,41.054]],[\"parent/14\",[10,1.516]],[\"name/15\",[15,41.054]],[\"parent/15\",[10,1.516]],[\"name/16\",[16,41.054]],[\"parent/16\",[10,1.516]],[\"name/17\",[17,41.054]],[\"parent/17\",[10,1.516]],[\"name/18\",[18,41.054]],[\"parent/18\",[10,1.516]],[\"name/19\",[19,41.054]],[\"parent/19\",[10,1.516]],[\"name/20\",[20,41.054]],[\"parent/20\",[10,1.516]],[\"name/21\",[21,41.054]],[\"parent/21\",[10,1.516]],[\"name/22\",[22,41.054]],[\"parent/22\",[10,1.516]],[\"name/23\",[23,41.054]],[\"parent/23\",[10,1.516]],[\"name/24\",[24,41.054]],[\"parent/24\",[10,1.516]],[\"name/25\",[25,41.054]],[\"parent/25\",[10,1.516]],[\"name/26\",[26,41.054]],[\"parent/26\",[10,1.516]],[\"name/27\",[27,41.054]],[\"parent/27\",[10,1.516]],[\"name/28\",[28,35.946]],[\"parent/28\",[6,2.511]],[\"name/29\",[29,30.068]],[\"parent/29\",[]],[\"name/30\",[29,30.068]],[\"parent/30\",[29,2.861]],[\"name/31\",[9,35.946]],[\"parent/31\",[30,1.568]],[\"name/32\",[31,41.054]],[\"parent/32\",[30,1.568]],[\"name/33\",[32,41.054]],[\"parent/33\",[30,1.568]],[\"name/34\",[33,41.054]],[\"parent/34\",[30,1.568]],[\"name/35\",[34,41.054]],[\"parent/35\",[30,1.568]],[\"name/36\",[35,41.054]],[\"parent/36\",[30,1.568]],[\"name/37\",[36,41.054]],[\"parent/37\",[30,1.568]],[\"name/38\",[37,41.054]],[\"parent/38\",[30,1.568]],[\"name/39\",[38,41.054]],[\"parent/39\",[30,1.568]],[\"name/40\",[39,41.054]],[\"parent/40\",[30,1.568]],[\"name/41\",[40,41.054]],[\"parent/41\",[30,1.568]],[\"name/42\",[41,41.054]],[\"parent/42\",[30,1.568]],[\"name/43\",[42,41.054]],[\"parent/43\",[30,1.568]],[\"name/44\",[43,41.054]],[\"parent/44\",[30,1.568]],[\"name/45\",[44,41.054]],[\"parent/45\",[30,1.568]],[\"name/46\",[45,41.054]],[\"parent/46\",[30,1.568]],[\"name/47\",[46,41.054]],[\"parent/47\",[30,1.568]],[\"name/48\",[28,35.946]],[\"parent/48\",[29,2.861]],[\"name/49\",[47,23.708]],[\"parent/49\",[]],[\"name/50\",[48,41.054]],[\"parent/50\",[47,2.255]],[\"name/51\",[49,28.061]],[\"parent/51\",[50,3.906]],[\"name/52\",[51,41.054]],[\"parent/52\",[52,3.42]],[\"name/53\",[53,41.054]],[\"parent/53\",[52,3.42]],[\"name/54\",[54,41.054]],[\"parent/54\",[47,2.255]],[\"name/55\",[49,28.061]],[\"parent/55\",[55,3.906]],[\"name/56\",[56,35.946]],[\"parent/56\",[57,2.861]],[\"name/57\",[58,41.054]],[\"parent/57\",[57,2.861]],[\"name/58\",[59,41.054]],[\"parent/58\",[57,2.861]],[\"name/59\",[60,41.054]],[\"parent/59\",[57,2.861]],[\"name/60\",[61,41.054]],[\"parent/60\",[47,2.255]],[\"name/61\",[49,28.061]],[\"parent/61\",[62,3.906]],[\"name/62\",[63,32.581]],[\"parent/62\",[64,2.054]],[\"name/63\",[65,41.054]],[\"parent/63\",[64,2.054]],[\"name/64\",[66,41.054]],[\"parent/64\",[64,2.054]],[\"name/65\",[67,41.054]],[\"parent/65\",[64,2.054]],[\"name/66\",[68,41.054]],[\"parent/66\",[64,2.054]],[\"name/67\",[69,32.581]],[\"parent/67\",[64,2.054]],[\"name/68\",[70,35.946]],[\"parent/68\",[64,2.054]],[\"name/69\",[71,41.054]],[\"parent/69\",[64,2.054]],[\"name/70\",[72,41.054]],[\"parent/70\",[64,2.054]],[\"name/71\",[73,41.054]],[\"parent/71\",[64,2.054]],[\"name/72\",[56,35.946]],[\"parent/72\",[47,2.255]],[\"name/73\",[49,28.061]],[\"parent/73\",[74,3.906]],[\"name/74\",[63,32.581]],[\"parent/74\",[75,2.375]],[\"name/75\",[76,41.054]],[\"parent/75\",[75,2.375]],[\"name/76\",[77,41.054]],[\"parent/76\",[75,2.375]],[\"name/77\",[69,32.581]],[\"parent/77\",[75,2.375]],[\"name/78\",[70,35.946]],[\"parent/78\",[75,2.375]],[\"name/79\",[78,41.054]],[\"parent/79\",[75,2.375]],[\"name/80\",[79,41.054]],[\"parent/80\",[75,2.375]],[\"name/81\",[80,41.054]],[\"parent/81\",[47,2.255]],[\"name/82\",[49,28.061]],[\"parent/82\",[81,3.906]],[\"name/83\",[63,32.581]],[\"parent/83\",[82,2.861]],[\"name/84\",[83,41.054]],[\"parent/84\",[82,2.861]],[\"name/85\",[69,32.581]],[\"parent/85\",[82,2.861]],[\"name/86\",[84,41.054]],[\"parent/86\",[82,2.861]],[\"name/87\",[85,41.054]],[\"parent/87\",[47,2.255]],[\"name/88\",[86,41.054]],[\"parent/88\",[47,2.255]],[\"name/89\",[87,41.054]],[\"parent/89\",[]]],\"invertedIndex\":[[\"__type\",{\"_index\":49,\"name\":{\"51\":{},\"55\":{},\"61\":{},\"73\":{},\"82\":{}},\"parent\":{}}],[\"apistyleurl\",{\"_index\":13,\"name\":{\"13\":{}},\"parent\":{}}],[\"apitaskurl\",{\"_index\":12,\"name\":{\"12\":{}},\"parent\":{}}],[\"authentifier\",{\"_index\":11,\"name\":{\"11\":{}},\"parent\":{}}],[\"authorisationcache\",{\"_index\":85,\"name\":{\"87\":{}},\"parent\":{}}],[\"authorisationdatacache\",{\"_index\":34,\"name\":{\"35\":{}},\"parent\":{}}],[\"buildapistyleurl\",{\"_index\":19,\"name\":{\"19\":{}},\"parent\":{}}],[\"buildapitaskurl\",{\"_index\":16,\"name\":{\"16\":{}},\"parent\":{}}],[\"builddefaultinstance\",{\"_index\":5,\"name\":{\"5\":{}},\"parent\":{}}],[\"buildhttprequestagent\",{\"_index\":20,\"name\":{\"20\":{}},\"parent\":{}}],[\"buildrawapitaskurl\",{\"_index\":17,\"name\":{\"17\":{}},\"parent\":{}}],[\"buildsigninuserurl\",{\"_index\":40,\"name\":{\"41\":{}},\"parent\":{}}],[\"buildsignupuserurl\",{\"_index\":38,\"name\":{\"39\":{}},\"parent\":{}}],[\"buildtokenrefreshurl\",{\"_index\":39,\"name\":{\"40\":{}},\"parent\":{}}],[\"builduploadurl\",{\"_index\":18,\"name\":{\"18\":{}},\"parent\":{}}],[\"configuretask\",{\"_index\":22,\"name\":{\"22\":{}},\"parent\":{}}],[\"constructor\",{\"_index\":9,\"name\":{\"10\":{},\"31\":{}},\"parent\":{}}],[\"created_at\",{\"_index\":69,\"name\":{\"67\":{},\"77\":{},\"85\":{}},\"parent\":{}}],[\"createtask\",{\"_index\":23,\"name\":{\"23\":{}},\"parent\":{}}],[\"creditentialsbody\",{\"_index\":86,\"name\":{\"88\":{}},\"parent\":{}}],[\"default\",{\"_index\":28,\"name\":{\"28\":{},\"48\":{}},\"parent\":{}}],[\"default_authentification_key\",{\"_index\":4,\"name\":{\"4\":{}},\"parent\":{}}],[\"default_check_freq\",{\"_index\":8,\"name\":{\"8\":{}},\"parent\":{}}],[\"default_display_freq\",{\"_index\":7,\"name\":{\"7\":{}},\"parent\":{}}],[\"default_origin_url\",{\"_index\":0,\"name\":{\"0\":{}},\"parent\":{}}],[\"default_style_api_url\",{\"_index\":2,\"name\":{\"2\":{}},\"parent\":{}}],[\"default_task_api_url\",{\"_index\":1,\"name\":{\"1\":{}},\"parent\":{}}],[\"default_upload_url\",{\"_index\":3,\"name\":{\"3\":{}},\"parent\":{}}],[\"deleted_at\",{\"_index\":78,\"name\":{\"79\":{}},\"parent\":{}}],[\"display_freq\",{\"_index\":59,\"name\":{\"58\":{}},\"parent\":{}}],[\"email\",{\"_index\":36,\"name\":{\"37\":{}},\"parent\":{}}],[\"ensurecachevalidity\",{\"_index\":45,\"name\":{\"46\":{}},\"parent\":{}}],[\"expiry_at\",{\"_index\":84,\"name\":{\"86\":{}},\"parent\":{}}],[\"fetchstyles\",{\"_index\":27,\"name\":{\"27\":{}},\"parent\":{}}],[\"fetchtaskinfos\",{\"_index\":24,\"name\":{\"24\":{}},\"parent\":{}}],[\"generated_photo_keys\",{\"_index\":72,\"name\":{\"70\":{}},\"parent\":{}}],[\"generatepicture\",{\"_index\":25,\"name\":{\"25\":{}},\"parent\":{}}],[\"googleauthentifier\",{\"_index\":29,\"name\":{\"29\":{},\"30\":{}},\"parent\":{\"30\":{},\"48\":{}}}],[\"googleauthentifier.googleauthentifier\",{\"_index\":30,\"name\":{},\"parent\":{\"31\":{},\"32\":{},\"33\":{},\"34\":{},\"35\":{},\"36\":{},\"37\":{},\"38\":{},\"39\":{},\"40\":{},\"41\":{},\"42\":{},\"43\":{},\"44\":{},\"45\":{},\"46\":{},\"47\":{}}}],[\"id\",{\"_index\":63,\"name\":{\"62\":{},\"74\":{},\"83\":{}},\"parent\":{}}],[\"inittask\",{\"_index\":21,\"name\":{\"21\":{}},\"parent\":{}}],[\"input_image\",{\"_index\":60,\"name\":{\"59\":{}},\"parent\":{}}],[\"input_spec\",{\"_index\":66,\"name\":{\"64\":{}},\"parent\":{}}],[\"internal\",{\"_index\":87,\"name\":{\"89\":{}},\"parent\":{}}],[\"is_visible\",{\"_index\":77,\"name\":{\"76\":{}},\"parent\":{}}],[\"iscachevalid\",{\"_index\":46,\"name\":{\"47\":{}},\"parent\":{}}],[\"media_url\",{\"_index\":83,\"name\":{\"84\":{}},\"parent\":{}}],[\"mediastore_id\",{\"_index\":51,\"name\":{\"52\":{}},\"parent\":{}}],[\"name\",{\"_index\":76,\"name\":{\"75\":{}},\"parent\":{}}],[\"obtainauthorisationtoken\",{\"_index\":43,\"name\":{\"44\":{}},\"parent\":{}}],[\"originurl\",{\"_index\":14,\"name\":{\"14\":{}},\"parent\":{}}],[\"password\",{\"_index\":37,\"name\":{\"38\":{}},\"parent\":{}}],[\"photo_url\",{\"_index\":79,\"name\":{\"80\":{}},\"parent\":{}}],[\"photo_url_list\",{\"_index\":71,\"name\":{\"69\":{}},\"parent\":{}}],[\"premium\",{\"_index\":68,\"name\":{\"66\":{}},\"parent\":{}}],[\"prompt\",{\"_index\":58,\"name\":{\"57\":{}},\"parent\":{}}],[\"refreshauthorisationtoken\",{\"_index\":44,\"name\":{\"45\":{}},\"parent\":{}}],[\"result\",{\"_index\":73,\"name\":{\"71\":{}},\"parent\":{}}],[\"secret_key\",{\"_index\":35,\"name\":{\"36\":{}},\"parent\":{}}],[\"signin\",{\"_index\":42,\"name\":{\"43\":{}},\"parent\":{}}],[\"signinuserurltemplate\",{\"_index\":32,\"name\":{\"33\":{}},\"parent\":{}}],[\"signup\",{\"_index\":41,\"name\":{\"42\":{}},\"parent\":{}}],[\"signupuserurltemplate\",{\"_index\":31,\"name\":{\"32\":{}},\"parent\":{}}],[\"state\",{\"_index\":67,\"name\":{\"65\":{}},\"parent\":{}}],[\"style\",{\"_index\":56,\"name\":{\"56\":{},\"72\":{}},\"parent\":{}}],[\"task\",{\"_index\":61,\"name\":{\"60\":{}},\"parent\":{}}],[\"taskimageinputspec\",{\"_index\":48,\"name\":{\"50\":{}},\"parent\":{}}],[\"taskinputspec\",{\"_index\":54,\"name\":{\"54\":{}},\"parent\":{}}],[\"tokenrefreshurltemplate\",{\"_index\":33,\"name\":{\"34\":{}},\"parent\":{}}],[\"types\",{\"_index\":47,\"name\":{\"49\":{}},\"parent\":{\"50\":{},\"54\":{},\"60\":{},\"72\":{},\"81\":{},\"87\":{},\"88\":{}}}],[\"types.style\",{\"_index\":74,\"name\":{},\"parent\":{\"73\":{}}}],[\"types.style.__type\",{\"_index\":75,\"name\":{},\"parent\":{\"74\":{},\"75\":{},\"76\":{},\"77\":{},\"78\":{},\"79\":{},\"80\":{}}}],[\"types.task\",{\"_index\":62,\"name\":{},\"parent\":{\"61\":{}}}],[\"types.task.__type\",{\"_index\":64,\"name\":{},\"parent\":{\"62\":{},\"63\":{},\"64\":{},\"65\":{},\"66\":{},\"67\":{},\"68\":{},\"69\":{},\"70\":{},\"71\":{}}}],[\"types.taskimageinputspec\",{\"_index\":50,\"name\":{},\"parent\":{\"51\":{}}}],[\"types.taskimageinputspec.__type\",{\"_index\":52,\"name\":{},\"parent\":{\"52\":{},\"53\":{}}}],[\"types.taskinputspec\",{\"_index\":55,\"name\":{},\"parent\":{\"55\":{}}}],[\"types.taskinputspec.__type\",{\"_index\":57,\"name\":{},\"parent\":{\"56\":{},\"57\":{},\"58\":{},\"59\":{}}}],[\"types.uploadresource\",{\"_index\":81,\"name\":{},\"parent\":{\"82\":{}}}],[\"types.uploadresource.__type\",{\"_index\":82,\"name\":{},\"parent\":{\"83\":{},\"84\":{},\"85\":{},\"86\":{}}}],[\"updated_at\",{\"_index\":70,\"name\":{\"68\":{},\"78\":{}},\"parent\":{}}],[\"uploadimage\",{\"_index\":26,\"name\":{\"26\":{}},\"parent\":{}}],[\"uploadresource\",{\"_index\":80,\"name\":{\"81\":{}},\"parent\":{}}],[\"uploadurl\",{\"_index\":15,\"name\":{\"15\":{}},\"parent\":{}}],[\"user_id\",{\"_index\":65,\"name\":{\"63\":{}},\"parent\":{}}],[\"weight\",{\"_index\":53,\"name\":{\"53\":{}},\"parent\":{}}],[\"wombodream\",{\"_index\":6,\"name\":{\"6\":{},\"9\":{}},\"parent\":{\"7\":{},\"8\":{},\"9\":{},\"28\":{}}}],[\"wombodream.wombodream\",{\"_index\":10,\"name\":{},\"parent\":{\"10\":{},\"11\":{},\"12\":{},\"13\":{},\"14\":{},\"15\":{},\"16\":{},\"17\":{},\"18\":{},\"19\":{},\"20\":{},\"21\":{},\"22\":{},\"23\":{},\"24\":{},\"25\":{},\"26\":{},\"27\":{}}}]],\"pipeline\":[]}}"); \ No newline at end of file +window.searchData = JSON.parse("{\"kinds\":{\"4\":\"Namespace\",\"32\":\"Variable\",\"64\":\"Function\",\"128\":\"Class\",\"512\":\"Constructor\",\"1024\":\"Property\",\"2048\":\"Method\",\"65536\":\"Type literal\",\"4194304\":\"Type alias\",\"16777216\":\"Reference\"},\"rows\":[{\"id\":0,\"kind\":32,\"name\":\"DEFAULT_ORIGIN_URL\",\"url\":\"modules.html#DEFAULT_ORIGIN_URL\",\"classes\":\"tsd-kind-variable\"},{\"id\":1,\"kind\":32,\"name\":\"DEFAULT_TASK_API_URL\",\"url\":\"modules.html#DEFAULT_TASK_API_URL\",\"classes\":\"tsd-kind-variable\"},{\"id\":2,\"kind\":32,\"name\":\"DEFAULT_TASK_API_SUFFIX\",\"url\":\"modules.html#DEFAULT_TASK_API_SUFFIX\",\"classes\":\"tsd-kind-variable\"},{\"id\":3,\"kind\":32,\"name\":\"DEFAULT_SHOP_API_SUFFIX\",\"url\":\"modules.html#DEFAULT_SHOP_API_SUFFIX\",\"classes\":\"tsd-kind-variable\"},{\"id\":4,\"kind\":32,\"name\":\"DEFAULT_STYLE_API_SUFFIX\",\"url\":\"modules.html#DEFAULT_STYLE_API_SUFFIX\",\"classes\":\"tsd-kind-variable\"},{\"id\":5,\"kind\":32,\"name\":\"DEFAULT_GALLERY_API_SUFFIX\",\"url\":\"modules.html#DEFAULT_GALLERY_API_SUFFIX\",\"classes\":\"tsd-kind-variable\"},{\"id\":6,\"kind\":32,\"name\":\"DEFAULT_UPLOAD_URL\",\"url\":\"modules.html#DEFAULT_UPLOAD_URL\",\"classes\":\"tsd-kind-variable\"},{\"id\":7,\"kind\":32,\"name\":\"DEFAULT_AUTHENTIFICATION_KEY\",\"url\":\"modules.html#DEFAULT_AUTHENTIFICATION_KEY\",\"classes\":\"tsd-kind-variable\"},{\"id\":8,\"kind\":64,\"name\":\"buildDefaultInstance\",\"url\":\"modules.html#buildDefaultInstance\",\"classes\":\"tsd-kind-function\"},{\"id\":9,\"kind\":4,\"name\":\"WomboDream\",\"url\":\"modules/WomboDream.html\",\"classes\":\"tsd-kind-namespace\"},{\"id\":10,\"kind\":32,\"name\":\"DEFAULT_DISPLAY_FREQ\",\"url\":\"modules/WomboDream.html#DEFAULT_DISPLAY_FREQ\",\"classes\":\"tsd-kind-variable tsd-parent-kind-namespace\",\"parent\":\"WomboDream\"},{\"id\":11,\"kind\":32,\"name\":\"DEFAULT_CHECK_FREQ\",\"url\":\"modules/WomboDream.html#DEFAULT_CHECK_FREQ\",\"classes\":\"tsd-kind-variable tsd-parent-kind-namespace\",\"parent\":\"WomboDream\"},{\"id\":12,\"kind\":128,\"name\":\"WomboDream\",\"url\":\"classes/WomboDream.WomboDream-1.html\",\"classes\":\"tsd-kind-class tsd-parent-kind-namespace\",\"parent\":\"WomboDream\"},{\"id\":13,\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/WomboDream.WomboDream-1.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":14,\"kind\":1024,\"name\":\"authentifier\",\"url\":\"classes/WomboDream.WomboDream-1.html#authentifier\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":15,\"kind\":1024,\"name\":\"apiTaskUrl\",\"url\":\"classes/WomboDream.WomboDream-1.html#apiTaskUrl\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":16,\"kind\":1024,\"name\":\"apiTaskSuffix\",\"url\":\"classes/WomboDream.WomboDream-1.html#apiTaskSuffix\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":17,\"kind\":1024,\"name\":\"apiShopSuffix\",\"url\":\"classes/WomboDream.WomboDream-1.html#apiShopSuffix\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":18,\"kind\":1024,\"name\":\"apiStyleSuffix\",\"url\":\"classes/WomboDream.WomboDream-1.html#apiStyleSuffix\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":19,\"kind\":1024,\"name\":\"apiGallerySuffix\",\"url\":\"classes/WomboDream.WomboDream-1.html#apiGallerySuffix\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":20,\"kind\":1024,\"name\":\"originUrl\",\"url\":\"classes/WomboDream.WomboDream-1.html#originUrl\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":21,\"kind\":1024,\"name\":\"uploadUrl\",\"url\":\"classes/WomboDream.WomboDream-1.html#uploadUrl\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":22,\"kind\":2048,\"name\":\"buildApiTaskUrl\",\"url\":\"classes/WomboDream.WomboDream-1.html#buildApiTaskUrl\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":23,\"kind\":2048,\"name\":\"buildRawApiTaskUrl\",\"url\":\"classes/WomboDream.WomboDream-1.html#buildRawApiTaskUrl\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":24,\"kind\":2048,\"name\":\"buildUploadUrl\",\"url\":\"classes/WomboDream.WomboDream-1.html#buildUploadUrl\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":25,\"kind\":2048,\"name\":\"buildApiStyleUrl\",\"url\":\"classes/WomboDream.WomboDream-1.html#buildApiStyleUrl\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":26,\"kind\":2048,\"name\":\"buildApiTaskShopUrl\",\"url\":\"classes/WomboDream.WomboDream-1.html#buildApiTaskShopUrl\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":27,\"kind\":2048,\"name\":\"buildApiGalleryUrl\",\"url\":\"classes/WomboDream.WomboDream-1.html#buildApiGalleryUrl\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":28,\"kind\":2048,\"name\":\"buildRawApiGalleryUrl\",\"url\":\"classes/WomboDream.WomboDream-1.html#buildRawApiGalleryUrl\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":29,\"kind\":2048,\"name\":\"buildHttpRequestAgent\",\"url\":\"classes/WomboDream.WomboDream-1.html#buildHttpRequestAgent\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":30,\"kind\":2048,\"name\":\"initTask\",\"url\":\"classes/WomboDream.WomboDream-1.html#initTask\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":31,\"kind\":2048,\"name\":\"configureTask\",\"url\":\"classes/WomboDream.WomboDream-1.html#configureTask\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":32,\"kind\":2048,\"name\":\"createTask\",\"url\":\"classes/WomboDream.WomboDream-1.html#createTask\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":33,\"kind\":2048,\"name\":\"fetchTaskInfos\",\"url\":\"classes/WomboDream.WomboDream-1.html#fetchTaskInfos\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":34,\"kind\":2048,\"name\":\"generatePicture\",\"url\":\"classes/WomboDream.WomboDream-1.html#generatePicture\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":35,\"kind\":2048,\"name\":\"uploadImage\",\"url\":\"classes/WomboDream.WomboDream-1.html#uploadImage\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":36,\"kind\":2048,\"name\":\"fetchStyles\",\"url\":\"classes/WomboDream.WomboDream-1.html#fetchStyles\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":37,\"kind\":2048,\"name\":\"fetchTaskShopUrl\",\"url\":\"classes/WomboDream.WomboDream-1.html#fetchTaskShopUrl\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":38,\"kind\":2048,\"name\":\"saveTaskToGallery\",\"url\":\"classes/WomboDream.WomboDream-1.html#saveTaskToGallery\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":39,\"kind\":2048,\"name\":\"fetchGalleryTask\",\"url\":\"classes/WomboDream.WomboDream-1.html#fetchGalleryTask\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":40,\"kind\":2048,\"name\":\"fetchGalleryTasks\",\"url\":\"classes/WomboDream.WomboDream-1.html#fetchGalleryTasks\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":41,\"kind\":2048,\"name\":\"deleteGalleryTask\",\"url\":\"classes/WomboDream.WomboDream-1.html#deleteGalleryTask\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"WomboDream.WomboDream\"},{\"id\":42,\"kind\":16777216,\"name\":\"default\",\"url\":\"modules/WomboDream.html#default\",\"classes\":\"tsd-kind-reference tsd-parent-kind-namespace\",\"parent\":\"WomboDream\"},{\"id\":43,\"kind\":4,\"name\":\"GoogleAuthentifier\",\"url\":\"modules/GoogleAuthentifier.html\",\"classes\":\"tsd-kind-namespace\"},{\"id\":44,\"kind\":128,\"name\":\"GoogleAuthentifier\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html\",\"classes\":\"tsd-kind-class tsd-parent-kind-namespace\",\"parent\":\"GoogleAuthentifier\"},{\"id\":45,\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":46,\"kind\":1024,\"name\":\"signUpUserUrlTemplate\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#signUpUserUrlTemplate\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":47,\"kind\":1024,\"name\":\"signInUserUrlTemplate\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#signInUserUrlTemplate\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":48,\"kind\":1024,\"name\":\"tokenRefreshUrlTemplate\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#tokenRefreshUrlTemplate\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":49,\"kind\":1024,\"name\":\"authorisationDataCache\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#authorisationDataCache\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":50,\"kind\":1024,\"name\":\"secret_key\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#secret_key\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":51,\"kind\":1024,\"name\":\"email\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#email\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":52,\"kind\":1024,\"name\":\"password\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#password\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":53,\"kind\":2048,\"name\":\"buildSignUpUserUrl\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#buildSignUpUserUrl\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":54,\"kind\":2048,\"name\":\"buildTokenRefreshUrl\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#buildTokenRefreshUrl\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":55,\"kind\":2048,\"name\":\"buildSignInUserUrl\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#buildSignInUserUrl\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":56,\"kind\":2048,\"name\":\"signUp\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#signUp\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":57,\"kind\":2048,\"name\":\"signIn\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#signIn\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":58,\"kind\":2048,\"name\":\"obtainAuthorisationToken\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#obtainAuthorisationToken\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":59,\"kind\":2048,\"name\":\"refreshAuthorisationToken\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#refreshAuthorisationToken\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":60,\"kind\":2048,\"name\":\"ensureCacheValidity\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#ensureCacheValidity\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":61,\"kind\":2048,\"name\":\"isCacheValid\",\"url\":\"classes/GoogleAuthentifier.GoogleAuthentifier-1.html#isCacheValid\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"GoogleAuthentifier.GoogleAuthentifier\"},{\"id\":62,\"kind\":16777216,\"name\":\"default\",\"url\":\"modules/GoogleAuthentifier.html#default\",\"classes\":\"tsd-kind-reference tsd-parent-kind-namespace\",\"parent\":\"GoogleAuthentifier\"},{\"id\":63,\"kind\":4,\"name\":\"Types\",\"url\":\"modules/Types.html\",\"classes\":\"tsd-kind-namespace\"},{\"id\":64,\"kind\":4194304,\"name\":\"TaskImageInputSpec\",\"url\":\"modules/Types.html#TaskImageInputSpec\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-namespace\",\"parent\":\"Types\"},{\"id\":65,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/Types.html#TaskImageInputSpec.__type-4\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"Types.TaskImageInputSpec\"},{\"id\":66,\"kind\":1024,\"name\":\"mediastore_id\",\"url\":\"modules/Types.html#TaskImageInputSpec.__type-4.mediastore_id\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.TaskImageInputSpec.__type\"},{\"id\":67,\"kind\":1024,\"name\":\"weight\",\"url\":\"modules/Types.html#TaskImageInputSpec.__type-4.weight\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.TaskImageInputSpec.__type\"},{\"id\":68,\"kind\":4194304,\"name\":\"TaskInputSpec\",\"url\":\"modules/Types.html#TaskInputSpec\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-namespace\",\"parent\":\"Types\"},{\"id\":69,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/Types.html#TaskInputSpec.__type-5\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"Types.TaskInputSpec\"},{\"id\":70,\"kind\":1024,\"name\":\"style\",\"url\":\"modules/Types.html#TaskInputSpec.__type-5.style\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.TaskInputSpec.__type\"},{\"id\":71,\"kind\":1024,\"name\":\"prompt\",\"url\":\"modules/Types.html#TaskInputSpec.__type-5.prompt-1\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.TaskInputSpec.__type\"},{\"id\":72,\"kind\":1024,\"name\":\"display_freq\",\"url\":\"modules/Types.html#TaskInputSpec.__type-5.display_freq\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.TaskInputSpec.__type\"},{\"id\":73,\"kind\":1024,\"name\":\"input_image\",\"url\":\"modules/Types.html#TaskInputSpec.__type-5.input_image\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.TaskInputSpec.__type\"},{\"id\":74,\"kind\":4194304,\"name\":\"Task\",\"url\":\"modules/Types.html#Task\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-namespace\",\"parent\":\"Types\"},{\"id\":75,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/Types.html#Task.__type-3\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"Types.Task\"},{\"id\":76,\"kind\":1024,\"name\":\"id\",\"url\":\"modules/Types.html#Task.__type-3.id-2\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Task.__type\"},{\"id\":77,\"kind\":1024,\"name\":\"user_id\",\"url\":\"modules/Types.html#Task.__type-3.user_id-1\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Task.__type\"},{\"id\":78,\"kind\":1024,\"name\":\"input_spec\",\"url\":\"modules/Types.html#Task.__type-3.input_spec\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Task.__type\"},{\"id\":79,\"kind\":1024,\"name\":\"state\",\"url\":\"modules/Types.html#Task.__type-3.state\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Task.__type\"},{\"id\":80,\"kind\":1024,\"name\":\"premium\",\"url\":\"modules/Types.html#Task.__type-3.premium\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Task.__type\"},{\"id\":81,\"kind\":1024,\"name\":\"created_at\",\"url\":\"modules/Types.html#Task.__type-3.created_at-2\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Task.__type\"},{\"id\":82,\"kind\":1024,\"name\":\"updated_at\",\"url\":\"modules/Types.html#Task.__type-3.updated_at-2\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Task.__type\"},{\"id\":83,\"kind\":1024,\"name\":\"photo_url_list\",\"url\":\"modules/Types.html#Task.__type-3.photo_url_list\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Task.__type\"},{\"id\":84,\"kind\":1024,\"name\":\"generated_photo_keys\",\"url\":\"modules/Types.html#Task.__type-3.generated_photo_keys\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Task.__type\"},{\"id\":85,\"kind\":1024,\"name\":\"result\",\"url\":\"modules/Types.html#Task.__type-3.result-1\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Task.__type\"},{\"id\":86,\"kind\":4194304,\"name\":\"SavedTask\",\"url\":\"modules/Types.html#SavedTask\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-namespace\",\"parent\":\"Types\"},{\"id\":87,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/Types.html#SavedTask.__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"Types.SavedTask\"},{\"id\":88,\"kind\":1024,\"name\":\"id\",\"url\":\"modules/Types.html#SavedTask.__type.id\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.SavedTask.__type\"},{\"id\":89,\"kind\":1024,\"name\":\"user_id\",\"url\":\"modules/Types.html#SavedTask.__type.user_id\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.SavedTask.__type\"},{\"id\":90,\"kind\":1024,\"name\":\"task_id\",\"url\":\"modules/Types.html#SavedTask.__type.task_id\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.SavedTask.__type\"},{\"id\":91,\"kind\":1024,\"name\":\"image_url\",\"url\":\"modules/Types.html#SavedTask.__type.image_url\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.SavedTask.__type\"},{\"id\":92,\"kind\":1024,\"name\":\"is_public\",\"url\":\"modules/Types.html#SavedTask.__type.is_public\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.SavedTask.__type\"},{\"id\":93,\"kind\":1024,\"name\":\"name\",\"url\":\"modules/Types.html#SavedTask.__type.name\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.SavedTask.__type\"},{\"id\":94,\"kind\":1024,\"name\":\"prompt\",\"url\":\"modules/Types.html#SavedTask.__type.prompt\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.SavedTask.__type\"},{\"id\":95,\"kind\":1024,\"name\":\"prompt_visible\",\"url\":\"modules/Types.html#SavedTask.__type.prompt_visible\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.SavedTask.__type\"},{\"id\":96,\"kind\":1024,\"name\":\"result\",\"url\":\"modules/Types.html#SavedTask.__type.result\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.SavedTask.__type\"},{\"id\":97,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/Types.html#SavedTask.__type.__type-1\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-literal\",\"parent\":\"Types.SavedTask.__type\"},{\"id\":98,\"kind\":1024,\"name\":\"final\",\"url\":\"modules/Types.html#SavedTask.__type.__type-1.final\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.SavedTask.__type.__type\"},{\"id\":99,\"kind\":1024,\"name\":\"tradingcard_url\",\"url\":\"modules/Types.html#SavedTask.__type.tradingcard_url\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.SavedTask.__type\"},{\"id\":100,\"kind\":1024,\"name\":\"created_at\",\"url\":\"modules/Types.html#SavedTask.__type.created_at\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.SavedTask.__type\"},{\"id\":101,\"kind\":1024,\"name\":\"updated_at\",\"url\":\"modules/Types.html#SavedTask.__type.updated_at\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.SavedTask.__type\"},{\"id\":102,\"kind\":1024,\"name\":\"deleted_at\",\"url\":\"modules/Types.html#SavedTask.__type.deleted_at\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.SavedTask.__type\"},{\"id\":103,\"kind\":4194304,\"name\":\"Style\",\"url\":\"modules/Types.html#Style\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-namespace\",\"parent\":\"Types\"},{\"id\":104,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/Types.html#Style.__type-2\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"Types.Style\"},{\"id\":105,\"kind\":1024,\"name\":\"id\",\"url\":\"modules/Types.html#Style.__type-2.id-1\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Style.__type\"},{\"id\":106,\"kind\":1024,\"name\":\"name\",\"url\":\"modules/Types.html#Style.__type-2.name-1\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Style.__type\"},{\"id\":107,\"kind\":1024,\"name\":\"is_visible\",\"url\":\"modules/Types.html#Style.__type-2.is_visible\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Style.__type\"},{\"id\":108,\"kind\":1024,\"name\":\"created_at\",\"url\":\"modules/Types.html#Style.__type-2.created_at-1\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Style.__type\"},{\"id\":109,\"kind\":1024,\"name\":\"updated_at\",\"url\":\"modules/Types.html#Style.__type-2.updated_at-1\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Style.__type\"},{\"id\":110,\"kind\":1024,\"name\":\"deleted_at\",\"url\":\"modules/Types.html#Style.__type-2.deleted_at-1\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Style.__type\"},{\"id\":111,\"kind\":1024,\"name\":\"photo_url\",\"url\":\"modules/Types.html#Style.__type-2.photo_url\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.Style.__type\"},{\"id\":112,\"kind\":4194304,\"name\":\"UploadResource\",\"url\":\"modules/Types.html#UploadResource\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-namespace\",\"parent\":\"Types\"},{\"id\":113,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/Types.html#UploadResource.__type-6\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"Types.UploadResource\"},{\"id\":114,\"kind\":1024,\"name\":\"id\",\"url\":\"modules/Types.html#UploadResource.__type-6.id-3\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.UploadResource.__type\"},{\"id\":115,\"kind\":1024,\"name\":\"media_url\",\"url\":\"modules/Types.html#UploadResource.__type-6.media_url\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.UploadResource.__type\"},{\"id\":116,\"kind\":1024,\"name\":\"created_at\",\"url\":\"modules/Types.html#UploadResource.__type-6.created_at-3\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.UploadResource.__type\"},{\"id\":117,\"kind\":1024,\"name\":\"expiry_at\",\"url\":\"modules/Types.html#UploadResource.__type-6.expiry_at\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"Types.UploadResource.__type\"},{\"id\":118,\"kind\":4194304,\"name\":\"AuthorisationCache\",\"url\":\"modules/Types.html#AuthorisationCache\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-namespace\",\"parent\":\"Types\"},{\"id\":119,\"kind\":4194304,\"name\":\"CreditentialsBody\",\"url\":\"modules/Types.html#CreditentialsBody\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-namespace\",\"parent\":\"Types\"},{\"id\":120,\"kind\":4,\"name\":\"\",\"url\":\"modules/_internal_.html\",\"classes\":\"tsd-kind-namespace\"}],\"index\":{\"version\":\"2.3.9\",\"fields\":[\"name\",\"parent\"],\"fieldVectors\":[[\"name/0\",[0,43.986]],[\"parent/0\",[]],[\"name/1\",[1,43.986]],[\"parent/1\",[]],[\"name/2\",[2,43.986]],[\"parent/2\",[]],[\"name/3\",[3,43.986]],[\"parent/3\",[]],[\"name/4\",[4,43.986]],[\"parent/4\",[]],[\"name/5\",[5,43.986]],[\"parent/5\",[]],[\"name/6\",[6,43.986]],[\"parent/6\",[]],[\"name/7\",[7,43.986]],[\"parent/7\",[]],[\"name/8\",[8,43.986]],[\"parent/8\",[]],[\"name/9\",[9,29.322]],[\"parent/9\",[]],[\"name/10\",[10,43.986]],[\"parent/10\",[9,2.795]],[\"name/11\",[11,43.986]],[\"parent/11\",[9,2.795]],[\"name/12\",[9,29.322]],[\"parent/12\",[9,2.795]],[\"name/13\",[12,38.877]],[\"parent/13\",[13,1.353]],[\"name/14\",[14,43.986]],[\"parent/14\",[13,1.353]],[\"name/15\",[15,43.986]],[\"parent/15\",[13,1.353]],[\"name/16\",[16,43.986]],[\"parent/16\",[13,1.353]],[\"name/17\",[17,43.986]],[\"parent/17\",[13,1.353]],[\"name/18\",[18,43.986]],[\"parent/18\",[13,1.353]],[\"name/19\",[19,43.986]],[\"parent/19\",[13,1.353]],[\"name/20\",[20,43.986]],[\"parent/20\",[13,1.353]],[\"name/21\",[21,43.986]],[\"parent/21\",[13,1.353]],[\"name/22\",[22,43.986]],[\"parent/22\",[13,1.353]],[\"name/23\",[23,43.986]],[\"parent/23\",[13,1.353]],[\"name/24\",[24,43.986]],[\"parent/24\",[13,1.353]],[\"name/25\",[25,43.986]],[\"parent/25\",[13,1.353]],[\"name/26\",[26,43.986]],[\"parent/26\",[13,1.353]],[\"name/27\",[27,43.986]],[\"parent/27\",[13,1.353]],[\"name/28\",[28,43.986]],[\"parent/28\",[13,1.353]],[\"name/29\",[29,43.986]],[\"parent/29\",[13,1.353]],[\"name/30\",[30,43.986]],[\"parent/30\",[13,1.353]],[\"name/31\",[31,43.986]],[\"parent/31\",[13,1.353]],[\"name/32\",[32,43.986]],[\"parent/32\",[13,1.353]],[\"name/33\",[33,43.986]],[\"parent/33\",[13,1.353]],[\"name/34\",[34,43.986]],[\"parent/34\",[13,1.353]],[\"name/35\",[35,43.986]],[\"parent/35\",[13,1.353]],[\"name/36\",[36,43.986]],[\"parent/36\",[13,1.353]],[\"name/37\",[37,43.986]],[\"parent/37\",[13,1.353]],[\"name/38\",[38,43.986]],[\"parent/38\",[13,1.353]],[\"name/39\",[39,43.986]],[\"parent/39\",[13,1.353]],[\"name/40\",[40,43.986]],[\"parent/40\",[13,1.353]],[\"name/41\",[41,43.986]],[\"parent/41\",[13,1.353]],[\"name/42\",[42,38.877]],[\"parent/42\",[9,2.795]],[\"name/43\",[43,32.999]],[\"parent/43\",[]],[\"name/44\",[43,32.999]],[\"parent/44\",[43,3.145]],[\"name/45\",[12,38.877]],[\"parent/45\",[44,1.851]],[\"name/46\",[45,43.986]],[\"parent/46\",[44,1.851]],[\"name/47\",[46,43.986]],[\"parent/47\",[44,1.851]],[\"name/48\",[47,43.986]],[\"parent/48\",[44,1.851]],[\"name/49\",[48,43.986]],[\"parent/49\",[44,1.851]],[\"name/50\",[49,43.986]],[\"parent/50\",[44,1.851]],[\"name/51\",[50,43.986]],[\"parent/51\",[44,1.851]],[\"name/52\",[51,43.986]],[\"parent/52\",[44,1.851]],[\"name/53\",[52,43.986]],[\"parent/53\",[44,1.851]],[\"name/54\",[53,43.986]],[\"parent/54\",[44,1.851]],[\"name/55\",[54,43.986]],[\"parent/55\",[44,1.851]],[\"name/56\",[55,43.986]],[\"parent/56\",[44,1.851]],[\"name/57\",[56,43.986]],[\"parent/57\",[44,1.851]],[\"name/58\",[57,43.986]],[\"parent/58\",[44,1.851]],[\"name/59\",[58,43.986]],[\"parent/59\",[44,1.851]],[\"name/60\",[59,43.986]],[\"parent/60\",[44,1.851]],[\"name/61\",[60,43.986]],[\"parent/61\",[44,1.851]],[\"name/62\",[42,38.877]],[\"parent/62\",[43,3.145]],[\"name/63\",[61,25.527]],[\"parent/63\",[]],[\"name/64\",[62,43.986]],[\"parent/64\",[61,2.433]],[\"name/65\",[63,27.891]],[\"parent/65\",[64,4.192]],[\"name/66\",[65,43.986]],[\"parent/66\",[66,3.705]],[\"name/67\",[67,43.986]],[\"parent/67\",[66,3.705]],[\"name/68\",[68,43.986]],[\"parent/68\",[61,2.433]],[\"name/69\",[63,27.891]],[\"parent/69\",[69,4.192]],[\"name/70\",[70,38.877]],[\"parent/70\",[71,3.145]],[\"name/71\",[72,38.877]],[\"parent/71\",[71,3.145]],[\"name/72\",[73,43.986]],[\"parent/72\",[71,3.145]],[\"name/73\",[74,43.986]],[\"parent/73\",[71,3.145]],[\"name/74\",[75,43.986]],[\"parent/74\",[61,2.433]],[\"name/75\",[63,27.891]],[\"parent/75\",[76,4.192]],[\"name/76\",[77,32.999]],[\"parent/76\",[78,2.338]],[\"name/77\",[79,38.877]],[\"parent/77\",[78,2.338]],[\"name/78\",[80,43.986]],[\"parent/78\",[78,2.338]],[\"name/79\",[81,43.986]],[\"parent/79\",[78,2.338]],[\"name/80\",[82,43.986]],[\"parent/80\",[78,2.338]],[\"name/81\",[83,32.999]],[\"parent/81\",[78,2.338]],[\"name/82\",[84,35.513]],[\"parent/82\",[78,2.338]],[\"name/83\",[85,43.986]],[\"parent/83\",[78,2.338]],[\"name/84\",[86,43.986]],[\"parent/84\",[78,2.338]],[\"name/85\",[87,38.877]],[\"parent/85\",[78,2.338]],[\"name/86\",[88,43.986]],[\"parent/86\",[61,2.433]],[\"name/87\",[63,27.891]],[\"parent/87\",[89,4.192]],[\"name/88\",[77,32.999]],[\"parent/88\",[90,2.03]],[\"name/89\",[79,38.877]],[\"parent/89\",[90,2.03]],[\"name/90\",[91,43.986]],[\"parent/90\",[90,2.03]],[\"name/91\",[92,43.986]],[\"parent/91\",[90,2.03]],[\"name/92\",[93,43.986]],[\"parent/92\",[90,2.03]],[\"name/93\",[94,38.877]],[\"parent/93\",[90,2.03]],[\"name/94\",[72,38.877]],[\"parent/94\",[90,2.03]],[\"name/95\",[95,43.986]],[\"parent/95\",[90,2.03]],[\"name/96\",[87,38.877]],[\"parent/96\",[90,2.03]],[\"name/97\",[63,27.891]],[\"parent/97\",[90,2.03]],[\"name/98\",[96,43.986]],[\"parent/98\",[97,4.192]],[\"name/99\",[98,43.986]],[\"parent/99\",[90,2.03]],[\"name/100\",[83,32.999]],[\"parent/100\",[90,2.03]],[\"name/101\",[84,35.513]],[\"parent/101\",[90,2.03]],[\"name/102\",[99,38.877]],[\"parent/102\",[90,2.03]],[\"name/103\",[70,38.877]],[\"parent/103\",[61,2.433]],[\"name/104\",[63,27.891]],[\"parent/104\",[100,4.192]],[\"name/105\",[77,32.999]],[\"parent/105\",[101,2.658]],[\"name/106\",[94,38.877]],[\"parent/106\",[101,2.658]],[\"name/107\",[102,43.986]],[\"parent/107\",[101,2.658]],[\"name/108\",[83,32.999]],[\"parent/108\",[101,2.658]],[\"name/109\",[84,35.513]],[\"parent/109\",[101,2.658]],[\"name/110\",[99,38.877]],[\"parent/110\",[101,2.658]],[\"name/111\",[103,43.986]],[\"parent/111\",[101,2.658]],[\"name/112\",[104,43.986]],[\"parent/112\",[61,2.433]],[\"name/113\",[63,27.891]],[\"parent/113\",[105,4.192]],[\"name/114\",[77,32.999]],[\"parent/114\",[106,3.145]],[\"name/115\",[107,43.986]],[\"parent/115\",[106,3.145]],[\"name/116\",[83,32.999]],[\"parent/116\",[106,3.145]],[\"name/117\",[108,43.986]],[\"parent/117\",[106,3.145]],[\"name/118\",[109,43.986]],[\"parent/118\",[61,2.433]],[\"name/119\",[110,43.986]],[\"parent/119\",[61,2.433]],[\"name/120\",[111,43.986]],[\"parent/120\",[]]],\"invertedIndex\":[[\"__type\",{\"_index\":63,\"name\":{\"65\":{},\"69\":{},\"75\":{},\"87\":{},\"97\":{},\"104\":{},\"113\":{}},\"parent\":{}}],[\"apigallerysuffix\",{\"_index\":19,\"name\":{\"19\":{}},\"parent\":{}}],[\"apishopsuffix\",{\"_index\":17,\"name\":{\"17\":{}},\"parent\":{}}],[\"apistylesuffix\",{\"_index\":18,\"name\":{\"18\":{}},\"parent\":{}}],[\"apitasksuffix\",{\"_index\":16,\"name\":{\"16\":{}},\"parent\":{}}],[\"apitaskurl\",{\"_index\":15,\"name\":{\"15\":{}},\"parent\":{}}],[\"authentifier\",{\"_index\":14,\"name\":{\"14\":{}},\"parent\":{}}],[\"authorisationcache\",{\"_index\":109,\"name\":{\"118\":{}},\"parent\":{}}],[\"authorisationdatacache\",{\"_index\":48,\"name\":{\"49\":{}},\"parent\":{}}],[\"buildapigalleryurl\",{\"_index\":27,\"name\":{\"27\":{}},\"parent\":{}}],[\"buildapistyleurl\",{\"_index\":25,\"name\":{\"25\":{}},\"parent\":{}}],[\"buildapitaskshopurl\",{\"_index\":26,\"name\":{\"26\":{}},\"parent\":{}}],[\"buildapitaskurl\",{\"_index\":22,\"name\":{\"22\":{}},\"parent\":{}}],[\"builddefaultinstance\",{\"_index\":8,\"name\":{\"8\":{}},\"parent\":{}}],[\"buildhttprequestagent\",{\"_index\":29,\"name\":{\"29\":{}},\"parent\":{}}],[\"buildrawapigalleryurl\",{\"_index\":28,\"name\":{\"28\":{}},\"parent\":{}}],[\"buildrawapitaskurl\",{\"_index\":23,\"name\":{\"23\":{}},\"parent\":{}}],[\"buildsigninuserurl\",{\"_index\":54,\"name\":{\"55\":{}},\"parent\":{}}],[\"buildsignupuserurl\",{\"_index\":52,\"name\":{\"53\":{}},\"parent\":{}}],[\"buildtokenrefreshurl\",{\"_index\":53,\"name\":{\"54\":{}},\"parent\":{}}],[\"builduploadurl\",{\"_index\":24,\"name\":{\"24\":{}},\"parent\":{}}],[\"configuretask\",{\"_index\":31,\"name\":{\"31\":{}},\"parent\":{}}],[\"constructor\",{\"_index\":12,\"name\":{\"13\":{},\"45\":{}},\"parent\":{}}],[\"created_at\",{\"_index\":83,\"name\":{\"81\":{},\"100\":{},\"108\":{},\"116\":{}},\"parent\":{}}],[\"createtask\",{\"_index\":32,\"name\":{\"32\":{}},\"parent\":{}}],[\"creditentialsbody\",{\"_index\":110,\"name\":{\"119\":{}},\"parent\":{}}],[\"default\",{\"_index\":42,\"name\":{\"42\":{},\"62\":{}},\"parent\":{}}],[\"default_authentification_key\",{\"_index\":7,\"name\":{\"7\":{}},\"parent\":{}}],[\"default_check_freq\",{\"_index\":11,\"name\":{\"11\":{}},\"parent\":{}}],[\"default_display_freq\",{\"_index\":10,\"name\":{\"10\":{}},\"parent\":{}}],[\"default_gallery_api_suffix\",{\"_index\":5,\"name\":{\"5\":{}},\"parent\":{}}],[\"default_origin_url\",{\"_index\":0,\"name\":{\"0\":{}},\"parent\":{}}],[\"default_shop_api_suffix\",{\"_index\":3,\"name\":{\"3\":{}},\"parent\":{}}],[\"default_style_api_suffix\",{\"_index\":4,\"name\":{\"4\":{}},\"parent\":{}}],[\"default_task_api_suffix\",{\"_index\":2,\"name\":{\"2\":{}},\"parent\":{}}],[\"default_task_api_url\",{\"_index\":1,\"name\":{\"1\":{}},\"parent\":{}}],[\"default_upload_url\",{\"_index\":6,\"name\":{\"6\":{}},\"parent\":{}}],[\"deleted_at\",{\"_index\":99,\"name\":{\"102\":{},\"110\":{}},\"parent\":{}}],[\"deletegallerytask\",{\"_index\":41,\"name\":{\"41\":{}},\"parent\":{}}],[\"display_freq\",{\"_index\":73,\"name\":{\"72\":{}},\"parent\":{}}],[\"email\",{\"_index\":50,\"name\":{\"51\":{}},\"parent\":{}}],[\"ensurecachevalidity\",{\"_index\":59,\"name\":{\"60\":{}},\"parent\":{}}],[\"expiry_at\",{\"_index\":108,\"name\":{\"117\":{}},\"parent\":{}}],[\"fetchgallerytask\",{\"_index\":39,\"name\":{\"39\":{}},\"parent\":{}}],[\"fetchgallerytasks\",{\"_index\":40,\"name\":{\"40\":{}},\"parent\":{}}],[\"fetchstyles\",{\"_index\":36,\"name\":{\"36\":{}},\"parent\":{}}],[\"fetchtaskinfos\",{\"_index\":33,\"name\":{\"33\":{}},\"parent\":{}}],[\"fetchtaskshopurl\",{\"_index\":37,\"name\":{\"37\":{}},\"parent\":{}}],[\"final\",{\"_index\":96,\"name\":{\"98\":{}},\"parent\":{}}],[\"generated_photo_keys\",{\"_index\":86,\"name\":{\"84\":{}},\"parent\":{}}],[\"generatepicture\",{\"_index\":34,\"name\":{\"34\":{}},\"parent\":{}}],[\"googleauthentifier\",{\"_index\":43,\"name\":{\"43\":{},\"44\":{}},\"parent\":{\"44\":{},\"62\":{}}}],[\"googleauthentifier.googleauthentifier\",{\"_index\":44,\"name\":{},\"parent\":{\"45\":{},\"46\":{},\"47\":{},\"48\":{},\"49\":{},\"50\":{},\"51\":{},\"52\":{},\"53\":{},\"54\":{},\"55\":{},\"56\":{},\"57\":{},\"58\":{},\"59\":{},\"60\":{},\"61\":{}}}],[\"id\",{\"_index\":77,\"name\":{\"76\":{},\"88\":{},\"105\":{},\"114\":{}},\"parent\":{}}],[\"image_url\",{\"_index\":92,\"name\":{\"91\":{}},\"parent\":{}}],[\"inittask\",{\"_index\":30,\"name\":{\"30\":{}},\"parent\":{}}],[\"input_image\",{\"_index\":74,\"name\":{\"73\":{}},\"parent\":{}}],[\"input_spec\",{\"_index\":80,\"name\":{\"78\":{}},\"parent\":{}}],[\"internal\",{\"_index\":111,\"name\":{\"120\":{}},\"parent\":{}}],[\"is_public\",{\"_index\":93,\"name\":{\"92\":{}},\"parent\":{}}],[\"is_visible\",{\"_index\":102,\"name\":{\"107\":{}},\"parent\":{}}],[\"iscachevalid\",{\"_index\":60,\"name\":{\"61\":{}},\"parent\":{}}],[\"media_url\",{\"_index\":107,\"name\":{\"115\":{}},\"parent\":{}}],[\"mediastore_id\",{\"_index\":65,\"name\":{\"66\":{}},\"parent\":{}}],[\"name\",{\"_index\":94,\"name\":{\"93\":{},\"106\":{}},\"parent\":{}}],[\"obtainauthorisationtoken\",{\"_index\":57,\"name\":{\"58\":{}},\"parent\":{}}],[\"originurl\",{\"_index\":20,\"name\":{\"20\":{}},\"parent\":{}}],[\"password\",{\"_index\":51,\"name\":{\"52\":{}},\"parent\":{}}],[\"photo_url\",{\"_index\":103,\"name\":{\"111\":{}},\"parent\":{}}],[\"photo_url_list\",{\"_index\":85,\"name\":{\"83\":{}},\"parent\":{}}],[\"premium\",{\"_index\":82,\"name\":{\"80\":{}},\"parent\":{}}],[\"prompt\",{\"_index\":72,\"name\":{\"71\":{},\"94\":{}},\"parent\":{}}],[\"prompt_visible\",{\"_index\":95,\"name\":{\"95\":{}},\"parent\":{}}],[\"refreshauthorisationtoken\",{\"_index\":58,\"name\":{\"59\":{}},\"parent\":{}}],[\"result\",{\"_index\":87,\"name\":{\"85\":{},\"96\":{}},\"parent\":{}}],[\"savedtask\",{\"_index\":88,\"name\":{\"86\":{}},\"parent\":{}}],[\"savetasktogallery\",{\"_index\":38,\"name\":{\"38\":{}},\"parent\":{}}],[\"secret_key\",{\"_index\":49,\"name\":{\"50\":{}},\"parent\":{}}],[\"signin\",{\"_index\":56,\"name\":{\"57\":{}},\"parent\":{}}],[\"signinuserurltemplate\",{\"_index\":46,\"name\":{\"47\":{}},\"parent\":{}}],[\"signup\",{\"_index\":55,\"name\":{\"56\":{}},\"parent\":{}}],[\"signupuserurltemplate\",{\"_index\":45,\"name\":{\"46\":{}},\"parent\":{}}],[\"state\",{\"_index\":81,\"name\":{\"79\":{}},\"parent\":{}}],[\"style\",{\"_index\":70,\"name\":{\"70\":{},\"103\":{}},\"parent\":{}}],[\"task\",{\"_index\":75,\"name\":{\"74\":{}},\"parent\":{}}],[\"task_id\",{\"_index\":91,\"name\":{\"90\":{}},\"parent\":{}}],[\"taskimageinputspec\",{\"_index\":62,\"name\":{\"64\":{}},\"parent\":{}}],[\"taskinputspec\",{\"_index\":68,\"name\":{\"68\":{}},\"parent\":{}}],[\"tokenrefreshurltemplate\",{\"_index\":47,\"name\":{\"48\":{}},\"parent\":{}}],[\"tradingcard_url\",{\"_index\":98,\"name\":{\"99\":{}},\"parent\":{}}],[\"types\",{\"_index\":61,\"name\":{\"63\":{}},\"parent\":{\"64\":{},\"68\":{},\"74\":{},\"86\":{},\"103\":{},\"112\":{},\"118\":{},\"119\":{}}}],[\"types.savedtask\",{\"_index\":89,\"name\":{},\"parent\":{\"87\":{}}}],[\"types.savedtask.__type\",{\"_index\":90,\"name\":{},\"parent\":{\"88\":{},\"89\":{},\"90\":{},\"91\":{},\"92\":{},\"93\":{},\"94\":{},\"95\":{},\"96\":{},\"97\":{},\"99\":{},\"100\":{},\"101\":{},\"102\":{}}}],[\"types.savedtask.__type.__type\",{\"_index\":97,\"name\":{},\"parent\":{\"98\":{}}}],[\"types.style\",{\"_index\":100,\"name\":{},\"parent\":{\"104\":{}}}],[\"types.style.__type\",{\"_index\":101,\"name\":{},\"parent\":{\"105\":{},\"106\":{},\"107\":{},\"108\":{},\"109\":{},\"110\":{},\"111\":{}}}],[\"types.task\",{\"_index\":76,\"name\":{},\"parent\":{\"75\":{}}}],[\"types.task.__type\",{\"_index\":78,\"name\":{},\"parent\":{\"76\":{},\"77\":{},\"78\":{},\"79\":{},\"80\":{},\"81\":{},\"82\":{},\"83\":{},\"84\":{},\"85\":{}}}],[\"types.taskimageinputspec\",{\"_index\":64,\"name\":{},\"parent\":{\"65\":{}}}],[\"types.taskimageinputspec.__type\",{\"_index\":66,\"name\":{},\"parent\":{\"66\":{},\"67\":{}}}],[\"types.taskinputspec\",{\"_index\":69,\"name\":{},\"parent\":{\"69\":{}}}],[\"types.taskinputspec.__type\",{\"_index\":71,\"name\":{},\"parent\":{\"70\":{},\"71\":{},\"72\":{},\"73\":{}}}],[\"types.uploadresource\",{\"_index\":105,\"name\":{},\"parent\":{\"113\":{}}}],[\"types.uploadresource.__type\",{\"_index\":106,\"name\":{},\"parent\":{\"114\":{},\"115\":{},\"116\":{},\"117\":{}}}],[\"updated_at\",{\"_index\":84,\"name\":{\"82\":{},\"101\":{},\"109\":{}},\"parent\":{}}],[\"uploadimage\",{\"_index\":35,\"name\":{\"35\":{}},\"parent\":{}}],[\"uploadresource\",{\"_index\":104,\"name\":{\"112\":{}},\"parent\":{}}],[\"uploadurl\",{\"_index\":21,\"name\":{\"21\":{}},\"parent\":{}}],[\"user_id\",{\"_index\":79,\"name\":{\"77\":{},\"89\":{}},\"parent\":{}}],[\"weight\",{\"_index\":67,\"name\":{\"67\":{}},\"parent\":{}}],[\"wombodream\",{\"_index\":9,\"name\":{\"9\":{},\"12\":{}},\"parent\":{\"10\":{},\"11\":{},\"12\":{},\"42\":{}}}],[\"wombodream.wombodream\",{\"_index\":13,\"name\":{},\"parent\":{\"13\":{},\"14\":{},\"15\":{},\"16\":{},\"17\":{},\"18\":{},\"19\":{},\"20\":{},\"21\":{},\"22\":{},\"23\":{},\"24\":{},\"25\":{},\"26\":{},\"27\":{},\"28\":{},\"29\":{},\"30\":{},\"31\":{},\"32\":{},\"33\":{},\"34\":{},\"35\":{},\"36\":{},\"37\":{},\"38\":{},\"39\":{},\"40\":{},\"41\":{}}}]],\"pipeline\":[]}}"); \ No newline at end of file diff --git a/docs/classes/GoogleAuthentifier.GoogleAuthentifier-1.html b/docs/classes/GoogleAuthentifier.GoogleAuthentifier-1.html index 931ce1e..2e70b4d 100644 --- a/docs/classes/GoogleAuthentifier.GoogleAuthentifier-1.html +++ b/docs/classes/GoogleAuthentifier.GoogleAuthentifier-1.html @@ -1,25 +1,25 @@ -GoogleAuthentifier | wombo-dream-api
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • GoogleAuthentifier

Index

Constructors

  • new GoogleAuthentifier(secret_key: string, email?: string, password?: string): GoogleAuthentifier

Properties

authorisationDataCache: AuthorisationCache
email?: string
password?: string
secret_key: string
signInUserUrlTemplate: string = 'https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyPassword?key=%(key)s'
signUpUserUrlTemplate: string = 'https://www.googleapis.com/identitytoolkit/v3/relyingparty/signupNewUser?key=%(key)s'
tokenRefreshUrlTemplate: string = 'https://securetoken.googleapis.com/v1/token?key=%(key)s'

Methods

  • buildSignInUserUrl(): string
  • buildSignUpUserUrl(): string
  • buildTokenRefreshUrl(): string
  • createTask(prompt: string, style: number, input_image?: TaskImageInputSpec, display_freq?: number, premium?: boolean): Promise<Task>

Returns Promise<Task>

  • createTask(prompt: string, style: number, input_image?: TaskImageInputSpec, display_freq?: number, premium?: boolean): Promise<Task>
  • Create and configure an existing Task

    example
    dreamInstance.createTask("kitten", 12).then(console.log);
     
    @@ -18,15 +19,38 @@

    use an image as input

  • display_freq: number = DEFAULT_DISPLAY_FREQ

    how often the task makes intermediate renders

    -
  • premium: boolean = false
  • Returns Promise<Task>

    Returns Promise<Task>

    • deleteGalleryTask(taskGalleryId: number): Promise<void>
    • +

      Fetch a gallery saved task

      +
      warning

      task_id != task_gallery_id

      +
      warning

      you must be logged as a user to use it

      +
      example
      const taskGalleryId:number;
      dreamInstance.deleteGalleryTask(taskGalleryId); +
      +

      Parameters

      • taskGalleryId: number

      Returns Promise<void>

    • fetchGalleryTask(taskGalleryId: number): Promise<SavedTask>
    • +

      Fetch a gallery saved task

      +
      warning

      task_id != task_gallery_id

      +
      warning

      you must be logged as a user to use it

      +
      example
      const taskGalleryId:number;
      dreamInstance.fetchGalleryTask(taskGalleryId).then(console.log); +
      +

      Parameters

      • taskGalleryId: number

      Returns Promise<SavedTask>

    • +

      Fetch gallery saved tasks

      +
      warning

      you must be logged as a user to use it

      +
      example
      dreamInstance.fetchGalleryTasks().then(console.log);
      +
      +

      Returns Promise<SavedTask[]>

    • fetchTaskInfos(taskId: string): Promise<Task>
    • fetchTaskInfos(taskId: string): Promise<Task>
    • Fetch the current infos of a Task

      -
      example
      const taskId:string;
      dreamInstance.fetchTaskInfos(taskId).then(console.log); +
      warning

      must be done with the same account as the task was created

      +
      example
      const taskId:string;
      dreamInstance.fetchTaskInfos(taskId).then(console.log);
      -

    Parameters

    • taskId: string

    Returns Promise<Task>

    • generatePicture(prompt: string, style: number, progressCallback?: (task: Task) => void, input_image?: TaskImageInputSpec, checkFrequency?: number, display_freq?: number, premium?: boolean): Promise<Task>
    • fetchTaskShopUrl(taskId: string): Promise<String>
    • +

      Fetch shop url from task id

      +
      warning

      must be done with the same account as the task was created

      +
      example
      const taskId:string;
      dreamInstance.fetchTaskShopUrl(taskId).then(console.log); +
      +

      Parameters

      • taskId: string

      Returns Promise<String>

    • generatePicture(prompt: string, style: number, progressCallback?: (task: Task) => void, input_image?: TaskImageInputSpec, checkFrequency?: number, display_freq?: number, premium?: boolean): Promise<Task>
    • Create a new task and generate a picture

      example
      dreamInstance.generatePicture('kitten', 12, (task) => {
      console.log(task.state, 'stage', task.photo_url_list.length);
      })
      .then((task) => console.log(task?.result.final))
      .catch(console.error);
      @@ -36,13 +60,20 @@

      use an image as input

  • checkFrequency: number = DEFAULT_CHECK_FREQ
  • display_freq: number = DEFAULT_DISPLAY_FREQ

    how often the task makes intermediate renders

    -
  • premium: boolean = false
  • Returns Promise<Task>

    • initTask(premium?: boolean): Promise<Task>

    Returns Promise<Task>

    • initTask(premium?: boolean): Promise<Task>
    • Initialize new Task

      The Task wont start until it is configured

      example
      dreamInstance.initTask().then(console.log);
       
      -

      Parameters

      • premium: boolean = false

      Returns Promise<Task>

    • -

      Upload an image for later use (MUST be a jpg/jpeg)

      -
      example
      dreamInstance.uploadImage(fs.readFileSync('./image.jpg')).then(console.log);
      +

      Parameters

      • premium: boolean = false

      Returns Promise<Task>

    • saveTaskToGallery(taskId: string, name?: string, isPublic?: boolean, isPromptVisible?: boolean): Promise<SavedTask>
    • +

      Save task to the gallery

      +
      warning

      must be done with the same account as the task was created

      +
      warning

      you must be logged as a user to use it

      +
      example
      const taskId:string;
      dreamInstance.saveTaskToGallery(taskId, "wonderful kitty").then(console.log); +
      +

      Parameters

      • taskId: string
      • name: string = ''
      • isPublic: boolean = false
      • isPromptVisible: boolean = true

      Returns Promise<SavedTask>

    • +

      Upload an image for later use

      +
      warning

      jpg/jpeg are the only supported image formats

      +
      example
      dreamInstance.uploadImage(fs.readFileSync('./image.jpg')).then(console.log);
       
      -

      Parameters

      Returns Promise<UploadResource>

    Legend

    • Constructor
    • Property
    • Method

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +

    Parameters

    Returns Promise<UploadResource>

    Legend

    • Constructor
    • Property
    • Method

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index f78abce..328e5ef 100644 --- a/docs/index.html +++ b/docs/index.html @@ -11,6 +11,16 @@

    Changelog

    + +

    0.1.5

    +
    +
      +
    • Can now fetch tasks shop url
    • +
    • Can now save, fetch, fetch all and delete tasks in the gallery
    • +
    +
    +
    +

    0.1.4-fix

    @@ -29,48 +39,6 @@

    0.1.4

  • Updating Documentation
  • -
    - - -

    0.1.3

    -
    -
      -
    • Adding image upload
    • -
    • Adding image based generation
    • -
    • Updating Documentation
    • -
    -
    -
    - - -

    0.1.2

    -
    -
      -
    • Adding Documentation
    • -
    • Adding login
    • -
    • Improving authentification token refresh
    • -
    • Removing abstract Authentifier
    • -
    • Massive refactoring (can break code)
    • -
    -
    -
    - - -

    0.1.1-fix

    -
    -
      -
    • Adding the possibility to fetch styles
    • -
    -
    -
    - - -

    0.1.0

    -
    -
      -
    • Initial release
    • -
    -

    Installation

    @@ -100,7 +68,7 @@

    Generate a picture

    Generate a picture based on an image

    -
    const WomboDreamApi = require('wombo-dream-api');

    const instance = WomboDreamApi.buildDefaultInstance();

    instance
    .uploadImage(fs.readFileSync('./image.jpg'))
    .then((uploadedImageInfo) => {
    instance
    .generatePicture(
    'kitten',
    10,
    (task) => {
    console.log(task.state, 'stage', task.photo_url_list.length);
    },
    {
    mediastore_id: uploadedImageInfo.id,
    weight: 'HIGH',
    }
    )
    .then((task) => console.log(task?.result.final))
    .catch(console.error);
    })
    .catch(console.error); +
    const WomboDreamApi = require('wombo-dream-api');
    const fs = require('fs');

    const instance = WomboDreamApi.buildDefaultInstance();

    instance
    .uploadImage(fs.readFileSync('./image.jpg'))
    .then((uploadedImageInfo) => {
    instance
    .generatePicture(
    'kitten',
    10,
    (task) => {
    console.log(task.state, 'stage', task.photo_url_list.length);
    },
    {
    mediastore_id: uploadedImageInfo.id,
    weight: 'HIGH',
    }
    )
    .then((task) => console.log(task?.result.final))
    .catch(console.error);
    })
    .catch(console.error);
    @@ -116,4 +84,4 @@

    Fetch styles

    License

    MIT

    -

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/interfaces/_internal_.AxiosPromise.html b/docs/interfaces/_internal_.AxiosPromise.html index 6e6c7ea..a12d385 100644 --- a/docs/interfaces/_internal_.AxiosPromise.html +++ b/docs/interfaces/_internal_.AxiosPromise.html @@ -1,4 +1,4 @@ -AxiosPromise | wombo-dream-api
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface AxiosPromise<T>

    Type parameters

    • T = any

    Hierarchy

    Index

    Properties

    [toStringTag]: string

    Methods

    • catch<TResult>(onrejected?: null | ((reason: any) => TResult | PromiseLike<TResult>)): Promise<AxiosResponse<T, any> | TResult>
    • +AxiosPromise | wombo-dream-api
      Options
      All
      • Public
      • Public/Protected
      • All
      Menu

      Interface AxiosPromise<T>

      Type parameters

      • T = any

      Hierarchy

      Index

      Properties

      [toStringTag]: string

      Methods

      • catch<TResult>(onrejected?: null | ((reason: any) => TResult | PromiseLike<TResult>)): Promise<AxiosResponse<T, any> | TResult>
      • Attaches a callback for only the rejection of the Promise.

        Type parameters

        • TResult = never

        Parameters

        • Optional onrejected: null | ((reason: any) => TResult | PromiseLike<TResult>)

          The callback to execute when the Promise is rejected.

          diff --git a/docs/interfaces/_internal_.Buffer.html b/docs/interfaces/_internal_.Buffer.html index c90b8b3..86d7d71 100644 --- a/docs/interfaces/_internal_.Buffer.html +++ b/docs/interfaces/_internal_.Buffer.html @@ -1,6 +1,6 @@ Buffer | wombo-dream-api
          Options
          All
          • Public
          • Public/Protected
          • All
          Menu

          Hierarchy

          • Uint8Array
            • Buffer

          Index

          Properties

          BYTES_PER_ELEMENT: number

          The size in bytes of each element in the array.

          -
          [toStringTag]: "Uint8Array"
          +
          [toStringTag]: "Uint8Array"

          The ArrayBuffer instance referenced by the array.

          byteLength: number

          The length in bytes of the array.

          @@ -8,7 +8,7 @@

          The offset in bytes of the array.

          length: number

          The length of the array.

          -

          Methods

          • Returns IterableIterator<number>

          • at(index: number): undefined | number
          • +

          Methods

          • Returns IterableIterator<number>

          • at(index: number): undefined | number
          • Takes an integer value and returns the item at that index, allowing for positive and negative integers. Negative integers count back from the last item in the array.

            diff --git a/docs/modules.html b/docs/modules.html index 4f4bc14..bd69600 100644 --- a/docs/modules.html +++ b/docs/modules.html @@ -1 +1 @@ -wombo-dream-api
            Options
            All
            • Public
            • Public/Protected
            • All
            Menu

            wombo-dream-api

            Index

            Variables

            DEFAULT_AUTHENTIFICATION_KEY: "AIzaSyDCvp5MTJLUdtBYEKYWXJrlLzu1zuKM6Xw" = 'AIzaSyDCvp5MTJLUdtBYEKYWXJrlLzu1zuKM6Xw'
            DEFAULT_ORIGIN_URL: "https://app.wombo.art" = 'https://app.wombo.art'
            DEFAULT_STYLE_API_URL: "https://paint.api.wombo.ai/api/styles/" = 'https://paint.api.wombo.ai/api/styles/'
            DEFAULT_TASK_API_URL: "https://paint.api.wombo.ai/api/tasks/%(taskId)s" = 'https://paint.api.wombo.ai/api/tasks/%(taskId)s'
            DEFAULT_UPLOAD_URL: "https://mediastore.api.wombo.ai/io/" = 'https://mediastore.api.wombo.ai/io/'

            Functions

            • buildDefaultInstance(email?: string, password?: string): WomboDream

            Settings

            Theme

            Generated using TypeDoc

            \ No newline at end of file +wombo-dream-api
            Options
            All
            • Public
            • Public/Protected
            • All
            Menu

            wombo-dream-api

            Index

            Variables

            DEFAULT_AUTHENTIFICATION_KEY: "AIzaSyDCvp5MTJLUdtBYEKYWXJrlLzu1zuKM6Xw" = 'AIzaSyDCvp5MTJLUdtBYEKYWXJrlLzu1zuKM6Xw'
            DEFAULT_GALLERY_API_SUFFIX: "gallery/%(taskId)s" = 'gallery/%(taskId)s'
            DEFAULT_ORIGIN_URL: "https://app.wombo.art" = 'https://app.wombo.art'
            DEFAULT_SHOP_API_SUFFIX: "shop/%(taskId)s" = 'shop/%(taskId)s'
            DEFAULT_STYLE_API_SUFFIX: "styles/" = 'styles/'
            DEFAULT_TASK_API_SUFFIX: "tasks/%(taskId)s" = 'tasks/%(taskId)s'
            DEFAULT_TASK_API_URL: "https://paint.api.wombo.ai/api/%(suffix)s" = 'https://paint.api.wombo.ai/api/%(suffix)s'
            DEFAULT_UPLOAD_URL: "https://mediastore.api.wombo.ai/io/" = 'https://mediastore.api.wombo.ai/io/'

            Functions

            • buildDefaultInstance(email?: string, password?: string): WomboDream

            Settings

            Theme

            Generated using TypeDoc

            \ No newline at end of file diff --git a/docs/modules/Types.html b/docs/modules/Types.html index afa7b56..edd106c 100644 --- a/docs/modules/Types.html +++ b/docs/modules/Types.html @@ -1 +1 @@ -Types | wombo-dream-api
            Options
            All
            • Public
            • Public/Protected
            • All
            Menu

            Namespace Types

            Index

            Type aliases

            AuthorisationCache: { expirationDate: Date; refreshToken: string; token: string } | undefined
            CreditentialsBody: { email: string; password: string } | any
            Style: { created_at: string; deleted_at: string | null; id: number; is_visible: boolean; name: string; photo_url: string; updated_at: string }

            Type declaration

            • created_at: string
            • deleted_at: string | null
            • id: number
            • is_visible: boolean
            • name: string
            • photo_url: string
            • updated_at: string
            Task: { created_at: string; generated_photo_keys: string[]; id: string; input_spec: TaskInputSpec | null; photo_url_list: string[]; premium: boolean; result: { final: string } | null; state: "input" | "generating" | "completed" | "failed"; updated_at: string; user_id: string }

            Type declaration

            • created_at: string
            • generated_photo_keys: string[]
            • id: string
            • input_spec: TaskInputSpec | null
            • photo_url_list: string[]
            • premium: boolean
            • result: { final: string } | null
            • state: "input" | "generating" | "completed" | "failed"
            • updated_at: string
            • user_id: string
            TaskImageInputSpec: { mediastore_id: string; weight: "LOW" | "MEDIUM" | "HIGH" }

            Type declaration

            • mediastore_id: string
            • weight: "LOW" | "MEDIUM" | "HIGH"
            TaskInputSpec: { display_freq?: number; input_image?: TaskImageInputSpec; prompt: string; style: number }

            Type declaration

            • Optional display_freq?: number
            • Optional input_image?: TaskImageInputSpec
            • prompt: string
            • style: number
            UploadResource: { created_at: string; expiry_at: string; id: string; media_url: string }

            Type declaration

            • created_at: string
            • expiry_at: string
            • id: string
            • media_url: string

            Settings

            Theme

            Generated using TypeDoc

            \ No newline at end of file +Types | wombo-dream-api
            Options
            All
            • Public
            • Public/Protected
            • All
            Menu

            Namespace Types

            Index

            Type aliases

            AuthorisationCache: { expirationDate: Date; refreshToken: string; token: string } | undefined
            CreditentialsBody: { email: string; password: string } | any
            SavedTask: { created_at: string; deleted_at: string | null; id: number; image_url: string; is_public: boolean; name: string; prompt: string; prompt_visible: boolean; result: { final: string }; task_id: string; tradingcard_url: string | null; updated_at: string; user_id: string }

            Type declaration

            • created_at: string
            • deleted_at: string | null
            • id: number
            • image_url: string
            • is_public: boolean
            • name: string
            • prompt: string
            • prompt_visible: boolean
            • result: { final: string }
              • final: string
            • task_id: string
            • tradingcard_url: string | null
            • updated_at: string
            • user_id: string
            Style: { created_at: string; deleted_at: string | null; id: number; is_visible: boolean; name: string; photo_url: string; updated_at: string }

            Type declaration

            • created_at: string
            • deleted_at: string | null
            • id: number
            • is_visible: boolean
            • name: string
            • photo_url: string
            • updated_at: string
            Task: { created_at: string; generated_photo_keys: string[]; id: string; input_spec: TaskInputSpec | null; photo_url_list: string[]; premium: boolean; result: { final: string } | null; state: "input" | "generating" | "completed" | "failed"; updated_at: string; user_id: string }

            Type declaration

            • created_at: string
            • generated_photo_keys: string[]
            • id: string
            • input_spec: TaskInputSpec | null
            • photo_url_list: string[]
            • premium: boolean
            • result: { final: string } | null
            • state: "input" | "generating" | "completed" | "failed"
            • updated_at: string
            • user_id: string
            TaskImageInputSpec: { mediastore_id: string; weight: "LOW" | "MEDIUM" | "HIGH" }

            Type declaration

            • mediastore_id: string
            • weight: "LOW" | "MEDIUM" | "HIGH"
            TaskInputSpec: { display_freq?: number; input_image?: TaskImageInputSpec; prompt: string; style: number }

            Type declaration

            • Optional display_freq?: number
            • Optional input_image?: TaskImageInputSpec
            • prompt: string
            • style: number
            UploadResource: { created_at: string; expiry_at: string; id: string; media_url: string }

            Type declaration

            • created_at: string
            • expiry_at: string
            • id: string
            • media_url: string

            Settings

            Theme

            Generated using TypeDoc

            \ No newline at end of file diff --git a/docs/modules/WomboDream.html b/docs/modules/WomboDream.html index c190c74..8fc8804 100644 --- a/docs/modules/WomboDream.html +++ b/docs/modules/WomboDream.html @@ -1 +1 @@ -WomboDream | wombo-dream-api
            Options
            All
            • Public
            • Public/Protected
            • All
            Menu

            Namespace WomboDream

            Index

            References

            Renames and re-exports WomboDream

            Variables

            DEFAULT_CHECK_FREQ: 1000 = 1000
            DEFAULT_DISPLAY_FREQ: 10 = 10

            Settings

            Theme

            Generated using TypeDoc

            \ No newline at end of file +WomboDream | wombo-dream-api
            Options
            All
            • Public
            • Public/Protected
            • All
            Menu

            Namespace WomboDream

            Index

            References

            Renames and re-exports WomboDream

            Variables

            DEFAULT_CHECK_FREQ: 1000 = 1000
            DEFAULT_DISPLAY_FREQ: 10 = 10

            Settings

            Theme

            Generated using TypeDoc

            \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 248783a..ec73dce 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "wombo-dream-api", - "version": "0.1.4fix", + "version": "0.1.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "wombo-dream-api", - "version": "0.1.4fix", + "version": "0.1.5", "license": "MIT", "dependencies": { "@types/node": "^17.0.21", diff --git a/package.json b/package.json index ed43e36..6ccbaf4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wombo-dream-api", - "version": "0.1.4fix", + "version": "0.1.5", "description": "Unofficial API for Wombo Dream", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/WomboDream.ts b/src/WomboDream.ts index 3821b97..62b52c4 100644 --- a/src/WomboDream.ts +++ b/src/WomboDream.ts @@ -2,7 +2,7 @@ import axios, { AxiosInstance } from 'axios'; import { sprintf } from 'sprintf-js'; import sleep from 'sleep-promise'; import GoogleAuthentifier from './GoogleAuthentifier'; -import { Task, TaskImageInputSpec, UploadResource } from './types'; +import { SavedTask, Task, TaskImageInputSpec, UploadResource } from './types'; import { Style } from 'util'; export const DEFAULT_DISPLAY_FREQ = 10; @@ -12,13 +12,18 @@ export class WomboDream { constructor( public authentifier: GoogleAuthentifier, public apiTaskUrl: string, - public apiStyleUrl: string, + public apiTaskSuffix: string, + public apiShopSuffix: string, + public apiStyleSuffix: string, + public apiGallerySuffix: string, public originUrl: string, public uploadUrl: string ) {} buildApiTaskUrl(taskId: string): string { - return sprintf(this.apiTaskUrl, { taskId }); + return sprintf(this.apiTaskUrl, { + suffix: sprintf(this.apiTaskSuffix, { taskId }), + }); } buildRawApiTaskUrl(): string { @@ -30,7 +35,25 @@ export class WomboDream { } buildApiStyleUrl(): string { - return this.apiStyleUrl; + return sprintf(this.apiTaskUrl, { + suffix: this.apiStyleSuffix, + }); + } + + buildApiTaskShopUrl(taskId: string): string { + return sprintf(this.apiTaskUrl, { + suffix: sprintf(this.apiShopSuffix, { taskId }), + }); + } + + buildApiGalleryUrl(taskId: string): string { + return sprintf(this.apiTaskUrl, { + suffix: sprintf(this.apiGallerySuffix, { taskId }), + }); + } + + buildRawApiGalleryUrl(): string { + return this.buildApiGalleryUrl(''); } /** @@ -94,6 +117,8 @@ export class WomboDream { * @param input_image use an image as input * @param display_freq how often the task makes intermediate renders * + * @warning must be done with the same account as the task was created + * * @example * ```ts * const task:Task; @@ -175,6 +200,8 @@ export class WomboDream { /** * Fetch the current infos of a Task * + * @warning must be done with the same account as the task was created + * * @example * ```ts * const taskId:string; @@ -242,7 +269,9 @@ export class WomboDream { } /** - * Upload an image for later use (**MUST** be a jpg/jpeg) + * Upload an image for later use + * + * @warning jpg/jpeg are the only supported image formats * * @example * ```ts @@ -254,19 +283,11 @@ export class WomboDream { try { const resourceUploadInfos: UploadResource = ( - await requestAgent.post( - this.buildUploadUrl(), - { - media_expiry: 'HOURS_72', - media_suffix: 'jpeg', - num_uploads: 1, - }, - { - headers: { - service: 'Dream', - }, - } - ) + await requestAgent.post(this.buildUploadUrl(), { + media_expiry: 'HOURS_72', + media_suffix: 'jpeg', + num_uploads: 1, + }) ).data?.shift(); await requestAgent.put(resourceUploadInfos.media_url, bufferedImage, { @@ -302,6 +323,129 @@ export class WomboDream { throw { reason: 'Failed to fetch styles', error }; } } + + /** + * Fetch shop url from task id + * + * @warning must be done with the same account as the task was created + * + * @example + * ```ts + * const taskId:string; + * dreamInstance.fetchTaskShopUrl(taskId).then(console.log); + * ``` + */ + async fetchTaskShopUrl(taskId: string): Promise { + const requestAgent = await this.buildHttpRequestAgent(); + try { + const taskShopUrl = await requestAgent.get( + this.buildApiTaskShopUrl(taskId) + ); + return taskShopUrl.data.url; + } catch (error) { + throw { reason: 'Failed to fetch task shop url', error }; + } + } + + /** + * Save task to the gallery + * + * @warning must be done with the same account as the task was created + * @warning you must be logged as a user to use it + * + * @example + * ```ts + * const taskId:string; + * dreamInstance.saveTaskToGallery(taskId, "wonderful kitty").then(console.log); + * ``` + */ + async saveTaskToGallery( + taskId: string, + name: string = '', + isPublic: boolean = false, + isPromptVisible: boolean = true + ): Promise { + const requestAgent = await this.buildHttpRequestAgent(); + try { + const savedTask = await requestAgent.post(this.buildRawApiGalleryUrl(), { + task_id: taskId, + name, + is_public: isPublic, + is_prompt_visible: isPromptVisible, + }); + return savedTask.data; + } catch (error) { + throw { reason: 'Failed to save task to gallery', error }; + } + } + + /** + * Fetch a gallery saved task + * + * @warning task_id != task_gallery_id + * @warning you must be logged as a user to use it + * + * @example + * ```ts + * const taskGalleryId:number; + * dreamInstance.fetchGalleryTask(taskGalleryId).then(console.log); + * ``` + */ + async fetchGalleryTask(taskGalleryId: number): Promise { + const requestAgent = await this.buildHttpRequestAgent(); + try { + const galleryTask = await requestAgent.get( + this.buildApiGalleryUrl(`${taskGalleryId}`) + ); + return galleryTask.data; + } catch (error) { + throw { reason: 'Failed to fetch gallery task', error }; + } + } + + /** + * Fetch gallery saved tasks + * + * @warning you must be logged as a user to use it + * + * @example + * ```ts + * dreamInstance.fetchGalleryTasks().then(console.log); + * ``` + */ + async fetchGalleryTasks(): Promise> { + const requestAgent = await this.buildHttpRequestAgent(); + try { + const galleryTask = await requestAgent.get(this.buildRawApiGalleryUrl()); + return galleryTask.data.items; + } catch (error) { + throw { reason: 'failed to fetch gallery tasks', error }; + } + } + + /** + * Fetch a gallery saved task + * + * @warning task_id != task_gallery_id + * @warning you must be logged as a user to use it + * + * @example + * ```ts + * const taskGalleryId:number; + * dreamInstance.deleteGalleryTask(taskGalleryId); + * ``` + */ + async deleteGalleryTask(taskGalleryId: number): Promise { + const requestAgent = await this.buildHttpRequestAgent(); + try { + const galleryTask = await requestAgent.delete( + this.buildApiGalleryUrl(`${taskGalleryId}`) + ); + return galleryTask.data; + } catch (error) { + throw { reason: 'Failed to delete gallery task', error }; + } + } } export default WomboDream; diff --git a/src/index.ts b/src/index.ts index 2213948..a2554e1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,9 +2,11 @@ import WomboDream from './WomboDream'; import GoogleAuthentifier from './GoogleAuthentifier'; export const DEFAULT_ORIGIN_URL = 'https://app.wombo.art'; -export const DEFAULT_TASK_API_URL = - 'https://paint.api.wombo.ai/api/tasks/%(taskId)s'; -export const DEFAULT_STYLE_API_URL = 'https://paint.api.wombo.ai/api/styles/'; +export const DEFAULT_TASK_API_URL = 'https://paint.api.wombo.ai/api/%(suffix)s'; +export const DEFAULT_TASK_API_SUFFIX = 'tasks/%(taskId)s'; +export const DEFAULT_SHOP_API_SUFFIX = 'shop/%(taskId)s'; +export const DEFAULT_STYLE_API_SUFFIX = 'styles/'; +export const DEFAULT_GALLERY_API_SUFFIX = 'gallery/%(taskId)s'; export const DEFAULT_UPLOAD_URL = 'https://mediastore.api.wombo.ai/io/'; export const DEFAULT_AUTHENTIFICATION_KEY = 'AIzaSyDCvp5MTJLUdtBYEKYWXJrlLzu1zuKM6Xw'; @@ -16,7 +18,10 @@ export const buildDefaultInstance = (email?: string, password?: string) => { const wombo = new WomboDream( new GoogleAuthentifier(DEFAULT_AUTHENTIFICATION_KEY, email, password), DEFAULT_TASK_API_URL, - DEFAULT_STYLE_API_URL, + DEFAULT_TASK_API_SUFFIX, + DEFAULT_SHOP_API_SUFFIX, + DEFAULT_STYLE_API_SUFFIX, + DEFAULT_GALLERY_API_SUFFIX, DEFAULT_ORIGIN_URL, DEFAULT_UPLOAD_URL ); diff --git a/src/types.ts b/src/types.ts index 3209501..eaa0b5b 100644 --- a/src/types.ts +++ b/src/types.ts @@ -25,6 +25,24 @@ export type Task = { } | null; }; +export type SavedTask = { + id: number; + user_id: string; + task_id: string; + image_url: string; + is_public: boolean; + name: string; + prompt: string; + prompt_visible: boolean; + result: { + final: string; + }; + tradingcard_url: string | null; + created_at: string; + updated_at: string; + deleted_at: string | null; +}; + export type Style = { id: number; name: string;