@lasuillard/raindrop-client 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,14 @@
1
+ {
2
+ "recommendations": [
3
+ "dbaeumer.vscode-eslint",
4
+ "esbenp.prettier-vscode",
5
+ "ldez.ignore-files",
6
+ "gruntfuggly.todo-tree",
7
+ "redhat.vscode-yaml",
8
+ "streetsidesoftware.code-spell-checker",
9
+ "editorconfig.editorconfig",
10
+ "vitest.explorer",
11
+ "vivaxy.vscode-conventional-commits",
12
+ "42crunch.vscode-openapi"
13
+ ]
14
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "version": "0.2.0",
3
+ "configurations": []
4
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "[jsonc]": {
3
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
4
+ },
5
+ "[yaml]": {
6
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
7
+ },
8
+ "conventionalCommits.scopes": ["deps-dev", "deps", "vscode", "workspace"],
9
+ "cSpell.words": ["openapi"],
10
+ "editor.codeActionsOnSave": {
11
+ "source.fixAll": "explicit",
12
+ "source.organizeImports": "explicit"
13
+ },
14
+ "editor.formatOnSave": true,
15
+ "eslint.enable": true,
16
+ "eslint.format.enable": true,
17
+ "files.eol": "\n",
18
+ "files.insertFinalNewline": true,
19
+ "files.trimFinalNewlines": true,
20
+ "json.format.enable": false,
21
+ "prettier.enable": true,
22
+ "yaml.schemas": {
23
+ "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.0/schema.json": [
24
+ "openapi.yaml"
25
+ ]
26
+ }
27
+ }
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Yuchan Lee
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # raindrop-client
2
+
3
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
+ [![CI](https://github.com/lasuillard/raindrop-client/actions/workflows/ci.yaml/badge.svg)](https://github.com/lasuillard/raindrop-client/actions/workflows/ci.yaml)
5
+ [![codecov](https://codecov.io/gh/lasuillard/raindrop-client/graph/badge.svg?token=bPq2geqXLe)](https://codecov.io/gh/lasuillard/raindrop-client)
6
+
7
+ Axios client built with OpenAPI generator for Raindrop.io ☔
@@ -0,0 +1,24 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const h=require("axios"),p="https://api.raindrop.io".replace(/\/+$/,"");class I{constructor(t,e=p,a=h){this.basePath=e,this.axios=a,t&&(this.configuration=t,this.basePath=t.basePath??e)}configuration}class Se extends Error{constructor(t,e){super(e),this.field=t,this.name="RequiredError"}}const u={},m="https://example.com",P=function(s,t,e){if(e==null)throw new Se(t,`Required parameter ${t} was null or undefined when calling ${s}.`)},v=async function(s,t){if(t&&t.accessToken){const e=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;s.Authorization="Bearer "+e}};function Q(s,t,e=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(a=>Q(s,a,e)):Object.keys(t).forEach(a=>Q(s,t[a],`${e}${e!==""?".":""}${a}`)):s.has(e)?s.append(e,t):s.set(e,t))}const C=function(s,...t){const e=new URLSearchParams(s.search);Q(e,t),s.search=e.toString()},b=function(s,t,e){const a=typeof s!="string";return(a&&e&&e.isJsonMime?e.isJsonMime(t.headers["Content-Type"]):a)?JSON.stringify(s!==void 0?s:{}):s||""},O=function(s){return s.pathname+s.search+s.hash},R=function(s,t,e,a){return(o=t,r=e)=>{const n={...s.options,url:(a?.basePath||o.defaults.baseURL||r)+s.url};return o.request(n)}},fe={NUMBER_1:1,NUMBER_2:2,NUMBER_3:3,NUMBER_4:4},Le={Collections:"collections"},ke={BadAuthorizationCode:"bad_authorization_code"},je={Blue:"blue",Brown:"brown",Cyan:"cyan",Gray:"gray",Green:"green",Indigo:"indigo",Orange:"orange",Pink:"pink",Purple:"purple",Red:"red",Teal:"teal",Yellow:"yellow"},He={Blue:"blue",Brown:"brown",Cyan:"cyan",Gray:"gray",Green:"green",Indigo:"indigo",Orange:"orange",Pink:"pink",Purple:"purple",Red:"red",Teal:"teal",Yellow:"yellow"},X={AuthorizationCode:"authorization_code"},Ne={Ready:"ready",Retry:"retry",Failed:"failed",InvalidOrigin:"invalid-origin",InvalidTimeout:"invalid-timeout",InvalidSize:"invalid-size"},qe={Link:"link",Image:"image"},Z={RefreshToken:"refresh_token"},Me={Member:"member",Viewer:"viewer"},Qe={Title:"title",Title2:"-title",Count:"-count",LastUpdate:"-lastUpdate"},$e={Bearer:"Bearer"},_e={List:"list",Simple:"simple",Grid:"grid",Masonry:"masonry"},ee=function(s){return{authorize:async(t,e,a={})=>{P("authorize","redirectUri",t),P("authorize","clientId",e);const o="/v1/oauth/authorize",r=new URL(o,m);let n;s&&(n=s.baseOptions);const l={method:"GET",...n,...a},i={},c={};t!==void 0&&(c.redirect_uri=t),e!==void 0&&(c.client_id=e),C(r,c);let d=n&&n.headers?n.headers:{};return l.headers={...i,...d,...a.headers},{url:O(r),options:l}},getOrRefreshToken:async(t,e={})=>{const a="/v1/oauth/access_token",o=new URL(a,m);let r;s&&(r=s.baseOptions);const n={method:"POST",...r,...e},l={},i={};l["Content-Type"]="application/json",C(o,i);let c=r&&r.headers?r.headers:{};return n.headers={...l,...c,...e.headers},n.data=b(t,n,s),{url:O(o),options:n}}}},H=function(s){const t=ee(s);return{async authorize(e,a,o){const r=await t.authorize(e,a,o),n=s?.serverIndex??0,l=u["AuthenticationApi.authorize"]?.[n]?.url;return(i,c)=>R(r,h,p,s)(i,l||c)},async getOrRefreshToken(e,a){const o=await t.getOrRefreshToken(e,a),r=s?.serverIndex??0,n=u["AuthenticationApi.getOrRefreshToken"]?.[r]?.url;return(l,i)=>R(o,h,p,s)(l,n||i)}}},Ge=function(s,t,e){const a=H(s);return{authorize(o,r,n){return a.authorize(o,r,n).then(l=>l(e,t))},getOrRefreshToken(o,r){return a.getOrRefreshToken(o,r).then(n=>n(e,t))}}};let te=class extends I{authorize(t,e,a){return H(this.configuration).authorize(t,e,a).then(o=>o(this.axios,this.basePath))}getOrRefreshToken(t,e){return H(this.configuration).getOrRefreshToken(t,e).then(a=>a(this.axios,this.basePath))}};const re=function(s){return{acceptInvitation:async(t,e={})=>{P("acceptInvitation","id",t);const a="/rest/v1/collections/{id}/join".replace("{id}",encodeURIComponent(String(t))),o=new URL(a,m);let r;s&&(r=s.baseOptions);const n={method:"POST",...r,...e},l={},i={};await v(l,s),C(o,i);let c=r&&r.headers?r.headers:{};return n.headers={...l,...c,...e.headers},{url:O(o),options:n}},changeCollaboratorAccessLevel:async(t,e,a,o={})=>{P("changeCollaboratorAccessLevel","userId",t),P("changeCollaboratorAccessLevel","id",e);const r="/rest/v1/collections/{id}/sharing/{userId}".replace("{userId}",encodeURIComponent(String(t))).replace("{id}",encodeURIComponent(String(e))),n=new URL(r,m);let l;s&&(l=s.baseOptions);const i={method:"PUT",...l,...o},c={},d={};await v(c,s),c["Content-Type"]="application/json",C(n,d);let y=l&&l.headers?l.headers:{};return i.headers={...c,...y,...o.headers},i.data=b(a,i,s),{url:O(n),options:i}},createCollection:async(t,e={})=>{const a="/rest/v1/collection",o=new URL(a,m);let r;s&&(r=s.baseOptions);const n={method:"POST",...r,...e},l={},i={};await v(l,s),l["Content-Type"]="application/json",C(o,i);let c=r&&r.headers?r.headers:{};return n.headers={...l,...c,...e.headers},n.data=b(t,n,s),{url:O(o),options:n}},deleteCollaborator:async(t,e,a={})=>{P("deleteCollaborator","userId",t),P("deleteCollaborator","id",e);const o="/rest/v1/collections/{id}/sharing/{userId}".replace("{userId}",encodeURIComponent(String(t))).replace("{id}",encodeURIComponent(String(e))),r=new URL(o,m);let n;s&&(n=s.baseOptions);const l={method:"DELETE",...n,...a},i={},c={};await v(i,s),C(r,c);let d=n&&n.headers?n.headers:{};return l.headers={...i,...d,...a.headers},{url:O(r),options:l}},emptyTrash:async(t={})=>{const e="/rest/v1/collection/-99",a=new URL(e,m);let o;s&&(o=s.baseOptions);const r={method:"DELETE",...o,...t},n={},l={};await v(n,s),C(a,l);let i=o&&o.headers?o.headers:{};return r.headers={...n,...i,...t.headers},{url:O(a),options:r}},getChildCollections:async(t={})=>{const e="/rest/v1/collections/childrens",a=new URL(e,m);let o;s&&(o=s.baseOptions);const r={method:"GET",...o,...t},n={},l={};await v(n,s),C(a,l);let i=o&&o.headers?o.headers:{};return r.headers={...n,...i,...t.headers},{url:O(a),options:r}},getCollaborators:async(t,e={})=>{P("getCollaborators","id",t);const a="/rest/v1/collections/{id}/sharing".replace("{id}",encodeURIComponent(String(t))),o=new URL(a,m);let r;s&&(r=s.baseOptions);const n={method:"GET",...r,...e},l={},i={};await v(l,s),C(o,i);let c=r&&r.headers?r.headers:{};return n.headers={...l,...c,...e.headers},{url:O(o),options:n}},getCollection:async(t,e={})=>{P("getCollection","id",t);const a="/rest/v1/collection/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(a,m);let r;s&&(r=s.baseOptions);const n={method:"GET",...r,...e},l={},i={};await v(l,s),C(o,i);let c=r&&r.headers?r.headers:{};return n.headers={...l,...c,...e.headers},{url:O(o),options:n}},getFeaturedCovers:async(t={})=>{const e="/rest/v1/collections/covers",a=new URL(e,m);let o;s&&(o=s.baseOptions);const r={method:"GET",...o,...t},n={},l={};await v(n,s),C(a,l);let i=o&&o.headers?o.headers:{};return r.headers={...n,...i,...t.headers},{url:O(a),options:r}},getRootCollections:async(t={})=>{const e="/rest/v1/collections",a=new URL(e,m);let o;s&&(o=s.baseOptions);const r={method:"GET",...o,...t},n={},l={};await v(n,s),C(a,l);let i=o&&o.headers?o.headers:{};return r.headers={...n,...i,...t.headers},{url:O(a),options:r}},getSystemCollectionStats:async(t={})=>{const e="/rest/v1/user/stats",a=new URL(e,m);let o;s&&(o=s.baseOptions);const r={method:"GET",...o,...t},n={},l={};await v(n,s),C(a,l);let i=o&&o.headers?o.headers:{};return r.headers={...n,...i,...t.headers},{url:O(a),options:r}},mergeCollections:async(t,e={})=>{const a="/rest/v1/collections/merge",o=new URL(a,m);let r;s&&(r=s.baseOptions);const n={method:"PUT",...r,...e},l={},i={};await v(l,s),l["Content-Type"]="application/json",C(o,i);let c=r&&r.headers?r.headers:{};return n.headers={...l,...c,...e.headers},n.data=b(t,n,s),{url:O(o),options:n}},removeAllEmptyCollections:async(t={})=>{const e="/rest/v1/collections/clean",a=new URL(e,m);let o;s&&(o=s.baseOptions);const r={method:"PUT",...o,...t},n={},l={};await v(n,s),C(a,l);let i=o&&o.headers?o.headers:{};return r.headers={...n,...i,...t.headers},{url:O(a),options:r}},removeCollection:async(t,e={})=>{P("removeCollection","id",t);const a="/rest/v1/collection/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(a,m);let r;s&&(r=s.baseOptions);const n={method:"DELETE",...r,...e},l={},i={};await v(l,s),C(o,i);let c=r&&r.headers?r.headers:{};return n.headers={...l,...c,...e.headers},{url:O(o),options:n}},removeCollections:async(t,e={})=>{const a="/rest/v1/collections",o=new URL(a,m);let r;s&&(r=s.baseOptions);const n={method:"DELETE",...r,...e},l={},i={};await v(l,s),l["Content-Type"]="application/json",C(o,i);let c=r&&r.headers?r.headers:{};return n.headers={...l,...c,...e.headers},n.data=b(t,n,s),{url:O(o),options:n}},reorderAllCollections:async(t,e={})=>{const a="/rest/v1/collections",o=new URL(a,m);let r;s&&(r=s.baseOptions);const n={method:"PUT",...r,...e},l={},i={};await v(l,s),l["Content-Type"]="application/json",C(o,i);let c=r&&r.headers?r.headers:{};return n.headers={...l,...c,...e.headers},n.data=b(t,n,s),{url:O(o),options:n}},searchCovers:async(t,e={})=>{P("searchCovers","text",t);const a="/rest/v1/collections/covers/{text}".replace("{text}",encodeURIComponent(String(t))),o=new URL(a,m);let r;s&&(r=s.baseOptions);const n={method:"GET",...r,...e},l={},i={};await v(l,s),C(o,i);let c=r&&r.headers?r.headers:{};return n.headers={...l,...c,...e.headers},{url:O(o),options:n}},shareCollection:async(t,e,a={})=>{P("shareCollection","id",t);const o="/rest/v1/collections/{id}/sharing".replace("{id}",encodeURIComponent(String(t))),r=new URL(o,m);let n;s&&(n=s.baseOptions);const l={method:"POST",...n,...a},i={},c={};await v(i,s),i["Content-Type"]="application/json",C(r,c);let d=n&&n.headers?n.headers:{};return l.headers={...i,...d,...a.headers},l.data=b(e,l,s),{url:O(r),options:l}},unshareOrLeaveCollection:async(t,e={})=>{P("unshareOrLeaveCollection","id",t);const a="/rest/v1/collections/{id}/sharing".replace("{id}",encodeURIComponent(String(t))),o=new URL(a,m);let r;s&&(r=s.baseOptions);const n={method:"DELETE",...r,...e},l={},i={};await v(l,s),C(o,i);let c=r&&r.headers?r.headers:{};return n.headers={...l,...c,...e.headers},{url:O(o),options:n}},updateCollection:async(t,e,a={})=>{P("updateCollection","id",t);const o="/rest/v1/collection/{id}".replace("{id}",encodeURIComponent(String(t))),r=new URL(o,m);let n;s&&(n=s.baseOptions);const l={method:"PUT",...n,...a},i={},c={};await v(i,s),i["Content-Type"]="application/json",C(r,c);let d=n&&n.headers?n.headers:{};return l.headers={...i,...d,...a.headers},l.data=b(e,l,s),{url:O(r),options:l}},uploadCollectionCover:async(t,e,a={})=>{P("uploadCollectionCover","id",t);const o="/rest/v1/collections/{id}/cover".replace("{id}",encodeURIComponent(String(t))),r=new URL(o,m);let n;s&&(n=s.baseOptions);const l={method:"PUT",...n,...a},i={},c={},d=new(s&&s.formDataCtor||FormData);await v(i,s),e!==void 0&&d.append("cover",e),i["Content-Type"]="multipart/form-data",C(r,c);let y=n&&n.headers?n.headers:{};return l.headers={...i,...y,...a.headers},l.data=d,{url:O(r),options:l}}}},A=function(s){const t=re(s);return{async acceptInvitation(e,a){const o=await t.acceptInvitation(e,a),r=s?.serverIndex??0,n=u["CollectionApi.acceptInvitation"]?.[r]?.url;return(l,i)=>R(o,h,p,s)(l,n||i)},async changeCollaboratorAccessLevel(e,a,o,r){const n=await t.changeCollaboratorAccessLevel(e,a,o,r),l=s?.serverIndex??0,i=u["CollectionApi.changeCollaboratorAccessLevel"]?.[l]?.url;return(c,d)=>R(n,h,p,s)(c,i||d)},async createCollection(e,a){const o=await t.createCollection(e,a),r=s?.serverIndex??0,n=u["CollectionApi.createCollection"]?.[r]?.url;return(l,i)=>R(o,h,p,s)(l,n||i)},async deleteCollaborator(e,a,o){const r=await t.deleteCollaborator(e,a,o),n=s?.serverIndex??0,l=u["CollectionApi.deleteCollaborator"]?.[n]?.url;return(i,c)=>R(r,h,p,s)(i,l||c)},async emptyTrash(e){const a=await t.emptyTrash(e),o=s?.serverIndex??0,r=u["CollectionApi.emptyTrash"]?.[o]?.url;return(n,l)=>R(a,h,p,s)(n,r||l)},async getChildCollections(e){const a=await t.getChildCollections(e),o=s?.serverIndex??0,r=u["CollectionApi.getChildCollections"]?.[o]?.url;return(n,l)=>R(a,h,p,s)(n,r||l)},async getCollaborators(e,a){const o=await t.getCollaborators(e,a),r=s?.serverIndex??0,n=u["CollectionApi.getCollaborators"]?.[r]?.url;return(l,i)=>R(o,h,p,s)(l,n||i)},async getCollection(e,a){const o=await t.getCollection(e,a),r=s?.serverIndex??0,n=u["CollectionApi.getCollection"]?.[r]?.url;return(l,i)=>R(o,h,p,s)(l,n||i)},async getFeaturedCovers(e){const a=await t.getFeaturedCovers(e),o=s?.serverIndex??0,r=u["CollectionApi.getFeaturedCovers"]?.[o]?.url;return(n,l)=>R(a,h,p,s)(n,r||l)},async getRootCollections(e){const a=await t.getRootCollections(e),o=s?.serverIndex??0,r=u["CollectionApi.getRootCollections"]?.[o]?.url;return(n,l)=>R(a,h,p,s)(n,r||l)},async getSystemCollectionStats(e){const a=await t.getSystemCollectionStats(e),o=s?.serverIndex??0,r=u["CollectionApi.getSystemCollectionStats"]?.[o]?.url;return(n,l)=>R(a,h,p,s)(n,r||l)},async mergeCollections(e,a){const o=await t.mergeCollections(e,a),r=s?.serverIndex??0,n=u["CollectionApi.mergeCollections"]?.[r]?.url;return(l,i)=>R(o,h,p,s)(l,n||i)},async removeAllEmptyCollections(e){const a=await t.removeAllEmptyCollections(e),o=s?.serverIndex??0,r=u["CollectionApi.removeAllEmptyCollections"]?.[o]?.url;return(n,l)=>R(a,h,p,s)(n,r||l)},async removeCollection(e,a){const o=await t.removeCollection(e,a),r=s?.serverIndex??0,n=u["CollectionApi.removeCollection"]?.[r]?.url;return(l,i)=>R(o,h,p,s)(l,n||i)},async removeCollections(e,a){const o=await t.removeCollections(e,a),r=s?.serverIndex??0,n=u["CollectionApi.removeCollections"]?.[r]?.url;return(l,i)=>R(o,h,p,s)(l,n||i)},async reorderAllCollections(e,a){const o=await t.reorderAllCollections(e,a),r=s?.serverIndex??0,n=u["CollectionApi.reorderAllCollections"]?.[r]?.url;return(l,i)=>R(o,h,p,s)(l,n||i)},async searchCovers(e,a){const o=await t.searchCovers(e,a),r=s?.serverIndex??0,n=u["CollectionApi.searchCovers"]?.[r]?.url;return(l,i)=>R(o,h,p,s)(l,n||i)},async shareCollection(e,a,o){const r=await t.shareCollection(e,a,o),n=s?.serverIndex??0,l=u["CollectionApi.shareCollection"]?.[n]?.url;return(i,c)=>R(r,h,p,s)(i,l||c)},async unshareOrLeaveCollection(e,a){const o=await t.unshareOrLeaveCollection(e,a),r=s?.serverIndex??0,n=u["CollectionApi.unshareOrLeaveCollection"]?.[r]?.url;return(l,i)=>R(o,h,p,s)(l,n||i)},async updateCollection(e,a,o){const r=await t.updateCollection(e,a,o),n=s?.serverIndex??0,l=u["CollectionApi.updateCollection"]?.[n]?.url;return(i,c)=>R(r,h,p,s)(i,l||c)},async uploadCollectionCover(e,a,o){const r=await t.uploadCollectionCover(e,a,o),n=s?.serverIndex??0,l=u["CollectionApi.uploadCollectionCover"]?.[n]?.url;return(i,c)=>R(r,h,p,s)(i,l||c)}}},De=function(s,t,e){const a=A(s);return{acceptInvitation(o,r){return a.acceptInvitation(o,r).then(n=>n(e,t))},changeCollaboratorAccessLevel(o,r,n,l){return a.changeCollaboratorAccessLevel(o,r,n,l).then(i=>i(e,t))},createCollection(o,r){return a.createCollection(o,r).then(n=>n(e,t))},deleteCollaborator(o,r,n){return a.deleteCollaborator(o,r,n).then(l=>l(e,t))},emptyTrash(o){return a.emptyTrash(o).then(r=>r(e,t))},getChildCollections(o){return a.getChildCollections(o).then(r=>r(e,t))},getCollaborators(o,r){return a.getCollaborators(o,r).then(n=>n(e,t))},getCollection(o,r){return a.getCollection(o,r).then(n=>n(e,t))},getFeaturedCovers(o){return a.getFeaturedCovers(o).then(r=>r(e,t))},getRootCollections(o){return a.getRootCollections(o).then(r=>r(e,t))},getSystemCollectionStats(o){return a.getSystemCollectionStats(o).then(r=>r(e,t))},mergeCollections(o,r){return a.mergeCollections(o,r).then(n=>n(e,t))},removeAllEmptyCollections(o){return a.removeAllEmptyCollections(o).then(r=>r(e,t))},removeCollection(o,r){return a.removeCollection(o,r).then(n=>n(e,t))},removeCollections(o,r){return a.removeCollections(o,r).then(n=>n(e,t))},reorderAllCollections(o,r){return a.reorderAllCollections(o,r).then(n=>n(e,t))},searchCovers(o,r){return a.searchCovers(o,r).then(n=>n(e,t))},shareCollection(o,r,n){return a.shareCollection(o,r,n).then(l=>l(e,t))},unshareOrLeaveCollection(o,r){return a.unshareOrLeaveCollection(o,r).then(n=>n(e,t))},updateCollection(o,r,n){return a.updateCollection(o,r,n).then(l=>l(e,t))},uploadCollectionCover(o,r,n){return a.uploadCollectionCover(o,r,n).then(l=>l(e,t))}}};let ae=class extends I{acceptInvitation(t,e){return A(this.configuration).acceptInvitation(t,e).then(a=>a(this.axios,this.basePath))}changeCollaboratorAccessLevel(t,e,a,o){return A(this.configuration).changeCollaboratorAccessLevel(t,e,a,o).then(r=>r(this.axios,this.basePath))}createCollection(t,e){return A(this.configuration).createCollection(t,e).then(a=>a(this.axios,this.basePath))}deleteCollaborator(t,e,a){return A(this.configuration).deleteCollaborator(t,e,a).then(o=>o(this.axios,this.basePath))}emptyTrash(t){return A(this.configuration).emptyTrash(t).then(e=>e(this.axios,this.basePath))}getChildCollections(t){return A(this.configuration).getChildCollections(t).then(e=>e(this.axios,this.basePath))}getCollaborators(t,e){return A(this.configuration).getCollaborators(t,e).then(a=>a(this.axios,this.basePath))}getCollection(t,e){return A(this.configuration).getCollection(t,e).then(a=>a(this.axios,this.basePath))}getFeaturedCovers(t){return A(this.configuration).getFeaturedCovers(t).then(e=>e(this.axios,this.basePath))}getRootCollections(t){return A(this.configuration).getRootCollections(t).then(e=>e(this.axios,this.basePath))}getSystemCollectionStats(t){return A(this.configuration).getSystemCollectionStats(t).then(e=>e(this.axios,this.basePath))}mergeCollections(t,e){return A(this.configuration).mergeCollections(t,e).then(a=>a(this.axios,this.basePath))}removeAllEmptyCollections(t){return A(this.configuration).removeAllEmptyCollections(t).then(e=>e(this.axios,this.basePath))}removeCollection(t,e){return A(this.configuration).removeCollection(t,e).then(a=>a(this.axios,this.basePath))}removeCollections(t,e){return A(this.configuration).removeCollections(t,e).then(a=>a(this.axios,this.basePath))}reorderAllCollections(t,e){return A(this.configuration).reorderAllCollections(t,e).then(a=>a(this.axios,this.basePath))}searchCovers(t,e){return A(this.configuration).searchCovers(t,e).then(a=>a(this.axios,this.basePath))}shareCollection(t,e,a){return A(this.configuration).shareCollection(t,e,a).then(o=>o(this.axios,this.basePath))}unshareOrLeaveCollection(t,e){return A(this.configuration).unshareOrLeaveCollection(t,e).then(a=>a(this.axios,this.basePath))}updateCollection(t,e,a){return A(this.configuration).updateCollection(t,e,a).then(o=>o(this.axios,this.basePath))}uploadCollectionCover(t,e,a){return A(this.configuration).uploadCollectionCover(t,e,a).then(o=>o(this.axios,this.basePath))}};const se=function(s){return{getFilters:async(t,e,a,o={})=>{P("getFilters","collectionId",t);const r="/rest/v1/filters/{collectionId}".replace("{collectionId}",encodeURIComponent(String(t))),n=new URL(r,m);let l;s&&(l=s.baseOptions);const i={method:"GET",...l,...o},c={},d={};await v(c,s),e!==void 0&&(d.tagsSort=e),a!==void 0&&(d.search=a),C(n,d);let y=l&&l.headers?l.headers:{};return i.headers={...c,...y,...o.headers},{url:O(n),options:i}}}},_=function(s){const t=se(s);return{async getFilters(e,a,o,r){const n=await t.getFilters(e,a,o,r),l=s?.serverIndex??0,i=u["FilterApi.getFilters"]?.[l]?.url;return(c,d)=>R(n,h,p,s)(c,i||d)}}},ze=function(s,t,e){const a=_(s);return{getFilters(o,r,n,l){return a.getFilters(o,r,n,l).then(i=>i(e,t))}}};class oe extends I{getFilters(t,e,a,o){return _(this.configuration).getFilters(t,e,a,o).then(r=>r(this.axios,this.basePath))}}const Je={Count:"-count",Id:"_id"},ne=function(s){return{getAllHighlights:async(t,e,a={})=>{const o="/rest/v1/highlights",r=new URL(o,m);let n;s&&(n=s.baseOptions);const l={method:"GET",...n,...a},i={},c={};await v(i,s),t!==void 0&&(c.page=t),e!==void 0&&(c.perpage=e),C(r,c);let d=n&&n.headers?n.headers:{};return l.headers={...i,...d,...a.headers},{url:O(r),options:l}},getHighlightsInCollection:async(t,e,a,o={})=>{P("getHighlightsInCollection","collectionId",t);const r="/rest/v1/highlights/{collectionId}".replace("{collectionId}",encodeURIComponent(String(t))),n=new URL(r,m);let l;s&&(l=s.baseOptions);const i={method:"GET",...l,...o},c={},d={};await v(c,s),e!==void 0&&(d.page=e),a!==void 0&&(d.perpage=a),C(n,d);let y=l&&l.headers?l.headers:{};return i.headers={...c,...y,...o.headers},{url:O(n),options:i}},getRaindrop:async(t,e={})=>{P("getRaindrop","id",t);const a="/rest/v1/raindrop/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(a,m);let r;s&&(r=s.baseOptions);const n={method:"GET",...r,...e},l={},i={};await v(l,s),C(o,i);let c=r&&r.headers?r.headers:{};return n.headers={...l,...c,...e.headers},{url:O(o),options:n}},updateRaindrop:async(t,e,a={})=>{P("updateRaindrop","id",t);const o="/rest/v1/raindrop/{id}".replace("{id}",encodeURIComponent(String(t))),r=new URL(o,m);let n;s&&(n=s.baseOptions);const l={method:"PUT",...n,...a},i={},c={};await v(i,s),i["Content-Type"]="application/json",C(r,c);let d=n&&n.headers?n.headers:{};return l.headers={...i,...d,...a.headers},l.data=b(e,l,s),{url:O(r),options:l}}}},E=function(s){const t=ne(s);return{async getAllHighlights(e,a,o){const r=await t.getAllHighlights(e,a,o),n=s?.serverIndex??0,l=u["HighlightApi.getAllHighlights"]?.[n]?.url;return(i,c)=>R(r,h,p,s)(i,l||c)},async getHighlightsInCollection(e,a,o,r){const n=await t.getHighlightsInCollection(e,a,o,r),l=s?.serverIndex??0,i=u["HighlightApi.getHighlightsInCollection"]?.[l]?.url;return(c,d)=>R(n,h,p,s)(c,i||d)},async getRaindrop(e,a){const o=await t.getRaindrop(e,a),r=s?.serverIndex??0,n=u["HighlightApi.getRaindrop"]?.[r]?.url;return(l,i)=>R(o,h,p,s)(l,n||i)},async updateRaindrop(e,a,o){const r=await t.updateRaindrop(e,a,o),n=s?.serverIndex??0,l=u["HighlightApi.updateRaindrop"]?.[n]?.url;return(i,c)=>R(r,h,p,s)(i,l||c)}}},We=function(s,t,e){const a=E(s);return{getAllHighlights(o,r,n){return a.getAllHighlights(o,r,n).then(l=>l(e,t))},getHighlightsInCollection(o,r,n,l){return a.getHighlightsInCollection(o,r,n,l).then(i=>i(e,t))},getRaindrop(o,r){return a.getRaindrop(o,r).then(n=>n(e,t))},updateRaindrop(o,r,n){return a.updateRaindrop(o,r,n).then(l=>l(e,t))}}};class le extends I{getAllHighlights(t,e,a){return E(this.configuration).getAllHighlights(t,e,a).then(o=>o(this.axios,this.basePath))}getHighlightsInCollection(t,e,a,o){return E(this.configuration).getHighlightsInCollection(t,e,a,o).then(r=>r(this.axios,this.basePath))}getRaindrop(t,e){return E(this.configuration).getRaindrop(t,e).then(a=>a(this.axios,this.basePath))}updateRaindrop(t,e,a){return E(this.configuration).updateRaindrop(t,e,a).then(o=>o(this.axios,this.basePath))}}const ie=function(s){return{checkURLsExist:async(t,e={})=>{const a="/rest/v1/import/url/exists",o=new URL(a,m);let r;s&&(r=s.baseOptions);const n={method:"POST",...r,...e},l={},i={};await v(l,s),l["Content-Type"]="application/json",C(o,i);let c=r&&r.headers?r.headers:{};return n.headers={...l,...c,...e.headers},n.data=b(t,n,s),{url:O(o),options:n}},importHTMLBookmarkFile:async(t,e={})=>{const a="/rest/v1/import/file",o=new URL(a,m);let r;s&&(r=s.baseOptions);const n={method:"POST",...r,...e},l={},i={},c=new(s&&s.formDataCtor||FormData);await v(l,s),t!==void 0&&c.append("import",t),l["Content-Type"]="multipart/form-data",C(o,i);let d=r&&r.headers?r.headers:{};return n.headers={...l,...d,...e.headers},n.data=c,{url:O(o),options:n}},parseURL:async(t,e={})=>{const a="/rest/v1/import/url/parse",o=new URL(a,m);let r;s&&(r=s.baseOptions);const n={method:"GET",...r,...e},l={},i={};await v(l,s),t!==void 0&&(i.url=t),C(o,i);let c=r&&r.headers?r.headers:{};return n.headers={...l,...c,...e.headers},{url:O(o),options:n}}}},S=function(s){const t=ie(s);return{async checkURLsExist(e,a){const o=await t.checkURLsExist(e,a),r=s?.serverIndex??0,n=u["ImportApi.checkURLsExist"]?.[r]?.url;return(l,i)=>R(o,h,p,s)(l,n||i)},async importHTMLBookmarkFile(e,a){const o=await t.importHTMLBookmarkFile(e,a),r=s?.serverIndex??0,n=u["ImportApi.importHTMLBookmarkFile"]?.[r]?.url;return(l,i)=>R(o,h,p,s)(l,n||i)},async parseURL(e,a){const o=await t.parseURL(e,a),r=s?.serverIndex??0,n=u["ImportApi.parseURL"]?.[r]?.url;return(l,i)=>R(o,h,p,s)(l,n||i)}}},Ye=function(s,t,e){const a=S(s);return{checkURLsExist(o,r){return a.checkURLsExist(o,r).then(n=>n(e,t))},importHTMLBookmarkFile(o,r){return a.importHTMLBookmarkFile(o,r).then(n=>n(e,t))},parseURL(o,r){return a.parseURL(o,r).then(n=>n(e,t))}}};class ce extends I{checkURLsExist(t,e){return S(this.configuration).checkURLsExist(t,e).then(a=>a(this.axios,this.basePath))}importHTMLBookmarkFile(t,e){return S(this.configuration).importHTMLBookmarkFile(t,e).then(a=>a(this.axios,this.basePath))}parseURL(t,e){return S(this.configuration).parseURL(t,e).then(a=>a(this.axios,this.basePath))}}const de=function(s){return{createRaindrop:async(t,e={})=>{const a="/rest/v1/raindrop",o=new URL(a,m);let r;s&&(r=s.baseOptions);const n={method:"POST",...r,...e},l={},i={};await v(l,s),l["Content-Type"]="application/json",C(o,i);let c=r&&r.headers?r.headers:{};return n.headers={...l,...c,...e.headers},n.data=b(t,n,s),{url:O(o),options:n}},createRaindrops:async(t,e={})=>{const a="/rest/v1/raindrops",o=new URL(a,m);let r;s&&(r=s.baseOptions);const n={method:"POST",...r,...e},l={},i={};await v(l,s),l["Content-Type"]="application/json",C(o,i);let c=r&&r.headers?r.headers:{};return n.headers={...l,...c,...e.headers},n.data=b(t,n,s),{url:O(o),options:n}},getPermanentCopy:async(t,e={})=>{P("getPermanentCopy","id",t);const a="/rest/v1/raindrop/{id}/cache".replace("{id}",encodeURIComponent(String(t))),o=new URL(a,m);let r;s&&(r=s.baseOptions);const n={method:"GET",...r,...e},l={},i={};await v(l,s),C(o,i);let c=r&&r.headers?r.headers:{};return n.headers={...l,...c,...e.headers},{url:O(o),options:n}},getRaindrop:async(t,e={})=>{P("getRaindrop","id",t);const a="/rest/v1/raindrop/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(a,m);let r;s&&(r=s.baseOptions);const n={method:"GET",...r,...e},l={},i={};await v(l,s),C(o,i);let c=r&&r.headers?r.headers:{};return n.headers={...l,...c,...e.headers},{url:O(o),options:n}},getRaindrops:async(t,e,a,o,r,n={})=>{P("getRaindrops","collectionId",t);const l="/rest/v1/raindrops/{collectionId}".replace("{collectionId}",encodeURIComponent(String(t))),i=new URL(l,m);let c;s&&(c=s.baseOptions);const d={method:"GET",...c,...n},y={},V={};await v(y,s),e!==void 0&&(V.sort=e),a!==void 0&&(V.perpage=a),o!==void 0&&(V.page=o),r!==void 0&&(V.search=r),C(i,V);let x=c&&c.headers?c.headers:{};return d.headers={...y,...x,...n.headers},{url:O(i),options:d}},removeRaindrop:async(t,e={})=>{P("removeRaindrop","id",t);const a="/rest/v1/raindrop/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(a,m);let r;s&&(r=s.baseOptions);const n={method:"DELETE",...r,...e},l={},i={};await v(l,s),C(o,i);let c=r&&r.headers?r.headers:{};return n.headers={...l,...c,...e.headers},{url:O(o),options:n}},removeRaindrops:async(t,e,a,o={})=>{P("removeRaindrops","collectionId",t);const r="/rest/v1/raindrops/{collectionId}".replace("{collectionId}",encodeURIComponent(String(t))),n=new URL(r,m);let l;s&&(l=s.baseOptions);const i={method:"DELETE",...l,...o},c={},d={};await v(c,s),e!==void 0&&(d.search=e),c["Content-Type"]="application/json",C(n,d);let y=l&&l.headers?l.headers:{};return i.headers={...c,...y,...o.headers},i.data=b(a,i,s),{url:O(n),options:i}},suggestForExistingBookmark:async(t,e={})=>{P("suggestForExistingBookmark","id",t);const a="/rest/v1/raindrop/{id}/suggest".replace("{id}",encodeURIComponent(String(t))),o=new URL(a,m);let r;s&&(r=s.baseOptions);const n={method:"GET",...r,...e},l={},i={};await v(l,s),C(o,i);let c=r&&r.headers?r.headers:{};return n.headers={...l,...c,...e.headers},{url:O(o),options:n}},suggestForNewBookmark:async(t,e={})=>{const a="/rest/v1/raindrop/suggest",o=new URL(a,m);let r;s&&(r=s.baseOptions);const n={method:"POST",...r,...e},l={},i={};await v(l,s),l["Content-Type"]="application/json",C(o,i);let c=r&&r.headers?r.headers:{};return n.headers={...l,...c,...e.headers},n.data=b(t,n,s),{url:O(o),options:n}},updateRaindrop:async(t,e,a={})=>{P("updateRaindrop","id",t);const o="/rest/v1/raindrop/{id}".replace("{id}",encodeURIComponent(String(t))),r=new URL(o,m);let n;s&&(n=s.baseOptions);const l={method:"PUT",...n,...a},i={},c={};await v(i,s),i["Content-Type"]="application/json",C(r,c);let d=n&&n.headers?n.headers:{};return l.headers={...i,...d,...a.headers},l.data=b(e,l,s),{url:O(r),options:l}},updateRaindrops:async(t,e,a={})=>{P("updateRaindrops","collectionId",t);const o="/rest/v1/raindrops/{collectionId}".replace("{collectionId}",encodeURIComponent(String(t))),r=new URL(o,m);let n;s&&(n=s.baseOptions);const l={method:"PUT",...n,...a},i={},c={};await v(i,s),i["Content-Type"]="application/json",C(r,c);let d=n&&n.headers?n.headers:{};return l.headers={...i,...d,...a.headers},l.data=b(e,l,s),{url:O(r),options:l}},uploadFile:async(t,e,a={})=>{const o="/rest/v1/raindrop/file",r=new URL(o,m);let n;s&&(n=s.baseOptions);const l={method:"PUT",...n,...a},i={},c={},d=new(s&&s.formDataCtor||FormData);await v(i,s),t!==void 0&&d.append("file",t),e!==void 0&&d.append("collectionId",e),i["Content-Type"]="multipart/form-data",C(r,c);let y=n&&n.headers?n.headers:{};return l.headers={...i,...y,...a.headers},l.data=d,{url:O(r),options:l}},uploadRaindropCover:async(t,e,a={})=>{P("uploadRaindropCover","id",t);const o="/rest/v1/raindrop/{id}/cover".replace("{id}",encodeURIComponent(String(t))),r=new URL(o,m);let n;s&&(n=s.baseOptions);const l={method:"PUT",...n,...a},i={},c={},d=new(s&&s.formDataCtor||FormData);await v(i,s),e!==void 0&&d.append("cover",e),i["Content-Type"]="multipart/form-data",C(r,c);let y=n&&n.headers?n.headers:{};return l.headers={...i,...y,...a.headers},l.data=d,{url:O(r),options:l}}}},g=function(s){const t=de(s);return{async createRaindrop(e,a){const o=await t.createRaindrop(e,a),r=s?.serverIndex??0,n=u["RaindropApi.createRaindrop"]?.[r]?.url;return(l,i)=>R(o,h,p,s)(l,n||i)},async createRaindrops(e,a){const o=await t.createRaindrops(e,a),r=s?.serverIndex??0,n=u["RaindropApi.createRaindrops"]?.[r]?.url;return(l,i)=>R(o,h,p,s)(l,n||i)},async getPermanentCopy(e,a){const o=await t.getPermanentCopy(e,a),r=s?.serverIndex??0,n=u["RaindropApi.getPermanentCopy"]?.[r]?.url;return(l,i)=>R(o,h,p,s)(l,n||i)},async getRaindrop(e,a){const o=await t.getRaindrop(e,a),r=s?.serverIndex??0,n=u["RaindropApi.getRaindrop"]?.[r]?.url;return(l,i)=>R(o,h,p,s)(l,n||i)},async getRaindrops(e,a,o,r,n,l){const i=await t.getRaindrops(e,a,o,r,n,l),c=s?.serverIndex??0,d=u["RaindropApi.getRaindrops"]?.[c]?.url;return(y,V)=>R(i,h,p,s)(y,d||V)},async removeRaindrop(e,a){const o=await t.removeRaindrop(e,a),r=s?.serverIndex??0,n=u["RaindropApi.removeRaindrop"]?.[r]?.url;return(l,i)=>R(o,h,p,s)(l,n||i)},async removeRaindrops(e,a,o,r){const n=await t.removeRaindrops(e,a,o,r),l=s?.serverIndex??0,i=u["RaindropApi.removeRaindrops"]?.[l]?.url;return(c,d)=>R(n,h,p,s)(c,i||d)},async suggestForExistingBookmark(e,a){const o=await t.suggestForExistingBookmark(e,a),r=s?.serverIndex??0,n=u["RaindropApi.suggestForExistingBookmark"]?.[r]?.url;return(l,i)=>R(o,h,p,s)(l,n||i)},async suggestForNewBookmark(e,a){const o=await t.suggestForNewBookmark(e,a),r=s?.serverIndex??0,n=u["RaindropApi.suggestForNewBookmark"]?.[r]?.url;return(l,i)=>R(o,h,p,s)(l,n||i)},async updateRaindrop(e,a,o){const r=await t.updateRaindrop(e,a,o),n=s?.serverIndex??0,l=u["RaindropApi.updateRaindrop"]?.[n]?.url;return(i,c)=>R(r,h,p,s)(i,l||c)},async updateRaindrops(e,a,o){const r=await t.updateRaindrops(e,a,o),n=s?.serverIndex??0,l=u["RaindropApi.updateRaindrops"]?.[n]?.url;return(i,c)=>R(r,h,p,s)(i,l||c)},async uploadFile(e,a,o){const r=await t.uploadFile(e,a,o),n=s?.serverIndex??0,l=u["RaindropApi.uploadFile"]?.[n]?.url;return(i,c)=>R(r,h,p,s)(i,l||c)},async uploadRaindropCover(e,a,o){const r=await t.uploadRaindropCover(e,a,o),n=s?.serverIndex??0,l=u["RaindropApi.uploadRaindropCover"]?.[n]?.url;return(i,c)=>R(r,h,p,s)(i,l||c)}}},Ke=function(s,t,e){const a=g(s);return{createRaindrop(o,r){return a.createRaindrop(o,r).then(n=>n(e,t))},createRaindrops(o,r){return a.createRaindrops(o,r).then(n=>n(e,t))},getPermanentCopy(o,r){return a.getPermanentCopy(o,r).then(n=>n(e,t))},getRaindrop(o,r){return a.getRaindrop(o,r).then(n=>n(e,t))},getRaindrops(o,r,n,l,i,c){return a.getRaindrops(o,r,n,l,i,c).then(d=>d(e,t))},removeRaindrop(o,r){return a.removeRaindrop(o,r).then(n=>n(e,t))},removeRaindrops(o,r,n,l){return a.removeRaindrops(o,r,n,l).then(i=>i(e,t))},suggestForExistingBookmark(o,r){return a.suggestForExistingBookmark(o,r).then(n=>n(e,t))},suggestForNewBookmark(o,r){return a.suggestForNewBookmark(o,r).then(n=>n(e,t))},updateRaindrop(o,r,n){return a.updateRaindrop(o,r,n).then(l=>l(e,t))},updateRaindrops(o,r,n){return a.updateRaindrops(o,r,n).then(l=>l(e,t))},uploadFile(o,r,n){return a.uploadFile(o,r,n).then(l=>l(e,t))},uploadRaindropCover(o,r,n){return a.uploadRaindropCover(o,r,n).then(l=>l(e,t))}}};let he=class extends I{createRaindrop(t,e){return g(this.configuration).createRaindrop(t,e).then(a=>a(this.axios,this.basePath))}createRaindrops(t,e){return g(this.configuration).createRaindrops(t,e).then(a=>a(this.axios,this.basePath))}getPermanentCopy(t,e){return g(this.configuration).getPermanentCopy(t,e).then(a=>a(this.axios,this.basePath))}getRaindrop(t,e){return g(this.configuration).getRaindrop(t,e).then(a=>a(this.axios,this.basePath))}getRaindrops(t,e,a,o,r,n){return g(this.configuration).getRaindrops(t,e,a,o,r,n).then(l=>l(this.axios,this.basePath))}removeRaindrop(t,e){return g(this.configuration).removeRaindrop(t,e).then(a=>a(this.axios,this.basePath))}removeRaindrops(t,e,a,o){return g(this.configuration).removeRaindrops(t,e,a,o).then(r=>r(this.axios,this.basePath))}suggestForExistingBookmark(t,e){return g(this.configuration).suggestForExistingBookmark(t,e).then(a=>a(this.axios,this.basePath))}suggestForNewBookmark(t,e){return g(this.configuration).suggestForNewBookmark(t,e).then(a=>a(this.axios,this.basePath))}updateRaindrop(t,e,a){return g(this.configuration).updateRaindrop(t,e,a).then(o=>o(this.axios,this.basePath))}updateRaindrops(t,e,a){return g(this.configuration).updateRaindrops(t,e,a).then(o=>o(this.axios,this.basePath))}uploadFile(t,e,a){return g(this.configuration).uploadFile(t,e,a).then(o=>o(this.axios,this.basePath))}uploadRaindropCover(t,e,a){return g(this.configuration).uploadRaindropCover(t,e,a).then(o=>o(this.axios,this.basePath))}};const pe=function(s){return{getTagsInCollection:async(t,e={})=>{const a="/rest/v1/tags/{collectionId}".replace("{collectionId}",encodeURIComponent(String(t))),o=new URL(a,m);let r;s&&(r=s.baseOptions);const n={method:"GET",...r,...e},l={},i={};await v(l,s),C(o,i);let c=r&&r.headers?r.headers:{};return n.headers={...l,...c,...e.headers},{url:O(o),options:n}},removeTagsFromCollection:async(t,e,a={})=>{const o="/rest/v1/tags/{collectionId}".replace("{collectionId}",encodeURIComponent(String(t))),r=new URL(o,m);let n;s&&(n=s.baseOptions);const l={method:"DELETE",...n,...a},i={},c={};await v(i,s),i["Content-Type"]="application/json",C(r,c);let d=n&&n.headers?n.headers:{};return l.headers={...i,...d,...a.headers},l.data=b(e,l,s),{url:O(r),options:l}},renameOrMergeTags:async(t,e,a={})=>{const o="/rest/v1/tags/{collectionId}".replace("{collectionId}",encodeURIComponent(String(t))),r=new URL(o,m);let n;s&&(n=s.baseOptions);const l={method:"PUT",...n,...a},i={},c={};await v(i,s),i["Content-Type"]="application/json",C(r,c);let d=n&&n.headers?n.headers:{};return l.headers={...i,...d,...a.headers},l.data=b(e,l,s),{url:O(r),options:l}}}},f=function(s){const t=pe(s);return{async getTagsInCollection(e,a){const o=await t.getTagsInCollection(e,a),r=s?.serverIndex??0,n=u["TagApi.getTagsInCollection"]?.[r]?.url;return(l,i)=>R(o,h,p,s)(l,n||i)},async removeTagsFromCollection(e,a,o){const r=await t.removeTagsFromCollection(e,a,o),n=s?.serverIndex??0,l=u["TagApi.removeTagsFromCollection"]?.[n]?.url;return(i,c)=>R(r,h,p,s)(i,l||c)},async renameOrMergeTags(e,a,o){const r=await t.renameOrMergeTags(e,a,o),n=s?.serverIndex??0,l=u["TagApi.renameOrMergeTags"]?.[n]?.url;return(i,c)=>R(r,h,p,s)(i,l||c)}}},Xe=function(s,t,e){const a=f(s);return{getTagsInCollection(o,r){return a.getTagsInCollection(o,r).then(n=>n(e,t))},removeTagsFromCollection(o,r,n){return a.removeTagsFromCollection(o,r,n).then(l=>l(e,t))},renameOrMergeTags(o,r,n){return a.renameOrMergeTags(o,r,n).then(l=>l(e,t))}}};class ue extends I{getTagsInCollection(t,e){return f(this.configuration).getTagsInCollection(t,e).then(a=>a(this.axios,this.basePath))}removeTagsFromCollection(t,e,a){return f(this.configuration).removeTagsFromCollection(t,e,a).then(o=>o(this.axios,this.basePath))}renameOrMergeTags(t,e,a){return f(this.configuration).renameOrMergeTags(t,e,a).then(o=>o(this.axios,this.basePath))}}const me=function(s){return{connectSocialNetworkProvider:async(t,e={})=>{P("connectSocialNetworkProvider","provider",t);const a="/rest/v1/user/connect/{provider}".replace("{provider}",encodeURIComponent(String(t))),o=new URL(a,m);let r;s&&(r=s.baseOptions);const n={method:"GET",...r,...e},l={},i={};await v(l,s),C(o,i);let c=r&&r.headers?r.headers:{};return n.headers={...l,...c,...e.headers},{url:O(o),options:n}},disconnectSocialNetworkProvider:async(t,e={})=>{P("disconnectSocialNetworkProvider","provider",t);const a="/rest/v1/user/connect/{provider}/revoke".replace("{provider}",encodeURIComponent(String(t))),o=new URL(a,m);let r;s&&(r=s.baseOptions);const n={method:"GET",...r,...e},l={},i={};await v(l,s),C(o,i);let c=r&&r.headers?r.headers:{};return n.headers={...l,...c,...e.headers},{url:O(o),options:n}},getCurrentUser:async(t={})=>{const e="/rest/v1/user",a=new URL(e,m);let o;s&&(o=s.baseOptions);const r={method:"GET",...o,...t},n={},l={};await v(n,s),C(a,l);let i=o&&o.headers?o.headers:{};return r.headers={...n,...i,...t.headers},{url:O(a),options:r}},getPublicUserByName:async(t,e={})=>{P("getPublicUserByName","name",t);const a="/rest/v1/user/{name}".replace("{name}",encodeURIComponent(String(t))),o=new URL(a,m);let r;s&&(r=s.baseOptions);const n={method:"GET",...r,...e},l={},i={};await v(l,s),C(o,i);let c=r&&r.headers?r.headers:{};return n.headers={...l,...c,...e.headers},{url:O(o),options:n}},getSystemCollectionStats:async(t={})=>{const e="/rest/v1/user/stats",a=new URL(e,m);let o;s&&(o=s.baseOptions);const r={method:"GET",...o,...t},n={},l={};await v(n,s),C(a,l);let i=o&&o.headers?o.headers:{};return r.headers={...n,...i,...t.headers},{url:O(a),options:r}},updateCurrentUser:async(t,e={})=>{const a="/rest/v1/user",o=new URL(a,m);let r;s&&(r=s.baseOptions);const n={method:"PUT",...r,...e},l={},i={};await v(l,s),l["Content-Type"]="application/json",C(o,i);let c=r&&r.headers?r.headers:{};return n.headers={...l,...c,...e.headers},n.data=b(t,n,s),{url:O(o),options:n}}}},T=function(s){const t=me(s);return{async connectSocialNetworkProvider(e,a){const o=await t.connectSocialNetworkProvider(e,a),r=s?.serverIndex??0,n=u["UserApi.connectSocialNetworkProvider"]?.[r]?.url;return(l,i)=>R(o,h,p,s)(l,n||i)},async disconnectSocialNetworkProvider(e,a){const o=await t.disconnectSocialNetworkProvider(e,a),r=s?.serverIndex??0,n=u["UserApi.disconnectSocialNetworkProvider"]?.[r]?.url;return(l,i)=>R(o,h,p,s)(l,n||i)},async getCurrentUser(e){const a=await t.getCurrentUser(e),o=s?.serverIndex??0,r=u["UserApi.getCurrentUser"]?.[o]?.url;return(n,l)=>R(a,h,p,s)(n,r||l)},async getPublicUserByName(e,a){const o=await t.getPublicUserByName(e,a),r=s?.serverIndex??0,n=u["UserApi.getPublicUserByName"]?.[r]?.url;return(l,i)=>R(o,h,p,s)(l,n||i)},async getSystemCollectionStats(e){const a=await t.getSystemCollectionStats(e),o=s?.serverIndex??0,r=u["UserApi.getSystemCollectionStats"]?.[o]?.url;return(n,l)=>R(a,h,p,s)(n,r||l)},async updateCurrentUser(e,a){const o=await t.updateCurrentUser(e,a),r=s?.serverIndex??0,n=u["UserApi.updateCurrentUser"]?.[r]?.url;return(l,i)=>R(o,h,p,s)(l,n||i)}}},Ze=function(s,t,e){const a=T(s);return{connectSocialNetworkProvider(o,r){return a.connectSocialNetworkProvider(o,r).then(n=>n(e,t))},disconnectSocialNetworkProvider(o,r){return a.disconnectSocialNetworkProvider(o,r).then(n=>n(e,t))},getCurrentUser(o){return a.getCurrentUser(o).then(r=>r(e,t))},getPublicUserByName(o,r){return a.getPublicUserByName(o,r).then(n=>n(e,t))},getSystemCollectionStats(o){return a.getSystemCollectionStats(o).then(r=>r(e,t))},updateCurrentUser(o,r){return a.updateCurrentUser(o,r).then(n=>n(e,t))}}};class Ce extends I{connectSocialNetworkProvider(t,e){return T(this.configuration).connectSocialNetworkProvider(t,e).then(a=>a(this.axios,this.basePath))}disconnectSocialNetworkProvider(t,e){return T(this.configuration).disconnectSocialNetworkProvider(t,e).then(a=>a(this.axios,this.basePath))}getCurrentUser(t){return T(this.configuration).getCurrentUser(t).then(e=>e(this.axios,this.basePath))}getPublicUserByName(t,e){return T(this.configuration).getPublicUserByName(t,e).then(a=>a(this.axios,this.basePath))}getSystemCollectionStats(t){return T(this.configuration).getSystemCollectionStats(t).then(e=>e(this.axios,this.basePath))}updateCurrentUser(t,e){return T(this.configuration).updateCurrentUser(t,e).then(a=>a(this.axios,this.basePath))}}const et={Facebook:"facebook",Google:"google",Twitter:"twitter",Vkontate:"vkontate",Dropbox:"dropbox",Gdrive:"gdrive"},tt={Facebook:"facebook",Google:"google",Twitter:"twitter",Vkontate:"vkontate",Dropbox:"dropbox",Gdrive:"gdrive"};class Oe{apiKey;username;password;accessToken;basePath;serverIndex;baseOptions;formDataCtor;constructor(t={}){this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions=t.baseOptions,this.formDataCtor=t.formDataCtor}isJsonMime(t){const e=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(e.test(t)||t.toLowerCase()==="application/json-patch+json")}}const rt=Object.freeze(Object.defineProperty({__proto__:null,AuthenticationApi:te,AuthenticationApiAxiosParamCreator:ee,AuthenticationApiFactory:Ge,AuthenticationApiFp:H,CollectionAccessLevelEnum:fe,CollectionApi:ae,CollectionApiAxiosParamCreator:re,CollectionApiFactory:De,CollectionApiFp:A,CollectionRefRefEnum:Le,Configuration:Oe,ConnectSocialNetworkProviderProviderEnum:et,DisconnectSocialNetworkProviderProviderEnum:tt,FilterApi:oe,FilterApiAxiosParamCreator:se,FilterApiFactory:ze,FilterApiFp:_,GetFiltersTagsSortEnum:Je,GetOrRefreshToken400ResponseErrorEnum:ke,HighlightApi:le,HighlightApiAxiosParamCreator:ne,HighlightApiFactory:We,HighlightApiFp:E,HighlightColorEnum:je,HighlightItemColorEnum:He,ImportApi:ce,ImportApiAxiosParamCreator:ie,ImportApiFactory:Ye,ImportApiFp:S,ObtainTokenGrantTypeEnum:X,RaindropAllOfCacheStatusEnum:Ne,RaindropApi:he,RaindropApiAxiosParamCreator:de,RaindropApiFactory:Ke,RaindropApiFp:g,RaindropBaseMediaInnerTypeEnum:qe,RefreshTokenGrantTypeEnum:Z,Role:Me,SortBy:Qe,TagApi:ue,TagApiAxiosParamCreator:pe,TagApiFactory:Xe,TagApiFp:f,TokenResponseTokenTypeEnum:$e,UserApi:Ce,UserApiAxiosParamCreator:me,UserApiFactory:Ze,UserApiFp:T,View:_e},Symbol.toStringTag,{value:"Module"}));var Re={exports:{}},at=function s(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var a,o,r;if(Array.isArray(t)){if(a=t.length,a!=e.length)return!1;for(o=a;o--!==0;)if(!s(t[o],e[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();if(r=Object.keys(t),a=r.length,a!==Object.keys(e).length)return!1;for(o=a;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,r[o]))return!1;for(o=a;o--!==0;){var n=r[o];if(!s(t[n],e[n]))return!1}return!0}return t!==t&&e!==e};/*!
2
+ * Determine if an object is a Buffer
3
+ *
4
+ * @author Feross Aboukhadijeh <https://feross.org>
5
+ * @license MIT
6
+ */var st=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};/*!
7
+ * MIT License
8
+ *
9
+ * Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
10
+ *
11
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
12
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
13
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
14
+ * persons to whom the Software is furnished to do so, subject to the following conditions:
15
+ *
16
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
17
+ * Software.
18
+ *
19
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
20
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
21
+ * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
22
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
+ */function ot(s){return typeof Blob>"u"?!1:s instanceof Blob||Object.prototype.toString.call(s)==="[object Blob]"}var nt=ot,D=h,ve=at,lt=st,it=nt,ye=Object.prototype.toString;function Ve(s,t){for(var e=s.length,a=0;a<e;a++){var o=s[a];if(t(o))return o}}function Pe(s){return ye.call(s)==="[object Function]"}function Ae(s){return s!==null&&typeof s=="object"}function ct(s){return Ae(s)&&Pe(s.pipe)}function dt(s){return ye.call(s)==="[object ArrayBuffer]"}function z(s,t){return s?s.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):t}function ht(s,t,e,a,o,r,n){return Ve(s[t.toLowerCase()],function(l){if(typeof l[0]=="string")return(J(e,l[0])||J(z(n,e),l[0]))&&$(t,a,o,l[1])&&N(r,l[2]);if(l[0]instanceof RegExp)return(l[0].test(e)||l[0].test(z(n,e)))&&$(t,a,o,l[1])&&N(r,l[2])})}function J(s,t){var e=s[0]==="/"?s.substr(1):s,a=t[0]==="/"?t.substr(1):t;return e===a}function $(s,t,e,a){var o=["delete","get","head","options"];if(o.indexOf(s.toLowerCase())>=0){var r=a?a.data:void 0,n=a?a.params:void 0;return N(e,n)&&W(t,r)}else return W(t,a)}function N(s,t){return t===void 0?!0:typeof t.asymmetricMatch=="function"?t.asymmetricMatch(s):ve(s,t)}function W(s,t){if(t===void 0)return!0;var e;try{e=JSON.parse(s)}catch{}return N(e||s,t)}function pt(s,t){Object.keys(s.handlers).forEach(function(e){var a=s.handlers[e].indexOf(t);a>-1&&s.handlers[e].splice(a,1)})}function be(s,t,e,a){if(a>0){setTimeout(be,a,s,t,e);return}!e.config.validateStatus||e.config.validateStatus(e.status)?s(e):t(ge("Request failed with status code "+e.status,e.config,e))}function ge(s,t,e,a){if(typeof D.AxiosError=="function")return D.AxiosError.from(new Error(s),a,t,null,e);var o=new Error(s);return o.isAxiosError=!0,o.config=t,e!==void 0&&(o.response=e),a!==void 0&&(o.code=a),o.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},o}function ut(s){var t=`Could not find mock for:
24
+ `+JSON.stringify(s,["method","url"],2),e=new Error(t);return e.isCouldNotFindMockError=!0,e.url=s.url,e.method=s.method,e}var we={find:Ve,findHandler:ht,purgeIfReplyOnce:pt,settle:be,isStream:ct,isArrayBuffer:dt,isFunction:Pe,isObjectOrArray:Ae,isBuffer:lt,isBlob:it,isBodyOrParametersMatching:$,isEqual:ve,createAxiosError:ge,createCouldNotFindMockError:ut},w=we;function mt(s){return w.isArrayBuffer(s)||w.isBuffer(s)||w.isStream(s)||w.isBlob(s)?s:w.isObjectOrArray(s)?JSON.parse(JSON.stringify(s)):s}function L(s,t){return{status:s[0],data:mt(s[1]),headers:s[2],config:t,request:{responseURL:t.url}}}function Y(s,t,e,a){var o=a.baseURL;if(a.baseURL&&!/^https?:/.test(a.baseURL)&&(o=void 0),typeof s.originalAdapter=="function")return s.originalAdapter(a).then(t,e);s.axiosInstanceWithoutInterceptors(Object.assign({},a,{baseURL:o,adapter:s.originalAdapter,transformRequest:[],transformResponse:[]})).then(t,e)}function Ct(s,t,e,a){var o=a.url||"";a.baseURL&&o.substr(0,a.baseURL.length)===a.baseURL&&(o=o.slice(a.baseURL.length)),delete a.adapter,s.history[a.method].push(a);var r=w.findHandler(s.handlers,a.method,o,a.data,a.params,a.headers&&a.headers.constructor.name==="AxiosHeaders"?Object.assign({},a.headers):a.headers,a.baseURL);if(r)if(r.length===7&&w.purgeIfReplyOnce(s,r),r.length===2)Y(s,t,e,a);else if(typeof r[3]!="function")w.settle(t,e,L(r.slice(3),a),k(s,r));else{var n=r[3](a);typeof n.then!="function"?w.settle(t,e,L(n,a),k(s,r)):n.then(function(l){l.config&&l.status?w.settle(t,e,L([l.status,l.data,l.headers],l.config),0):w.settle(t,e,L(l,a),k(s,r))},function(l){s.delayResponse>0?setTimeout(function(){e(l)},k(s,r)):e(l)})}else switch(s.onNoMatch){case"passthrough":Y(s,t,e,a);break;case"throwException":throw w.createCouldNotFindMockError(a);default:w.settle(t,e,{status:404,config:a},s.delayResponse)}}function k(s,t){var e;return t.length===8&&(e=t[7]),e||s.delayResponse}var Ot=Ct,Rt=Ot,B=we,G=["get","post","head","delete","patch","put","options","list","link","unlink"];function vt(){return function(s){var t=this;return new Promise(function(e,a){Rt(t,e,a,s)})}.bind(this)}function xe(){return G.reduce(function(s,t){return s[t]=[],s},{})}function Ue(){Te.call(this),Be.call(this)}function Te(){this.handlers=xe()}function Be(){this.history=xe()}function F(s,t){if(Ue.call(this),s)this.axiosInstance=s,this.axiosInstanceWithoutInterceptors=s.create?s.create():void 0,this.originalAdapter=s.defaults.adapter,this.delayResponse=t&&t.delayResponse>0?t.delayResponse:null,this.onNoMatch=t&&t.onNoMatch||null,s.defaults.adapter=this.adapter.call(this);else throw new Error("Please provide an instance of axios to mock")}F.prototype.adapter=vt;F.prototype.restore=function(){this.axiosInstance&&(this.axiosInstance.defaults.adapter=this.originalAdapter,this.axiosInstance=void 0)};F.prototype.reset=Ue;F.prototype.resetHandlers=Te;F.prototype.resetHistory=Be;G.concat("any").forEach(function(s){var t="on"+s.charAt(0).toUpperCase()+s.slice(1);F.prototype[t]=function(n,a,o){var r=this,n=n===void 0?/.*/:n;function l(y,V,x){var U=[n,a,o,y,V,x];return j(s,r.handlers,U),r}function i(y,V,x,U){var M=[n,a,o,V,x,U,!1,y];return j(s,r.handlers,M),r}function c(y){return function(V,x,U){i(y,V,x,U)}}function d(y,V,x){var U=[n,a,o,y,V,x,!0];return j(s,r.handlers,U),r}return{reply:l,replyOnce:d,withDelayInMs:c,passThrough:function(){var V=[n,a];return j(s,r.handlers,V),r},abortRequest:function(){return l(function(y){var V=B.createAxiosError("Request aborted",y,void 0,"ECONNABORTED");return Promise.reject(V)})},abortRequestOnce:function(){return d(function(y){var V=B.createAxiosError("Request aborted",y,void 0,"ECONNABORTED");return Promise.reject(V)})},networkError:function(){return l(function(y){var V=B.createAxiosError("Network Error",y);return Promise.reject(V)})},networkErrorOnce:function(){return d(function(y){var V=B.createAxiosError("Network Error",y);return Promise.reject(V)})},timeout:function(){return l(function(y){var V=B.createAxiosError(y.timeoutErrorMessage||"timeout of "+y.timeout+"ms exceeded",y,void 0,y.transitional&&y.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED");return Promise.reject(V)})},timeoutOnce:function(){return d(function(y){var V=B.createAxiosError(y.timeoutErrorMessage||"timeout of "+y.timeout+"ms exceeded",y,void 0,y.transitional&&y.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED");return Promise.reject(V)})}}}});function yt(s,t,e){for(var a=-1,o=0;o<t[s].length;o+=1){var r=t[s][o],n=r.length===7,l=r[0]instanceof RegExp&&e[0]instanceof RegExp?String(r[0])===String(e[0]):r[0]===e[0],i=l&&B.isEqual(r[1],e[1])&&B.isEqual(r[2],e[2]);i&&!n&&(a=o)}return a}function j(s,t,e){if(s==="any")G.forEach(function(o){t[o].push(e)});else{var a=yt(s,t,e);a>-1&&e.length<7?t[s].splice(a,1,e):t[s].push(e)}}Re.exports=F;Re.exports.default=F;class Vt extends te{async exchangeToken(t,e){return this.getOrRefreshToken({...t,grant_type:X.AuthorizationCode},e).then(a=>{if(K(a.data))throw new Error(`Request failed with error: ${a.data.errorMessage}`);return a})}async refreshToken(t,e){return this.getOrRefreshToken({...t,grant_type:Z.RefreshToken},e).then(a=>{if(K(a.data))throw new Error(`Request failed with error: ${a.data.errorMessage}`);return a})}}function K(s){return"result"in s&&s.result===!1}class q{_data;_parent=null;_children=[];constructor(t,e){this._data=t,e&&this.addChildren(...e)}get data(){return this._data}get parent(){return this._parent}set parent(t){this._parent=t,t._children.push(this)}isRoot(){return this._parent===null}get children(){return this._children}addChildren(...t){this._children.push(...t);for(const e of t)e._parent=this}traverse(t){t(this);for(const e of this.children)e.traverse(t)}}function Ie(s,t,e){const a=e.filter(o=>o.parent==t);for(const o of a){const r=o.toNode();Ie(r,o.id,e),s.addChildren(r)}}function Fe(s,t){const e=new q(s);return Ie(e,null,t),e}const Pt=Object.freeze(Object.defineProperty({__proto__:null,TreeNode:q,makeTree:Fe},Symbol.toStringTag,{value:"Module"}));class At extends ae{async getCollectionTree(){const[{data:t},{data:e}]=await Promise.all([this.getRootCollections(),this.getChildCollections()]),a=t.items.map(l=>({data:l,id:l._id.toString(),parent:null,toNode(){return new q(this.data)}})),o=e.items.map(l=>({data:l,id:l._id.toString(),parent:l.parent.$id.toString(),toNode(){return new q(this.data)}})),r=a.concat(o);return r.sort((l,i)=>(l.data?.title??"").localeCompare(i.data?.title??"")||(l.data?._id??0)-(i.data?._id??0)),Fe(null,r)}}class bt extends he{async getAllRaindrops(t,e,a){const o=t??0,r=e?.sort??"",n=e?.pageSize??50,l=e?.search??"",{data:i}=await this.getRaindrops(o,r,n,0,l,a),c=i.count,d=Math.ceil(c/n),y=Array.from(Array(d).keys());y.shift();const V=await Promise.all(y.map(U=>this.getRaindrops(o,r,n,U,l,a).then(({data:M})=>M))),x=[...i.items];for(const U of V)x.push(...U.items);return x}}class Ee{client;configuration;auth;user;collection;filter;highlight;import;raindrop;tag;constructor(t,e){this.client=e??h,this.configuration=t??new Oe,this.auth=new Vt(t,void 0,this.client),this.collection=new At(t,void 0,this.client),this.filter=new oe(t,void 0,this.client),this.highlight=new le(t,void 0,this.client),this.import=new ce(t,void 0,this.client),this.raindrop=new bt(t,void 0,this.client),this.tag=new ue(t,void 0,this.client),this.user=new Ce(t,void 0,this.client)}}const gt=Object.freeze(Object.defineProperty({__proto__:null,Raindrop:Ee},Symbol.toStringTag,{value:"Module"})),wt=Object.freeze(Object.defineProperty({__proto__:null,tree:Pt},Symbol.toStringTag,{value:"Module"})),xt=Ee;exports.client=gt;exports.default=xt;exports.generated=rt;exports.utils=wt;