@opencloud-eu/web-client 4.1.0 → 4.2.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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../../index-DAa_DzDf.cjs"),m="https://localhost:9200/graph".replace(/\/+$/,""),b={csv:","};class y{constructor(t,e=m,o=h.axios){this.basePath=e,this.axios=o,t&&(this.configuration=t,this.basePath=t.basePath??e)}configuration}class we extends Error{constructor(t,e){super(e),this.field=t,this.name="RequiredError"}}const u={},P="https://example.com",p=function(n,t,e){if(e==null)throw new we(t,`Required parameter ${t} was null or undefined when calling ${n}.`)},U=function(n,t){t&&(t.username||t.password)&&(n.auth={username:t.username,password:t.password})},R=async function(n,t){if(t&&t.accessToken){const e=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;n.Authorization="Bearer "+e}};function _(n,t,e=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(o=>_(n,o,e)):Object.keys(t).forEach(o=>_(n,t[o],`${e}${e!==""?".":""}${o}`)):n.has(e)?n.append(e,t):n.set(e,t))}const V=function(n,...t){const e=new URLSearchParams(n.search);_(e,t),n.search=e.toString()},S=function(n,t,e){const o=typeof n!="string";return(o&&e&&e.isJsonMime?e.isJsonMime(t.headers["Content-Type"]):o)?JSON.stringify(n!==void 0?n:{}):n||""},v=function(n){return n.pathname+n.search+n.hash},A=function(n,t,e,o){return(a=t,s=e)=>{const r={...n.options,url:(a.defaults.baseURL?"":o?.basePath??s)+n.url};return a.request(r)}},Ie={Class:"class",Course:"course"},De={Internal:"internal",View:"view",Upload:"upload",Edit:"edit",CreateOnly:"createOnly",BlocksDownload:"blocksDownload"},ee=function(n){return{getActivities:async(t,e={})=>{const o="/v1beta1/extensions/org.libregraph/activities",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),t!==void 0&&(i.kql=t),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}}}},K=function(n){const t=ee(n);return{async getActivities(e,o){const a=await t.getActivities(e,o),s=n?.serverIndex??0,r=u["ActivitiesApi.getActivities"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},Ee=function(n,t,e){const o=K(n);return{getActivities(a,s){return o.getActivities(a,s).then(r=>r(e,t))}}};class Te extends y{getActivities(t,e){return K(this.configuration).getActivities(t,e).then(o=>o(this.axios,this.basePath))}}const se=function(n){return{getApplication:async(t,e={})=>{p("getApplication","applicationId",t);const o="/v1.0/applications/{application-id}".replace("{application-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},listApplications:async(t={})=>{const e="/v1.0/applications",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};U(s,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}}}},q=function(n){const t=se(n);return{async getApplication(e,o){const a=await t.getApplication(e,o),s=n?.serverIndex??0,r=u["ApplicationsApi.getApplication"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listApplications(e){const o=await t.listApplications(e),a=n?.serverIndex??0,s=u["ApplicationsApi.listApplications"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)}}},Fe=function(n,t,e){const o=q(n);return{getApplication(a,s){return o.getApplication(a,s).then(r=>r(e,t))},listApplications(a){return o.listApplications(a).then(s=>s(e,t))}}};class Be extends y{getApplication(t,e){return q(this.configuration).getApplication(t,e).then(o=>o(this.axios,this.basePath))}listApplications(t){return q(this.configuration).listApplications(t).then(e=>e(this.axios,this.basePath))}}const re=function(n){return{deleteDriveItem:async(t,e,o={})=>{p("deleteDriveItem","driveId",t),p("deleteDriveItem","itemId",e);const a="/v1beta1/drives/{drive-id}/items/{item-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};U(l,n),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},getDriveItem:async(t,e,o={})=>{p("getDriveItem","driveId",t),p("getDriveItem","itemId",e);const a="/v1beta1/drives/{drive-id}/items/{item-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"GET",...r,...o},i={},c={};U(l,n),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},updateDriveItem:async(t,e,o,a={})=>{p("updateDriveItem","driveId",t),p("updateDriveItem","itemId",e),p("updateDriveItem","driveItem",o);const s="/v1beta1/drives/{drive-id}/items/{item-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"PATCH",...l,...a},c={},d={};U(i,n),c["Content-Type"]="application/json",V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},i.data=S(o,i,n),{url:v(r),options:i}}}},G=function(n){const t=re(n);return{async deleteDriveItem(e,o,a){const s=await t.deleteDriveItem(e,o,a),r=n?.serverIndex??0,l=u["DriveItemApi.deleteDriveItem"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async getDriveItem(e,o,a){const s=await t.getDriveItem(e,o,a),r=n?.serverIndex??0,l=u["DriveItemApi.getDriveItem"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async updateDriveItem(e,o,a,s){const r=await t.updateDriveItem(e,o,a,s),l=n?.serverIndex??0,i=u["DriveItemApi.updateDriveItem"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)}}},Me=function(n,t,e){const o=G(n);return{deleteDriveItem(a,s,r){return o.deleteDriveItem(a,s,r).then(l=>l(e,t))},getDriveItem(a,s,r){return o.getDriveItem(a,s,r).then(l=>l(e,t))},updateDriveItem(a,s,r,l){return o.updateDriveItem(a,s,r,l).then(i=>i(e,t))}}};class Le extends y{deleteDriveItem(t,e,o){return G(this.configuration).deleteDriveItem(t,e,o).then(a=>a(this.axios,this.basePath))}getDriveItem(t,e,o){return G(this.configuration).getDriveItem(t,e,o).then(a=>a(this.axios,this.basePath))}updateDriveItem(t,e,o,a){return G(this.configuration).updateDriveItem(t,e,o,a).then(s=>s(this.axios,this.basePath))}}const ae=function(n){return{createDrive:async(t,e={})=>{p("createDrive","drive",t);const o="/v1.0/drives",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"POST",...s,...e},l={},i={};U(r,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}},deleteDrive:async(t,e,o={})=>{p("deleteDrive","driveId",t);const a="/v1.0/drives/{drive-id}".replace("{drive-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};U(l,n),e!=null&&(i["If-Match"]=String(e)),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},getDrive:async(t,e,o={})=>{p("getDrive","driveId",t);const a="/v1.0/drives/{drive-id}".replace("{drive-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"GET",...r,...o},i={},c={};U(l,n),e&&(c.$select=Array.from(e).join(b.csv)),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},updateDrive:async(t,e,o={})=>{p("updateDrive","driveId",t),p("updateDrive","driveUpdate",e);const a="/v1.0/drives/{drive-id}".replace("{drive-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"PATCH",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}}}},B=function(n){const t=ae(n);return{async createDrive(e,o){const a=await t.createDrive(e,o),s=n?.serverIndex??0,r=u["DrivesApi.createDrive"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async deleteDrive(e,o,a){const s=await t.deleteDrive(e,o,a),r=n?.serverIndex??0,l=u["DrivesApi.deleteDrive"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async getDrive(e,o,a){const s=await t.getDrive(e,o,a),r=n?.serverIndex??0,l=u["DrivesApi.getDrive"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async updateDrive(e,o,a){const s=await t.updateDrive(e,o,a),r=n?.serverIndex??0,l=u["DrivesApi.updateDrive"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)}}},Ge=function(n,t,e){const o=B(n);return{createDrive(a,s){return o.createDrive(a,s).then(r=>r(e,t))},deleteDrive(a,s,r){return o.deleteDrive(a,s,r).then(l=>l(e,t))},getDrive(a,s,r){return o.getDrive(a,s,r).then(l=>l(e,t))},updateDrive(a,s,r){return o.updateDrive(a,s,r).then(l=>l(e,t))}}};class je extends y{createDrive(t,e){return B(this.configuration).createDrive(t,e).then(o=>o(this.axios,this.basePath))}deleteDrive(t,e,o){return B(this.configuration).deleteDrive(t,e,o).then(a=>a(this.axios,this.basePath))}getDrive(t,e,o){return B(this.configuration).getDrive(t,e,o).then(a=>a(this.axios,this.basePath))}updateDrive(t,e,o){return B(this.configuration).updateDrive(t,e,o).then(a=>a(this.axios,this.basePath))}}const ge={LibreGraphHasTrashedItems:"@libre.graph.hasTrashedItems"},te=function(n){return{listAllDrives:async(t,e,o={})=>{const a="/v1.0/drives",s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"GET",...r,...o},i={},c={};U(l,n),t!==void 0&&(c.$orderby=t),e!==void 0&&(c.$filter=e),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},listAllDrivesBeta:async(t,e,o,a,s={})=>{const r="/v1beta1/drives",l=new URL(r,P);let i;n&&(i=n.baseOptions);const c={method:"GET",...i,...s},d={},O={};U(c,n),t!==void 0&&(O.$orderby=t),e!==void 0&&(O.$filter=e),o!==void 0&&(O.$expand=o),a&&(O.$select=Array.from(a).join(b.csv)),V(l,O);let x=i&&i.headers?i.headers:{};return c.headers={...d,...x,...s.headers},{url:v(l),options:c}}}},Q=function(n){const t=te(n);return{async listAllDrives(e,o,a){const s=await t.listAllDrives(e,o,a),r=n?.serverIndex??0,l=u["DrivesGetDrivesApi.listAllDrives"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async listAllDrivesBeta(e,o,a,s,r){const l=await t.listAllDrivesBeta(e,o,a,s,r),i=n?.serverIndex??0,c=u["DrivesGetDrivesApi.listAllDrivesBeta"]?.[i]?.url;return(d,O)=>A(l,h.axios,m,n)(d,c||O)}}},He=function(n,t,e){const o=Q(n);return{listAllDrives(a,s,r){return o.listAllDrives(a,s,r).then(l=>l(e,t))},listAllDrivesBeta(a,s,r,l,i){return o.listAllDrivesBeta(a,s,r,l,i).then(c=>c(e,t))}}};class $e extends y{listAllDrives(t,e,o){return Q(this.configuration).listAllDrives(t,e,o).then(a=>a(this.axios,this.basePath))}listAllDrivesBeta(t,e,o,a,s){return Q(this.configuration).listAllDrivesBeta(t,e,o,a,s).then(r=>r(this.axios,this.basePath))}}const qe={LibreGraphHasTrashedItems:"@libre.graph.hasTrashedItems"},oe=function(n){return{createLink:async(t,e,o,a={})=>{p("createLink","driveId",t),p("createLink","itemId",e);const s="/v1beta1/drives/{drive-id}/items/{item-id}/createLink".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"POST",...l,...a},c={},d={};U(i,n),c["Content-Type"]="application/json",V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},i.data=S(o,i,n),{url:v(r),options:i}},deletePermission:async(t,e,o,a={})=>{p("deletePermission","driveId",t),p("deletePermission","itemId",e),p("deletePermission","permId",o);const s="/v1beta1/drives/{drive-id}/items/{item-id}/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))).replace("{perm-id}",encodeURIComponent(String(o))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"DELETE",...l,...a},c={},d={};U(i,n),V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},{url:v(r),options:i}},getPermission:async(t,e,o,a={})=>{p("getPermission","driveId",t),p("getPermission","itemId",e),p("getPermission","permId",o);const s="/v1beta1/drives/{drive-id}/items/{item-id}/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))).replace("{perm-id}",encodeURIComponent(String(o))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"GET",...l,...a},c={},d={};U(i,n),V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},{url:v(r),options:i}},invite:async(t,e,o,a={})=>{p("invite","driveId",t),p("invite","itemId",e);const s="/v1beta1/drives/{drive-id}/items/{item-id}/invite".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"POST",...l,...a},c={},d={};U(i,n),c["Content-Type"]="application/json",V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},i.data=S(o,i,n),{url:v(r),options:i}},listPermissions:async(t,e,o,a,s,r,l={})=>{p("listPermissions","driveId",t),p("listPermissions","itemId",e);const i="/v1beta1/drives/{drive-id}/items/{item-id}/permissions".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))),c=new URL(i,P);let d;n&&(d=n.baseOptions);const O={method:"GET",...d,...l},x={},w={};U(O,n),o!==void 0&&(w.$filter=o),a&&(w.$select=Array.from(a).join(b.csv)),s!==void 0&&(w.$count=s),r!==void 0&&(w.$top=r),V(c,w);let Ce=d&&d.headers?d.headers:{};return O.headers={...x,...Ce,...l.headers},{url:v(c),options:O}},setPermissionPassword:async(t,e,o,a,s={})=>{p("setPermissionPassword","driveId",t),p("setPermissionPassword","itemId",e),p("setPermissionPassword","permId",o),p("setPermissionPassword","sharingLinkPassword",a);const r="/v1beta1/drives/{drive-id}/items/{item-id}/permissions/{perm-id}/setPassword".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))).replace("{perm-id}",encodeURIComponent(String(o))),l=new URL(r,P);let i;n&&(i=n.baseOptions);const c={method:"POST",...i,...s},d={},O={};U(c,n),d["Content-Type"]="application/json",V(l,O);let x=i&&i.headers?i.headers:{};return c.headers={...d,...x,...s.headers},c.data=S(a,c,n),{url:v(l),options:c}},updatePermission:async(t,e,o,a,s={})=>{p("updatePermission","driveId",t),p("updatePermission","itemId",e),p("updatePermission","permId",o),p("updatePermission","permission",a);const r="/v1beta1/drives/{drive-id}/items/{item-id}/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))).replace("{perm-id}",encodeURIComponent(String(o))),l=new URL(r,P);let i;n&&(i=n.baseOptions);const c={method:"PATCH",...i,...s},d={},O={};U(c,n),d["Content-Type"]="application/json",V(l,O);let x=i&&i.headers?i.headers:{};return c.headers={...d,...x,...s.headers},c.data=S(a,c,n),{url:v(l),options:c}}}},E=function(n){const t=oe(n);return{async createLink(e,o,a,s){const r=await t.createLink(e,o,a,s),l=n?.serverIndex??0,i=u["DrivesPermissionsApi.createLink"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async deletePermission(e,o,a,s){const r=await t.deletePermission(e,o,a,s),l=n?.serverIndex??0,i=u["DrivesPermissionsApi.deletePermission"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async getPermission(e,o,a,s){const r=await t.getPermission(e,o,a,s),l=n?.serverIndex??0,i=u["DrivesPermissionsApi.getPermission"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async invite(e,o,a,s){const r=await t.invite(e,o,a,s),l=n?.serverIndex??0,i=u["DrivesPermissionsApi.invite"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async listPermissions(e,o,a,s,r,l,i){const c=await t.listPermissions(e,o,a,s,r,l,i),d=n?.serverIndex??0,O=u["DrivesPermissionsApi.listPermissions"]?.[d]?.url;return(x,w)=>A(c,h.axios,m,n)(x,O||w)},async setPermissionPassword(e,o,a,s,r){const l=await t.setPermissionPassword(e,o,a,s,r),i=n?.serverIndex??0,c=u["DrivesPermissionsApi.setPermissionPassword"]?.[i]?.url;return(d,O)=>A(l,h.axios,m,n)(d,c||O)},async updatePermission(e,o,a,s,r){const l=await t.updatePermission(e,o,a,s,r),i=n?.serverIndex??0,c=u["DrivesPermissionsApi.updatePermission"]?.[i]?.url;return(d,O)=>A(l,h.axios,m,n)(d,c||O)}}},Qe=function(n,t,e){const o=E(n);return{createLink(a,s,r,l){return o.createLink(a,s,r,l).then(i=>i(e,t))},deletePermission(a,s,r,l){return o.deletePermission(a,s,r,l).then(i=>i(e,t))},getPermission(a,s,r,l){return o.getPermission(a,s,r,l).then(i=>i(e,t))},invite(a,s,r,l){return o.invite(a,s,r,l).then(i=>i(e,t))},listPermissions(a,s,r,l,i,c,d){return o.listPermissions(a,s,r,l,i,c,d).then(O=>O(e,t))},setPermissionPassword(a,s,r,l,i){return o.setPermissionPassword(a,s,r,l,i).then(c=>c(e,t))},updatePermission(a,s,r,l,i){return o.updatePermission(a,s,r,l,i).then(c=>c(e,t))}}};class Ne extends y{createLink(t,e,o,a){return E(this.configuration).createLink(t,e,o,a).then(s=>s(this.axios,this.basePath))}deletePermission(t,e,o,a){return E(this.configuration).deletePermission(t,e,o,a).then(s=>s(this.axios,this.basePath))}getPermission(t,e,o,a){return E(this.configuration).getPermission(t,e,o,a).then(s=>s(this.axios,this.basePath))}invite(t,e,o,a){return E(this.configuration).invite(t,e,o,a).then(s=>s(this.axios,this.basePath))}listPermissions(t,e,o,a,s,r,l){return E(this.configuration).listPermissions(t,e,o,a,s,r,l).then(i=>i(this.axios,this.basePath))}setPermissionPassword(t,e,o,a,s){return E(this.configuration).setPermissionPassword(t,e,o,a,s).then(r=>r(this.axios,this.basePath))}updatePermission(t,e,o,a,s){return E(this.configuration).updatePermission(t,e,o,a,s).then(r=>r(this.axios,this.basePath))}}const ke={LibreGraphPermissionsActionsAllowedValues:"@libre.graph.permissions.actions.allowedValues",LibreGraphPermissionsRolesAllowedValues:"@libre.graph.permissions.roles.allowedValues",Value:"value"},ne=function(n){return{createDriveItem:async(t,e,o={})=>{p("createDriveItem","driveId",t);const a="/v1beta1/drives/{drive-id}/root/children".replace("{drive-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},createLinkSpaceRoot:async(t,e,o={})=>{p("createLinkSpaceRoot","driveId",t);const a="/v1beta1/drives/{drive-id}/root/createLink".replace("{drive-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},deletePermissionSpaceRoot:async(t,e,o={})=>{p("deletePermissionSpaceRoot","driveId",t),p("deletePermissionSpaceRoot","permId",e);const a="/v1beta1/drives/{drive-id}/root/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{perm-id}",encodeURIComponent(String(e))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};U(l,n),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},getPermissionSpaceRoot:async(t,e,o={})=>{p("getPermissionSpaceRoot","driveId",t),p("getPermissionSpaceRoot","permId",e);const a="/v1beta1/drives/{drive-id}/root/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{perm-id}",encodeURIComponent(String(e))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"GET",...r,...o},i={},c={};U(l,n),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},getRoot:async(t,e={})=>{p("getRoot","driveId",t);const o="/v1.0/drives/{drive-id}/root".replace("{drive-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},inviteSpaceRoot:async(t,e,o={})=>{p("inviteSpaceRoot","driveId",t);const a="/v1beta1/drives/{drive-id}/root/invite".replace("{drive-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},listPermissionsSpaceRoot:async(t,e,o,a,s,r={})=>{p("listPermissionsSpaceRoot","driveId",t);const l="/v1beta1/drives/{drive-id}/root/permissions".replace("{drive-id}",encodeURIComponent(String(t))),i=new URL(l,P);let c;n&&(c=n.baseOptions);const d={method:"GET",...c,...r},O={},x={};U(d,n),e!==void 0&&(x.$filter=e),o&&(x.$select=Array.from(o).join(b.csv)),a!==void 0&&(x.$count=a),s!==void 0&&(x.$top=s),V(i,x);let w=c&&c.headers?c.headers:{};return d.headers={...O,...w,...r.headers},{url:v(i),options:d}},setPermissionPasswordSpaceRoot:async(t,e,o,a={})=>{p("setPermissionPasswordSpaceRoot","driveId",t),p("setPermissionPasswordSpaceRoot","permId",e),p("setPermissionPasswordSpaceRoot","sharingLinkPassword",o);const s="/v1beta1/drives/{drive-id}/root/permissions/{perm-id}/setPassword".replace("{drive-id}",encodeURIComponent(String(t))).replace("{perm-id}",encodeURIComponent(String(e))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"POST",...l,...a},c={},d={};U(i,n),c["Content-Type"]="application/json",V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},i.data=S(o,i,n),{url:v(r),options:i}},updatePermissionSpaceRoot:async(t,e,o,a={})=>{p("updatePermissionSpaceRoot","driveId",t),p("updatePermissionSpaceRoot","permId",e),p("updatePermissionSpaceRoot","permission",o);const s="/v1beta1/drives/{drive-id}/root/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{perm-id}",encodeURIComponent(String(e))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"PATCH",...l,...a},c={},d={};U(i,n),c["Content-Type"]="application/json",V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},i.data=S(o,i,n),{url:v(r),options:i}}}},I=function(n){const t=ne(n);return{async createDriveItem(e,o,a){const s=await t.createDriveItem(e,o,a),r=n?.serverIndex??0,l=u["DrivesRootApi.createDriveItem"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async createLinkSpaceRoot(e,o,a){const s=await t.createLinkSpaceRoot(e,o,a),r=n?.serverIndex??0,l=u["DrivesRootApi.createLinkSpaceRoot"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async deletePermissionSpaceRoot(e,o,a){const s=await t.deletePermissionSpaceRoot(e,o,a),r=n?.serverIndex??0,l=u["DrivesRootApi.deletePermissionSpaceRoot"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async getPermissionSpaceRoot(e,o,a){const s=await t.getPermissionSpaceRoot(e,o,a),r=n?.serverIndex??0,l=u["DrivesRootApi.getPermissionSpaceRoot"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async getRoot(e,o){const a=await t.getRoot(e,o),s=n?.serverIndex??0,r=u["DrivesRootApi.getRoot"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async inviteSpaceRoot(e,o,a){const s=await t.inviteSpaceRoot(e,o,a),r=n?.serverIndex??0,l=u["DrivesRootApi.inviteSpaceRoot"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async listPermissionsSpaceRoot(e,o,a,s,r,l){const i=await t.listPermissionsSpaceRoot(e,o,a,s,r,l),c=n?.serverIndex??0,d=u["DrivesRootApi.listPermissionsSpaceRoot"]?.[c]?.url;return(O,x)=>A(i,h.axios,m,n)(O,d||x)},async setPermissionPasswordSpaceRoot(e,o,a,s){const r=await t.setPermissionPasswordSpaceRoot(e,o,a,s),l=n?.serverIndex??0,i=u["DrivesRootApi.setPermissionPasswordSpaceRoot"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async updatePermissionSpaceRoot(e,o,a,s){const r=await t.updatePermissionSpaceRoot(e,o,a,s),l=n?.serverIndex??0,i=u["DrivesRootApi.updatePermissionSpaceRoot"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)}}},We=function(n,t,e){const o=I(n);return{createDriveItem(a,s,r){return o.createDriveItem(a,s,r).then(l=>l(e,t))},createLinkSpaceRoot(a,s,r){return o.createLinkSpaceRoot(a,s,r).then(l=>l(e,t))},deletePermissionSpaceRoot(a,s,r){return o.deletePermissionSpaceRoot(a,s,r).then(l=>l(e,t))},getPermissionSpaceRoot(a,s,r){return o.getPermissionSpaceRoot(a,s,r).then(l=>l(e,t))},getRoot(a,s){return o.getRoot(a,s).then(r=>r(e,t))},inviteSpaceRoot(a,s,r){return o.inviteSpaceRoot(a,s,r).then(l=>l(e,t))},listPermissionsSpaceRoot(a,s,r,l,i,c){return o.listPermissionsSpaceRoot(a,s,r,l,i,c).then(d=>d(e,t))},setPermissionPasswordSpaceRoot(a,s,r,l){return o.setPermissionPasswordSpaceRoot(a,s,r,l).then(i=>i(e,t))},updatePermissionSpaceRoot(a,s,r,l){return o.updatePermissionSpaceRoot(a,s,r,l).then(i=>i(e,t))}}};class ze extends y{createDriveItem(t,e,o){return I(this.configuration).createDriveItem(t,e,o).then(a=>a(this.axios,this.basePath))}createLinkSpaceRoot(t,e,o){return I(this.configuration).createLinkSpaceRoot(t,e,o).then(a=>a(this.axios,this.basePath))}deletePermissionSpaceRoot(t,e,o){return I(this.configuration).deletePermissionSpaceRoot(t,e,o).then(a=>a(this.axios,this.basePath))}getPermissionSpaceRoot(t,e,o){return I(this.configuration).getPermissionSpaceRoot(t,e,o).then(a=>a(this.axios,this.basePath))}getRoot(t,e){return I(this.configuration).getRoot(t,e).then(o=>o(this.axios,this.basePath))}inviteSpaceRoot(t,e,o){return I(this.configuration).inviteSpaceRoot(t,e,o).then(a=>a(this.axios,this.basePath))}listPermissionsSpaceRoot(t,e,o,a,s,r){return I(this.configuration).listPermissionsSpaceRoot(t,e,o,a,s,r).then(l=>l(this.axios,this.basePath))}setPermissionPasswordSpaceRoot(t,e,o,a){return I(this.configuration).setPermissionPasswordSpaceRoot(t,e,o,a).then(s=>s(this.axios,this.basePath))}updatePermissionSpaceRoot(t,e,o,a){return I(this.configuration).updatePermissionSpaceRoot(t,e,o,a).then(s=>s(this.axios,this.basePath))}}const Je={LibreGraphPermissionsActionsAllowedValues:"@libre.graph.permissions.actions.allowedValues",LibreGraphPermissionsRolesAllowedValues:"@libre.graph.permissions.roles.allowedValues",Value:"value"},le=function(n){return{addUserToClass:async(t,e,o={})=>{p("addUserToClass","classId",t),p("addUserToClass","classMemberReference",e);const a="/v1.0/education/classes/{class-id}/members/$ref".replace("{class-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};await R(i,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},createClass:async(t,e={})=>{p("createClass","educationClass",t);const o="/v1.0/education/classes",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"POST",...s,...e},l={},i={};await R(l,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}},deleteClass:async(t,e={})=>{p("deleteClass","classId",t);const o="/v1.0/education/classes/{class-id}".replace("{class-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"DELETE",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},deleteUserFromClass:async(t,e,o={})=>{p("deleteUserFromClass","classId",t),p("deleteUserFromClass","userId",e);const a="/v1.0/education/classes/{class-id}/members/{user-id}/$ref".replace("{class-id}",encodeURIComponent(String(t))).replace("{user-id}",encodeURIComponent(String(e))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};await R(i,n),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},getClass:async(t,e={})=>{p("getClass","classId",t);const o="/v1.0/education/classes/{class-id}".replace("{class-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},listClassMembers:async(t,e={})=>{p("listClassMembers","classId",t);const o="/v1.0/education/classes/{class-id}/members".replace("{class-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},listClasses:async(t={})=>{const e="/v1.0/education/classes",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};await R(r,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}},updateClass:async(t,e,o={})=>{p("updateClass","classId",t),p("updateClass","educationClass",e);const a="/v1.0/education/classes/{class-id}".replace("{class-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"PATCH",...r,...o},i={},c={};await R(i,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}}}},D=function(n){const t=le(n);return{async addUserToClass(e,o,a){const s=await t.addUserToClass(e,o,a),r=n?.serverIndex??0,l=u["EducationClassApi.addUserToClass"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async createClass(e,o){const a=await t.createClass(e,o),s=n?.serverIndex??0,r=u["EducationClassApi.createClass"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async deleteClass(e,o){const a=await t.deleteClass(e,o),s=n?.serverIndex??0,r=u["EducationClassApi.deleteClass"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async deleteUserFromClass(e,o,a){const s=await t.deleteUserFromClass(e,o,a),r=n?.serverIndex??0,l=u["EducationClassApi.deleteUserFromClass"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async getClass(e,o){const a=await t.getClass(e,o),s=n?.serverIndex??0,r=u["EducationClassApi.getClass"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listClassMembers(e,o){const a=await t.listClassMembers(e,o),s=n?.serverIndex??0,r=u["EducationClassApi.listClassMembers"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listClasses(e){const o=await t.listClasses(e),a=n?.serverIndex??0,s=u["EducationClassApi.listClasses"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)},async updateClass(e,o,a){const s=await t.updateClass(e,o,a),r=n?.serverIndex??0,l=u["EducationClassApi.updateClass"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)}}},_e=function(n,t,e){const o=D(n);return{addUserToClass(a,s,r){return o.addUserToClass(a,s,r).then(l=>l(e,t))},createClass(a,s){return o.createClass(a,s).then(r=>r(e,t))},deleteClass(a,s){return o.deleteClass(a,s).then(r=>r(e,t))},deleteUserFromClass(a,s,r){return o.deleteUserFromClass(a,s,r).then(l=>l(e,t))},getClass(a,s){return o.getClass(a,s).then(r=>r(e,t))},listClassMembers(a,s){return o.listClassMembers(a,s).then(r=>r(e,t))},listClasses(a){return o.listClasses(a).then(s=>s(e,t))},updateClass(a,s,r){return o.updateClass(a,s,r).then(l=>l(e,t))}}};class Ke extends y{addUserToClass(t,e,o){return D(this.configuration).addUserToClass(t,e,o).then(a=>a(this.axios,this.basePath))}createClass(t,e){return D(this.configuration).createClass(t,e).then(o=>o(this.axios,this.basePath))}deleteClass(t,e){return D(this.configuration).deleteClass(t,e).then(o=>o(this.axios,this.basePath))}deleteUserFromClass(t,e,o){return D(this.configuration).deleteUserFromClass(t,e,o).then(a=>a(this.axios,this.basePath))}getClass(t,e){return D(this.configuration).getClass(t,e).then(o=>o(this.axios,this.basePath))}listClassMembers(t,e){return D(this.configuration).listClassMembers(t,e).then(o=>o(this.axios,this.basePath))}listClasses(t){return D(this.configuration).listClasses(t).then(e=>e(this.axios,this.basePath))}updateClass(t,e,o){return D(this.configuration).updateClass(t,e,o).then(a=>a(this.axios,this.basePath))}}const ie=function(n){return{addTeacherToClass:async(t,e,o={})=>{p("addTeacherToClass","classId",t),p("addTeacherToClass","classTeacherReference",e);const a="/v1.0/education/classes/{class-id}/teachers/$ref".replace("{class-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};await R(i,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},deleteTeacherFromClass:async(t,e,o={})=>{p("deleteTeacherFromClass","classId",t),p("deleteTeacherFromClass","userId",e);const a="/v1.0/education/classes/{class-id}/teachers/{user-id}/$ref".replace("{class-id}",encodeURIComponent(String(t))).replace("{user-id}",encodeURIComponent(String(e))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};await R(i,n),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},getTeachers:async(t,e={})=>{p("getTeachers","classId",t);const o="/v1.0/education/classes/{class-id}/teachers".replace("{class-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}}}},j=function(n){const t=ie(n);return{async addTeacherToClass(e,o,a){const s=await t.addTeacherToClass(e,o,a),r=n?.serverIndex??0,l=u["EducationClassTeachersApi.addTeacherToClass"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async deleteTeacherFromClass(e,o,a){const s=await t.deleteTeacherFromClass(e,o,a),r=n?.serverIndex??0,l=u["EducationClassTeachersApi.deleteTeacherFromClass"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async getTeachers(e,o){const a=await t.getTeachers(e,o),s=n?.serverIndex??0,r=u["EducationClassTeachersApi.getTeachers"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},Ye=function(n,t,e){const o=j(n);return{addTeacherToClass(a,s,r){return o.addTeacherToClass(a,s,r).then(l=>l(e,t))},deleteTeacherFromClass(a,s,r){return o.deleteTeacherFromClass(a,s,r).then(l=>l(e,t))},getTeachers(a,s){return o.getTeachers(a,s).then(r=>r(e,t))}}};class Xe extends y{addTeacherToClass(t,e,o){return j(this.configuration).addTeacherToClass(t,e,o).then(a=>a(this.axios,this.basePath))}deleteTeacherFromClass(t,e,o){return j(this.configuration).deleteTeacherFromClass(t,e,o).then(a=>a(this.axios,this.basePath))}getTeachers(t,e){return j(this.configuration).getTeachers(t,e).then(o=>o(this.axios,this.basePath))}}const ce=function(n){return{addClassToSchool:async(t,e,o={})=>{p("addClassToSchool","schoolId",t),p("addClassToSchool","classReference",e);const a="/v1.0/education/schools/{school-id}/classes/$ref".replace("{school-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};await R(i,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},addUserToSchool:async(t,e,o={})=>{p("addUserToSchool","schoolId",t),p("addUserToSchool","educationUserReference",e);const a="/v1.0/education/schools/{school-id}/users/$ref".replace("{school-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};await R(i,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},createSchool:async(t,e={})=>{p("createSchool","educationSchool",t);const o="/v1.0/education/schools",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"POST",...s,...e},l={},i={};await R(l,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}},deleteClassFromSchool:async(t,e,o={})=>{p("deleteClassFromSchool","schoolId",t),p("deleteClassFromSchool","classId",e);const a="/v1.0/education/schools/{school-id}/classes/{class-id}/$ref".replace("{school-id}",encodeURIComponent(String(t))).replace("{class-id}",encodeURIComponent(String(e))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};await R(i,n),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},deleteSchool:async(t,e={})=>{p("deleteSchool","schoolId",t);const o="/v1.0/education/schools/{school-id}".replace("{school-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"DELETE",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},deleteUserFromSchool:async(t,e,o={})=>{p("deleteUserFromSchool","schoolId",t),p("deleteUserFromSchool","userId",e);const a="/v1.0/education/schools/{school-id}/users/{user-id}/$ref".replace("{school-id}",encodeURIComponent(String(t))).replace("{user-id}",encodeURIComponent(String(e))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};await R(i,n),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},getSchool:async(t,e={})=>{p("getSchool","schoolId",t);const o="/v1.0/education/schools/{school-id}".replace("{school-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},listSchoolClasses:async(t,e={})=>{p("listSchoolClasses","schoolId",t);const o="/v1.0/education/schools/{school-id}/classes".replace("{school-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},listSchoolUsers:async(t,e={})=>{p("listSchoolUsers","schoolId",t);const o="/v1.0/education/schools/{school-id}/users".replace("{school-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},listSchools:async(t={})=>{const e="/v1.0/education/schools",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};await R(r,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}},updateSchool:async(t,e,o={})=>{p("updateSchool","schoolId",t),p("updateSchool","educationSchool",e);const a="/v1.0/education/schools/{school-id}".replace("{school-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"PATCH",...r,...o},i={},c={};await R(i,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}}}},C=function(n){const t=ce(n);return{async addClassToSchool(e,o,a){const s=await t.addClassToSchool(e,o,a),r=n?.serverIndex??0,l=u["EducationSchoolApi.addClassToSchool"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async addUserToSchool(e,o,a){const s=await t.addUserToSchool(e,o,a),r=n?.serverIndex??0,l=u["EducationSchoolApi.addUserToSchool"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async createSchool(e,o){const a=await t.createSchool(e,o),s=n?.serverIndex??0,r=u["EducationSchoolApi.createSchool"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async deleteClassFromSchool(e,o,a){const s=await t.deleteClassFromSchool(e,o,a),r=n?.serverIndex??0,l=u["EducationSchoolApi.deleteClassFromSchool"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async deleteSchool(e,o){const a=await t.deleteSchool(e,o),s=n?.serverIndex??0,r=u["EducationSchoolApi.deleteSchool"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async deleteUserFromSchool(e,o,a){const s=await t.deleteUserFromSchool(e,o,a),r=n?.serverIndex??0,l=u["EducationSchoolApi.deleteUserFromSchool"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async getSchool(e,o){const a=await t.getSchool(e,o),s=n?.serverIndex??0,r=u["EducationSchoolApi.getSchool"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listSchoolClasses(e,o){const a=await t.listSchoolClasses(e,o),s=n?.serverIndex??0,r=u["EducationSchoolApi.listSchoolClasses"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listSchoolUsers(e,o){const a=await t.listSchoolUsers(e,o),s=n?.serverIndex??0,r=u["EducationSchoolApi.listSchoolUsers"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listSchools(e){const o=await t.listSchools(e),a=n?.serverIndex??0,s=u["EducationSchoolApi.listSchools"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)},async updateSchool(e,o,a){const s=await t.updateSchool(e,o,a),r=n?.serverIndex??0,l=u["EducationSchoolApi.updateSchool"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)}}},Ze=function(n,t,e){const o=C(n);return{addClassToSchool(a,s,r){return o.addClassToSchool(a,s,r).then(l=>l(e,t))},addUserToSchool(a,s,r){return o.addUserToSchool(a,s,r).then(l=>l(e,t))},createSchool(a,s){return o.createSchool(a,s).then(r=>r(e,t))},deleteClassFromSchool(a,s,r){return o.deleteClassFromSchool(a,s,r).then(l=>l(e,t))},deleteSchool(a,s){return o.deleteSchool(a,s).then(r=>r(e,t))},deleteUserFromSchool(a,s,r){return o.deleteUserFromSchool(a,s,r).then(l=>l(e,t))},getSchool(a,s){return o.getSchool(a,s).then(r=>r(e,t))},listSchoolClasses(a,s){return o.listSchoolClasses(a,s).then(r=>r(e,t))},listSchoolUsers(a,s){return o.listSchoolUsers(a,s).then(r=>r(e,t))},listSchools(a){return o.listSchools(a).then(s=>s(e,t))},updateSchool(a,s,r){return o.updateSchool(a,s,r).then(l=>l(e,t))}}};class fe extends y{addClassToSchool(t,e,o){return C(this.configuration).addClassToSchool(t,e,o).then(a=>a(this.axios,this.basePath))}addUserToSchool(t,e,o){return C(this.configuration).addUserToSchool(t,e,o).then(a=>a(this.axios,this.basePath))}createSchool(t,e){return C(this.configuration).createSchool(t,e).then(o=>o(this.axios,this.basePath))}deleteClassFromSchool(t,e,o){return C(this.configuration).deleteClassFromSchool(t,e,o).then(a=>a(this.axios,this.basePath))}deleteSchool(t,e){return C(this.configuration).deleteSchool(t,e).then(o=>o(this.axios,this.basePath))}deleteUserFromSchool(t,e,o){return C(this.configuration).deleteUserFromSchool(t,e,o).then(a=>a(this.axios,this.basePath))}getSchool(t,e){return C(this.configuration).getSchool(t,e).then(o=>o(this.axios,this.basePath))}listSchoolClasses(t,e){return C(this.configuration).listSchoolClasses(t,e).then(o=>o(this.axios,this.basePath))}listSchoolUsers(t,e){return C(this.configuration).listSchoolUsers(t,e).then(o=>o(this.axios,this.basePath))}listSchools(t){return C(this.configuration).listSchools(t).then(e=>e(this.axios,this.basePath))}updateSchool(t,e,o){return C(this.configuration).updateSchool(t,e,o).then(a=>a(this.axios,this.basePath))}}const de=function(n){return{createEducationUser:async(t,e={})=>{p("createEducationUser","educationUser",t);const o="/v1.0/education/users",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"POST",...s,...e},l={},i={};await R(l,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}},deleteEducationUser:async(t,e={})=>{p("deleteEducationUser","userId",t);const o="/v1.0/education/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"DELETE",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},getEducationUser:async(t,e,o={})=>{p("getEducationUser","userId",t);const a="/v1.0/education/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"GET",...r,...o},i={},c={};await R(i,n),e&&(c.$expand=Array.from(e).join(b.csv)),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},listEducationUsers:async(t,e,o={})=>{const a="/v1.0/education/users",s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"GET",...r,...o},i={},c={};await R(i,n),t&&(c.$orderby=Array.from(t).join(b.csv)),e&&(c.$expand=Array.from(e).join(b.csv)),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},updateEducationUser:async(t,e,o={})=>{p("updateEducationUser","userId",t),p("updateEducationUser","educationUser",e);const a="/v1.0/education/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"PATCH",...r,...o},i={},c={};await R(i,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}}}},F=function(n){const t=de(n);return{async createEducationUser(e,o){const a=await t.createEducationUser(e,o),s=n?.serverIndex??0,r=u["EducationUserApi.createEducationUser"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async deleteEducationUser(e,o){const a=await t.deleteEducationUser(e,o),s=n?.serverIndex??0,r=u["EducationUserApi.deleteEducationUser"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async getEducationUser(e,o,a){const s=await t.getEducationUser(e,o,a),r=n?.serverIndex??0,l=u["EducationUserApi.getEducationUser"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async listEducationUsers(e,o,a){const s=await t.listEducationUsers(e,o,a),r=n?.serverIndex??0,l=u["EducationUserApi.listEducationUsers"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async updateEducationUser(e,o,a){const s=await t.updateEducationUser(e,o,a),r=n?.serverIndex??0,l=u["EducationUserApi.updateEducationUser"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)}}},es=function(n,t,e){const o=F(n);return{createEducationUser(a,s){return o.createEducationUser(a,s).then(r=>r(e,t))},deleteEducationUser(a,s){return o.deleteEducationUser(a,s).then(r=>r(e,t))},getEducationUser(a,s,r){return o.getEducationUser(a,s,r).then(l=>l(e,t))},listEducationUsers(a,s,r){return o.listEducationUsers(a,s,r).then(l=>l(e,t))},updateEducationUser(a,s,r){return o.updateEducationUser(a,s,r).then(l=>l(e,t))}}};class ss extends y{createEducationUser(t,e){return F(this.configuration).createEducationUser(t,e).then(o=>o(this.axios,this.basePath))}deleteEducationUser(t,e){return F(this.configuration).deleteEducationUser(t,e).then(o=>o(this.axios,this.basePath))}getEducationUser(t,e,o){return F(this.configuration).getEducationUser(t,e,o).then(a=>a(this.axios,this.basePath))}listEducationUsers(t,e,o){return F(this.configuration).listEducationUsers(t,e,o).then(a=>a(this.axios,this.basePath))}updateEducationUser(t,e,o){return F(this.configuration).updateEducationUser(t,e,o).then(a=>a(this.axios,this.basePath))}}const rs={MemberOf:"memberOf"},as={DisplayName:"displayName",DisplayNameDesc:"displayName desc",Mail:"mail",MailDesc:"mail desc",OnPremisesSamAccountName:"onPremisesSamAccountName",OnPremisesSamAccountNameDesc:"onPremisesSamAccountName desc"},ts={MemberOf:"memberOf"},pe=function(n){return{addMember:async(t,e,o={})=>{p("addMember","groupId",t),p("addMember","memberReference",e);const a="/v1.0/groups/{group-id}/members/$ref".replace("{group-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},deleteGroup:async(t,e,o={})=>{p("deleteGroup","groupId",t);const a="/v1.0/groups/{group-id}".replace("{group-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};U(l,n),e!=null&&(i["If-Match"]=String(e)),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},deleteMember:async(t,e,o,a={})=>{p("deleteMember","groupId",t),p("deleteMember","directoryObjectId",e);const s="/v1.0/groups/{group-id}/members/{directory-object-id}/$ref".replace("{group-id}",encodeURIComponent(String(t))).replace("{directory-object-id}",encodeURIComponent(String(e))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"DELETE",...l,...a},c={},d={};U(i,n),o!=null&&(c["If-Match"]=String(o)),V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},{url:v(r),options:i}},getGroup:async(t,e,o,a={})=>{p("getGroup","groupId",t);const s="/v1.0/groups/{group-id}".replace("{group-id}",encodeURIComponent(String(t))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"GET",...l,...a},c={},d={};U(i,n),e&&(d.$select=Array.from(e).join(b.csv)),o&&(d.$expand=Array.from(o).join(b.csv)),V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},{url:v(r),options:i}},listMembers:async(t,e={})=>{p("listMembers","groupId",t);const o="/v1.0/groups/{group-id}/members".replace("{group-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},updateGroup:async(t,e,o={})=>{p("updateGroup","groupId",t),p("updateGroup","group",e);const a="/v1.0/groups/{group-id}".replace("{group-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"PATCH",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}}}},T=function(n){const t=pe(n);return{async addMember(e,o,a){const s=await t.addMember(e,o,a),r=n?.serverIndex??0,l=u["GroupApi.addMember"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async deleteGroup(e,o,a){const s=await t.deleteGroup(e,o,a),r=n?.serverIndex??0,l=u["GroupApi.deleteGroup"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async deleteMember(e,o,a,s){const r=await t.deleteMember(e,o,a,s),l=n?.serverIndex??0,i=u["GroupApi.deleteMember"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async getGroup(e,o,a,s){const r=await t.getGroup(e,o,a,s),l=n?.serverIndex??0,i=u["GroupApi.getGroup"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async listMembers(e,o){const a=await t.listMembers(e,o),s=n?.serverIndex??0,r=u["GroupApi.listMembers"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async updateGroup(e,o,a){const s=await t.updateGroup(e,o,a),r=n?.serverIndex??0,l=u["GroupApi.updateGroup"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)}}},os=function(n,t,e){const o=T(n);return{addMember(a,s,r){return o.addMember(a,s,r).then(l=>l(e,t))},deleteGroup(a,s,r){return o.deleteGroup(a,s,r).then(l=>l(e,t))},deleteMember(a,s,r,l){return o.deleteMember(a,s,r,l).then(i=>i(e,t))},getGroup(a,s,r,l){return o.getGroup(a,s,r,l).then(i=>i(e,t))},listMembers(a,s){return o.listMembers(a,s).then(r=>r(e,t))},updateGroup(a,s,r){return o.updateGroup(a,s,r).then(l=>l(e,t))}}};class ns extends y{addMember(t,e,o){return T(this.configuration).addMember(t,e,o).then(a=>a(this.axios,this.basePath))}deleteGroup(t,e,o){return T(this.configuration).deleteGroup(t,e,o).then(a=>a(this.axios,this.basePath))}deleteMember(t,e,o,a){return T(this.configuration).deleteMember(t,e,o,a).then(s=>s(this.axios,this.basePath))}getGroup(t,e,o,a){return T(this.configuration).getGroup(t,e,o,a).then(s=>s(this.axios,this.basePath))}listMembers(t,e){return T(this.configuration).listMembers(t,e).then(o=>o(this.axios,this.basePath))}updateGroup(t,e,o){return T(this.configuration).updateGroup(t,e,o).then(a=>a(this.axios,this.basePath))}}const ls={Id:"id",Description:"description",DisplayName:"displayName",Members:"members"},is={Members:"members"},he=function(n){return{createGroup:async(t,e={})=>{p("createGroup","group",t);const o="/v1.0/groups",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"POST",...s,...e},l={},i={};U(r,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}},listGroups:async(t,e,o,a,s={})=>{const r="/v1.0/groups",l=new URL(r,P);let i;n&&(i=n.baseOptions);const c={method:"GET",...i,...s},d={},O={};U(c,n),t!==void 0&&(O.$search=t),e&&(O.$orderby=Array.from(e).join(b.csv)),o&&(O.$select=Array.from(o).join(b.csv)),a&&(O.$expand=Array.from(a).join(b.csv)),V(l,O);let x=i&&i.headers?i.headers:{};return c.headers={...d,...x,...s.headers},{url:v(l),options:c}}}},N=function(n){const t=he(n);return{async createGroup(e,o){const a=await t.createGroup(e,o),s=n?.serverIndex??0,r=u["GroupsApi.createGroup"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listGroups(e,o,a,s,r){const l=await t.listGroups(e,o,a,s,r),i=n?.serverIndex??0,c=u["GroupsApi.listGroups"]?.[i]?.url;return(d,O)=>A(l,h.axios,m,n)(d,c||O)}}},cs=function(n,t,e){const o=N(n);return{createGroup(a,s){return o.createGroup(a,s).then(r=>r(e,t))},listGroups(a,s,r,l,i){return o.listGroups(a,s,r,l,i).then(c=>c(e,t))}}};class ds extends y{createGroup(t,e){return N(this.configuration).createGroup(t,e).then(o=>o(this.axios,this.basePath))}listGroups(t,e,o,a,s){return N(this.configuration).listGroups(t,e,o,a,s).then(r=>r(this.axios,this.basePath))}}const ps={DisplayName:"displayName",DisplayNameDesc:"displayName desc"},hs={Id:"id",Description:"description",DisplayName:"displayName",Mail:"mail",Members:"members"},ms={Members:"members"},me=function(n){return{changeOwnPassword:async(t,e={})=>{p("changeOwnPassword","passwordChange",t);const o="/v1.0/me/changePassword",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"POST",...s,...e},l={},i={};U(r,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}}}},Y=function(n){const t=me(n);return{async changeOwnPassword(e,o){const a=await t.changeOwnPassword(e,o),s=n?.serverIndex??0,r=u["MeChangepasswordApi.changeOwnPassword"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},us=function(n,t,e){const o=Y(n);return{changeOwnPassword(a,s){return o.changeOwnPassword(a,s).then(r=>r(e,t))}}};class Ps extends y{changeOwnPassword(t,e){return Y(this.configuration).changeOwnPassword(t,e).then(o=>o(this.axios,this.basePath))}}const ue=function(n){return{getHome:async(t={})=>{const e="/v1.0/me/drive",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};U(s,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}},listSharedByMe:async(t,e={})=>{const o="/v1beta1/me/drive/sharedByMe",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),t&&(i.$expand=Array.from(t).join(b.csv)),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},listSharedWithMe:async(t,e={})=>{const o="/v1beta1/me/drive/sharedWithMe",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),t&&(i.$expand=Array.from(t).join(b.csv)),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}}}},g=function(n){const t=ue(n);return{async getHome(e){const o=await t.getHome(e),a=n?.serverIndex??0,s=u["MeDriveApi.getHome"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)},async listSharedByMe(e,o){const a=await t.listSharedByMe(e,o),s=n?.serverIndex??0,r=u["MeDriveApi.listSharedByMe"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listSharedWithMe(e,o){const a=await t.listSharedWithMe(e,o),s=n?.serverIndex??0,r=u["MeDriveApi.listSharedWithMe"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},Vs=function(n,t,e){const o=g(n);return{getHome(a){return o.getHome(a).then(s=>s(e,t))},listSharedByMe(a,s){return o.listSharedByMe(a,s).then(r=>r(e,t))},listSharedWithMe(a,s){return o.listSharedWithMe(a,s).then(r=>r(e,t))}}};class vs extends y{getHome(t){return g(this.configuration).getHome(t).then(e=>e(this.axios,this.basePath))}listSharedByMe(t,e){return g(this.configuration).listSharedByMe(t,e).then(o=>o(this.axios,this.basePath))}listSharedWithMe(t,e){return g(this.configuration).listSharedWithMe(t,e).then(o=>o(this.axios,this.basePath))}}const As={Thumbnails:"thumbnails"},Os={Thumbnails:"thumbnails"},Pe=function(n){return{homeGetRoot:async(t={})=>{const e="/v1.0/me/drive/root",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};U(s,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}}}},X=function(n){const t=Pe(n);return{async homeGetRoot(e){const o=await t.homeGetRoot(e),a=n?.serverIndex??0,s=u["MeDriveRootApi.homeGetRoot"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)}}},Us=function(n,t,e){const o=X(n);return{homeGetRoot(a){return o.homeGetRoot(a).then(s=>s(e,t))}}};class Ss extends y{homeGetRoot(t){return X(this.configuration).homeGetRoot(t).then(e=>e(this.axios,this.basePath))}}const Ve=function(n){return{homeGetChildren:async(t={})=>{const e="/v1.0/me/drive/root/children",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};U(s,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}}}},Z=function(n){const t=Ve(n);return{async homeGetChildren(e){const o=await t.homeGetChildren(e),a=n?.serverIndex??0,s=u["MeDriveRootChildrenApi.homeGetChildren"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)}}},xs=function(n,t,e){const o=Z(n);return{homeGetChildren(a){return o.homeGetChildren(a).then(s=>s(e,t))}}};class Rs extends y{homeGetChildren(t){return Z(this.configuration).homeGetChildren(t).then(e=>e(this.axios,this.basePath))}}const ve=function(n){return{listMyDrives:async(t,e,o={})=>{const a="/v1.0/me/drives",s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"GET",...r,...o},i={},c={};U(l,n),t!==void 0&&(c.$orderby=t),e!==void 0&&(c.$filter=e),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},listMyDrivesBeta:async(t,e,o,a,s={})=>{const r="/v1beta1/me/drives",l=new URL(r,P);let i;n&&(i=n.baseOptions);const c={method:"GET",...i,...s},d={},O={};U(c,n),t!==void 0&&(O.$orderby=t),e!==void 0&&(O.$filter=e),o!==void 0&&(O.$expand=o),a&&(O.$select=Array.from(a).join(b.csv)),V(l,O);let x=i&&i.headers?i.headers:{};return c.headers={...d,...x,...s.headers},{url:v(l),options:c}}}},k=function(n){const t=ve(n);return{async listMyDrives(e,o,a){const s=await t.listMyDrives(e,o,a),r=n?.serverIndex??0,l=u["MeDrivesApi.listMyDrives"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async listMyDrivesBeta(e,o,a,s,r){const l=await t.listMyDrivesBeta(e,o,a,s,r),i=n?.serverIndex??0,c=u["MeDrivesApi.listMyDrivesBeta"]?.[i]?.url;return(d,O)=>A(l,h.axios,m,n)(d,c||O)}}},ys=function(n,t,e){const o=k(n);return{listMyDrives(a,s,r){return o.listMyDrives(a,s,r).then(l=>l(e,t))},listMyDrivesBeta(a,s,r,l,i){return o.listMyDrivesBeta(a,s,r,l,i).then(c=>c(e,t))}}};class bs extends y{listMyDrives(t,e,o){return k(this.configuration).listMyDrives(t,e,o).then(a=>a(this.axios,this.basePath))}listMyDrivesBeta(t,e,o,a,s){return k(this.configuration).listMyDrivesBeta(t,e,o,a,s).then(r=>r(this.axios,this.basePath))}}const Cs={LibreGraphHasTrashedItems:"@libre.graph.hasTrashedItems"},Ae=function(n){return{deleteOwnUserPhoto:async(t={})=>{const e="/v1.0/me/photo/$value",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"DELETE",...a,...t},r={},l={};U(s,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}},getOwnUserPhoto:async(t={})=>{const e="/v1.0/me/photo/$value",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};U(s,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}},updateOwnUserPhotoPatch:async(t,e={})=>{const o="/v1.0/me/photo/$value",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"PATCH",...s,...e},l={},i={};U(r,n),l["Content-Type"]="image/jpeg",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}},updateOwnUserPhotoPut:async(t,e={})=>{const o="/v1.0/me/photo/$value",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"PUT",...s,...e},l={},i={};U(r,n),l["Content-Type"]="image/jpeg",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}}}},M=function(n){const t=Ae(n);return{async deleteOwnUserPhoto(e){const o=await t.deleteOwnUserPhoto(e),a=n?.serverIndex??0,s=u["MePhotoApi.deleteOwnUserPhoto"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)},async getOwnUserPhoto(e){const o=await t.getOwnUserPhoto(e),a=n?.serverIndex??0,s=u["MePhotoApi.getOwnUserPhoto"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)},async updateOwnUserPhotoPatch(e,o){const a=await t.updateOwnUserPhotoPatch(e,o),s=n?.serverIndex??0,r=u["MePhotoApi.updateOwnUserPhotoPatch"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async updateOwnUserPhotoPut(e,o){const a=await t.updateOwnUserPhotoPut(e,o),s=n?.serverIndex??0,r=u["MePhotoApi.updateOwnUserPhotoPut"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},ws=function(n,t,e){const o=M(n);return{deleteOwnUserPhoto(a){return o.deleteOwnUserPhoto(a).then(s=>s(e,t))},getOwnUserPhoto(a){return o.getOwnUserPhoto(a).then(s=>s(e,t))},updateOwnUserPhotoPatch(a,s){return o.updateOwnUserPhotoPatch(a,s).then(r=>r(e,t))},updateOwnUserPhotoPut(a,s){return o.updateOwnUserPhotoPut(a,s).then(r=>r(e,t))}}};class Is extends y{deleteOwnUserPhoto(t){return M(this.configuration).deleteOwnUserPhoto(t).then(e=>e(this.axios,this.basePath))}getOwnUserPhoto(t){return M(this.configuration).getOwnUserPhoto(t).then(e=>e(this.axios,this.basePath))}updateOwnUserPhotoPatch(t,e){return M(this.configuration).updateOwnUserPhotoPatch(t,e).then(o=>o(this.axios,this.basePath))}updateOwnUserPhotoPut(t,e){return M(this.configuration).updateOwnUserPhotoPut(t,e).then(o=>o(this.axios,this.basePath))}}const Oe=function(n){return{getOwnUser:async(t,e={})=>{const o="/v1.0/me",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),t&&(i.$expand=Array.from(t).join(b.csv)),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},updateOwnUser:async(t,e={})=>{const o="/v1.0/me",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"PATCH",...s,...e},l={},i={};U(r,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}}}},W=function(n){const t=Oe(n);return{async getOwnUser(e,o){const a=await t.getOwnUser(e,o),s=n?.serverIndex??0,r=u["MeUserApi.getOwnUser"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async updateOwnUser(e,o){const a=await t.updateOwnUser(e,o),s=n?.serverIndex??0,r=u["MeUserApi.updateOwnUser"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},Ds=function(n,t,e){const o=W(n);return{getOwnUser(a,s){return o.getOwnUser(a,s).then(r=>r(e,t))},updateOwnUser(a,s){return o.updateOwnUser(a,s).then(r=>r(e,t))}}};class Es extends y{getOwnUser(t,e){return W(this.configuration).getOwnUser(t,e).then(o=>o(this.axios,this.basePath))}updateOwnUser(t,e){return W(this.configuration).updateOwnUser(t,e).then(o=>o(this.axios,this.basePath))}}const Ts={MemberOf:"memberOf"},Ue=function(n){return{getPermissionRoleDefinition:async(t,e={})=>{p("getPermissionRoleDefinition","roleId",t);const o="/v1beta1/roleManagement/permissions/roleDefinitions/{role-id}".replace("{role-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},listPermissionRoleDefinitions:async(t={})=>{const e="/v1beta1/roleManagement/permissions/roleDefinitions",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};U(s,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}}}},z=function(n){const t=Ue(n);return{async getPermissionRoleDefinition(e,o){const a=await t.getPermissionRoleDefinition(e,o),s=n?.serverIndex??0,r=u["RoleManagementApi.getPermissionRoleDefinition"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listPermissionRoleDefinitions(e){const o=await t.listPermissionRoleDefinitions(e),a=n?.serverIndex??0,s=u["RoleManagementApi.listPermissionRoleDefinitions"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)}}},Fs=function(n,t,e){const o=z(n);return{getPermissionRoleDefinition(a,s){return o.getPermissionRoleDefinition(a,s).then(r=>r(e,t))},listPermissionRoleDefinitions(a){return o.listPermissionRoleDefinitions(a).then(s=>s(e,t))}}};class Bs extends y{getPermissionRoleDefinition(t,e){return z(this.configuration).getPermissionRoleDefinition(t,e).then(o=>o(this.axios,this.basePath))}listPermissionRoleDefinitions(t){return z(this.configuration).listPermissionRoleDefinitions(t).then(e=>e(this.axios,this.basePath))}}const Se=function(n){return{assignTags:async(t,e={})=>{const o="/v1.0/extensions/org.libregraph/tags",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"PUT",...s,...e},l={},i={};U(r,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}},getTags:async(t={})=>{const e="/v1.0/extensions/org.libregraph/tags",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};U(s,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}},unassignTags:async(t,e={})=>{const o="/v1.0/extensions/org.libregraph/tags",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"DELETE",...s,...e},l={},i={};U(r,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}}}},H=function(n){const t=Se(n);return{async assignTags(e,o){const a=await t.assignTags(e,o),s=n?.serverIndex??0,r=u["TagsApi.assignTags"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async getTags(e){const o=await t.getTags(e),a=n?.serverIndex??0,s=u["TagsApi.getTags"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)},async unassignTags(e,o){const a=await t.unassignTags(e,o),s=n?.serverIndex??0,r=u["TagsApi.unassignTags"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},Ms=function(n,t,e){const o=H(n);return{assignTags(a,s){return o.assignTags(a,s).then(r=>r(e,t))},getTags(a){return o.getTags(a).then(s=>s(e,t))},unassignTags(a,s){return o.unassignTags(a,s).then(r=>r(e,t))}}};class Ls extends y{assignTags(t,e){return H(this.configuration).assignTags(t,e).then(o=>o(this.axios,this.basePath))}getTags(t){return H(this.configuration).getTags(t).then(e=>e(this.axios,this.basePath))}unassignTags(t,e){return H(this.configuration).unassignTags(t,e).then(o=>o(this.axios,this.basePath))}}const xe=function(n){return{deleteUser:async(t,e,o={})=>{p("deleteUser","userId",t);const a="/v1.0/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};U(l,n),e!=null&&(i["If-Match"]=String(e)),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},exportPersonalData:async(t,e,o={})=>{p("exportPersonalData","userId",t);const a="/v1.0/users/{user-id}/exportPersonalData".replace("{user-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},getUser:async(t,e,o,a={})=>{p("getUser","userId",t);const s="/v1.0/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"GET",...l,...a},c={},d={};U(i,n),e&&(d.$select=Array.from(e).join(b.csv)),o&&(d.$expand=Array.from(o).join(b.csv)),V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},{url:v(r),options:i}},updateUser:async(t,e,o={})=>{p("updateUser","userId",t),p("updateUser","userUpdate",e);const a="/v1.0/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"PATCH",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}}}},L=function(n){const t=xe(n);return{async deleteUser(e,o,a){const s=await t.deleteUser(e,o,a),r=n?.serverIndex??0,l=u["UserApi.deleteUser"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async exportPersonalData(e,o,a){const s=await t.exportPersonalData(e,o,a),r=n?.serverIndex??0,l=u["UserApi.exportPersonalData"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async getUser(e,o,a,s){const r=await t.getUser(e,o,a,s),l=n?.serverIndex??0,i=u["UserApi.getUser"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async updateUser(e,o,a){const s=await t.updateUser(e,o,a),r=n?.serverIndex??0,l=u["UserApi.updateUser"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)}}},Gs=function(n,t,e){const o=L(n);return{deleteUser(a,s,r){return o.deleteUser(a,s,r).then(l=>l(e,t))},exportPersonalData(a,s,r){return o.exportPersonalData(a,s,r).then(l=>l(e,t))},getUser(a,s,r,l){return o.getUser(a,s,r,l).then(i=>i(e,t))},updateUser(a,s,r){return o.updateUser(a,s,r).then(l=>l(e,t))}}};class js extends y{deleteUser(t,e,o){return L(this.configuration).deleteUser(t,e,o).then(a=>a(this.axios,this.basePath))}exportPersonalData(t,e,o){return L(this.configuration).exportPersonalData(t,e,o).then(a=>a(this.axios,this.basePath))}getUser(t,e,o,a){return L(this.configuration).getUser(t,e,o,a).then(s=>s(this.axios,this.basePath))}updateUser(t,e,o){return L(this.configuration).updateUser(t,e,o).then(a=>a(this.axios,this.basePath))}}const gs={Id:"id",DisplayName:"displayName",Drive:"drive",Drives:"drives",Mail:"mail",MemberOf:"memberOf",OnPremisesSamAccountName:"onPremisesSamAccountName",Surname:"surname"},Hs={Drive:"drive",Drives:"drives",MemberOf:"memberOf",AppRoleAssignments:"appRoleAssignments"},Re=function(n){return{userCreateAppRoleAssignments:async(t,e,o={})=>{p("userCreateAppRoleAssignments","userId",t),p("userCreateAppRoleAssignments","appRoleAssignment",e);const a="/v1.0/users/{user-id}/appRoleAssignments".replace("{user-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},userDeleteAppRoleAssignments:async(t,e,o,a={})=>{p("userDeleteAppRoleAssignments","userId",t),p("userDeleteAppRoleAssignments","appRoleAssignmentId",e);const s="/v1.0/users/{user-id}/appRoleAssignments/{appRoleAssignment-id}".replace("{user-id}",encodeURIComponent(String(t))).replace("{appRoleAssignment-id}",encodeURIComponent(String(e))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"DELETE",...l,...a},c={},d={};U(i,n),o!=null&&(c["If-Match"]=String(o)),V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},{url:v(r),options:i}},userListAppRoleAssignments:async(t,e={})=>{p("userListAppRoleAssignments","userId",t);const o="/v1.0/users/{user-id}/appRoleAssignments".replace("{user-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}}}},$=function(n){const t=Re(n);return{async userCreateAppRoleAssignments(e,o,a){const s=await t.userCreateAppRoleAssignments(e,o,a),r=n?.serverIndex??0,l=u["UserAppRoleAssignmentApi.userCreateAppRoleAssignments"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async userDeleteAppRoleAssignments(e,o,a,s){const r=await t.userDeleteAppRoleAssignments(e,o,a,s),l=n?.serverIndex??0,i=u["UserAppRoleAssignmentApi.userDeleteAppRoleAssignments"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async userListAppRoleAssignments(e,o){const a=await t.userListAppRoleAssignments(e,o),s=n?.serverIndex??0,r=u["UserAppRoleAssignmentApi.userListAppRoleAssignments"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},$s=function(n,t,e){const o=$(n);return{userCreateAppRoleAssignments(a,s,r){return o.userCreateAppRoleAssignments(a,s,r).then(l=>l(e,t))},userDeleteAppRoleAssignments(a,s,r,l){return o.userDeleteAppRoleAssignments(a,s,r,l).then(i=>i(e,t))},userListAppRoleAssignments(a,s){return o.userListAppRoleAssignments(a,s).then(r=>r(e,t))}}};class qs extends y{userCreateAppRoleAssignments(t,e,o){return $(this.configuration).userCreateAppRoleAssignments(t,e,o).then(a=>a(this.axios,this.basePath))}userDeleteAppRoleAssignments(t,e,o,a){return $(this.configuration).userDeleteAppRoleAssignments(t,e,o,a).then(s=>s(this.axios,this.basePath))}userListAppRoleAssignments(t,e){return $(this.configuration).userListAppRoleAssignments(t,e).then(o=>o(this.axios,this.basePath))}}const ye=function(n){return{getUserPhoto:async(t,e={})=>{p("getUserPhoto","userId",t);const o="/v1.0/users/{user-id}/photo/$value".replace("{user-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}}}},f=function(n){const t=ye(n);return{async getUserPhoto(e,o){const a=await t.getUserPhoto(e,o),s=n?.serverIndex??0,r=u["UserPhotoApi.getUserPhoto"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},Qs=function(n,t,e){const o=f(n);return{getUserPhoto(a,s){return o.getUserPhoto(a,s).then(r=>r(e,t))}}};class Ns extends y{getUserPhoto(t,e){return f(this.configuration).getUserPhoto(t,e).then(o=>o(this.axios,this.basePath))}}const be=function(n){return{createUser:async(t,e={})=>{p("createUser","user",t);const o="/v1.0/users",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"POST",...s,...e},l={},i={};U(r,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}},listUsers:async(t,e,o,a,s,r={})=>{const l="/v1.0/users",i=new URL(l,P);let c;n&&(c=n.baseOptions);const d={method:"GET",...c,...r},O={},x={};U(d,n),t!==void 0&&(x.$search=t),e!==void 0&&(x.$filter=e),o&&(x.$orderby=Array.from(o).join(b.csv)),a&&(x.$select=Array.from(a).join(b.csv)),s&&(x.$expand=Array.from(s).join(b.csv)),V(i,x);let w=c&&c.headers?c.headers:{};return d.headers={...O,...w,...r.headers},{url:v(i),options:d}}}},J=function(n){const t=be(n);return{async createUser(e,o){const a=await t.createUser(e,o),s=n?.serverIndex??0,r=u["UsersApi.createUser"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listUsers(e,o,a,s,r,l){const i=await t.listUsers(e,o,a,s,r,l),c=n?.serverIndex??0,d=u["UsersApi.listUsers"]?.[c]?.url;return(O,x)=>A(i,h.axios,m,n)(O,d||x)}}},ks=function(n,t,e){const o=J(n);return{createUser(a,s){return o.createUser(a,s).then(r=>r(e,t))},listUsers(a,s,r,l,i,c){return o.listUsers(a,s,r,l,i,c).then(d=>d(e,t))}}};class Ws extends y{createUser(t,e){return J(this.configuration).createUser(t,e).then(o=>o(this.axios,this.basePath))}listUsers(t,e,o,a,s,r){return J(this.configuration).listUsers(t,e,o,a,s,r).then(l=>l(this.axios,this.basePath))}}const zs={DisplayName:"displayName",DisplayNameDesc:"displayName desc",Mail:"mail",MailDesc:"mail desc",OnPremisesSamAccountName:"onPremisesSamAccountName",OnPremisesSamAccountNameDesc:"onPremisesSamAccountName desc"},Js={Id:"id",DisplayName:"displayName",Mail:"mail",MemberOf:"memberOf",OnPremisesSamAccountName:"onPremisesSamAccountName",Surname:"surname"},_s={Drive:"drive",Drives:"drives",MemberOf:"memberOf",AppRoleAssignments:"appRoleAssignments"};class Ks{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,headers:{...t.baseOptions?.headers}},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")}}exports.ActivitiesApi=Te;exports.ActivitiesApiAxiosParamCreator=ee;exports.ActivitiesApiFactory=Ee;exports.ActivitiesApiFp=K;exports.ApplicationsApi=Be;exports.ApplicationsApiAxiosParamCreator=se;exports.ApplicationsApiFactory=Fe;exports.ApplicationsApiFp=q;exports.Configuration=Ks;exports.DriveItemApi=Le;exports.DriveItemApiAxiosParamCreator=re;exports.DriveItemApiFactory=Me;exports.DriveItemApiFp=G;exports.DrivesApi=je;exports.DrivesApiAxiosParamCreator=ae;exports.DrivesApiFactory=Ge;exports.DrivesApiFp=B;exports.DrivesGetDrivesApi=$e;exports.DrivesGetDrivesApiAxiosParamCreator=te;exports.DrivesGetDrivesApiFactory=He;exports.DrivesGetDrivesApiFp=Q;exports.DrivesPermissionsApi=Ne;exports.DrivesPermissionsApiAxiosParamCreator=oe;exports.DrivesPermissionsApiFactory=Qe;exports.DrivesPermissionsApiFp=E;exports.DrivesRootApi=ze;exports.DrivesRootApiAxiosParamCreator=ne;exports.DrivesRootApiFactory=We;exports.DrivesRootApiFp=I;exports.EducationClassApi=Ke;exports.EducationClassApiAxiosParamCreator=le;exports.EducationClassApiFactory=_e;exports.EducationClassApiFp=D;exports.EducationClassClassificationEnum=Ie;exports.EducationClassTeachersApi=Xe;exports.EducationClassTeachersApiAxiosParamCreator=ie;exports.EducationClassTeachersApiFactory=Ye;exports.EducationClassTeachersApiFp=j;exports.EducationSchoolApi=fe;exports.EducationSchoolApiAxiosParamCreator=ce;exports.EducationSchoolApiFactory=Ze;exports.EducationSchoolApiFp=C;exports.EducationUserApi=ss;exports.EducationUserApiAxiosParamCreator=de;exports.EducationUserApiFactory=es;exports.EducationUserApiFp=F;exports.GetDriveSelectEnum=ge;exports.GetEducationUserExpandEnum=rs;exports.GetGroupExpandEnum=is;exports.GetGroupSelectEnum=ls;exports.GetOwnUserExpandEnum=Ts;exports.GetUserExpandEnum=Hs;exports.GetUserSelectEnum=gs;exports.GroupApi=ns;exports.GroupApiAxiosParamCreator=pe;exports.GroupApiFactory=os;exports.GroupApiFp=T;exports.GroupsApi=ds;exports.GroupsApiAxiosParamCreator=he;exports.GroupsApiFactory=cs;exports.GroupsApiFp=N;exports.ListAllDrivesBetaSelectEnum=qe;exports.ListEducationUsersExpandEnum=ts;exports.ListEducationUsersOrderbyEnum=as;exports.ListGroupsExpandEnum=ms;exports.ListGroupsOrderbyEnum=ps;exports.ListGroupsSelectEnum=hs;exports.ListMyDrivesBetaSelectEnum=Cs;exports.ListPermissionsSelectEnum=ke;exports.ListPermissionsSpaceRootSelectEnum=Je;exports.ListSharedByMeExpandEnum=As;exports.ListSharedWithMeExpandEnum=Os;exports.ListUsersExpandEnum=_s;exports.ListUsersOrderbyEnum=zs;exports.ListUsersSelectEnum=Js;exports.MeChangepasswordApi=Ps;exports.MeChangepasswordApiAxiosParamCreator=me;exports.MeChangepasswordApiFactory=us;exports.MeChangepasswordApiFp=Y;exports.MeDriveApi=vs;exports.MeDriveApiAxiosParamCreator=ue;exports.MeDriveApiFactory=Vs;exports.MeDriveApiFp=g;exports.MeDriveRootApi=Ss;exports.MeDriveRootApiAxiosParamCreator=Pe;exports.MeDriveRootApiFactory=Us;exports.MeDriveRootApiFp=X;exports.MeDriveRootChildrenApi=Rs;exports.MeDriveRootChildrenApiAxiosParamCreator=Ve;exports.MeDriveRootChildrenApiFactory=xs;exports.MeDriveRootChildrenApiFp=Z;exports.MeDrivesApi=bs;exports.MeDrivesApiAxiosParamCreator=ve;exports.MeDrivesApiFactory=ys;exports.MeDrivesApiFp=k;exports.MePhotoApi=Is;exports.MePhotoApiAxiosParamCreator=Ae;exports.MePhotoApiFactory=ws;exports.MePhotoApiFp=M;exports.MeUserApi=Es;exports.MeUserApiAxiosParamCreator=Oe;exports.MeUserApiFactory=Ds;exports.MeUserApiFp=W;exports.RoleManagementApi=Bs;exports.RoleManagementApiAxiosParamCreator=Ue;exports.RoleManagementApiFactory=Fs;exports.RoleManagementApiFp=z;exports.SharingLinkType=De;exports.TagsApi=Ls;exports.TagsApiAxiosParamCreator=Se;exports.TagsApiFactory=Ms;exports.TagsApiFp=H;exports.UserApi=js;exports.UserApiAxiosParamCreator=xe;exports.UserApiFactory=Gs;exports.UserApiFp=L;exports.UserAppRoleAssignmentApi=qs;exports.UserAppRoleAssignmentApiAxiosParamCreator=Re;exports.UserAppRoleAssignmentApiFactory=$s;exports.UserAppRoleAssignmentApiFp=$;exports.UserPhotoApi=Ns;exports.UserPhotoApiAxiosParamCreator=ye;exports.UserPhotoApiFactory=Qs;exports.UserPhotoApiFp=f;exports.UsersApi=Ws;exports.UsersApiAxiosParamCreator=be;exports.UsersApiFactory=ks;exports.UsersApiFp=J;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../../index-w54SVXTg.cjs"),m="https://localhost:9200/graph".replace(/\/+$/,""),b={csv:","};class y{constructor(t,e=m,o=h.axios){this.basePath=e,this.axios=o,t&&(this.configuration=t,this.basePath=t.basePath??e)}configuration}class we extends Error{constructor(t,e){super(e),this.field=t,this.name="RequiredError"}}const u={},P="https://example.com",p=function(n,t,e){if(e==null)throw new we(t,`Required parameter ${t} was null or undefined when calling ${n}.`)},U=function(n,t){t&&(t.username||t.password)&&(n.auth={username:t.username,password:t.password})},R=async function(n,t){if(t&&t.accessToken){const e=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;n.Authorization="Bearer "+e}};function _(n,t,e=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(o=>_(n,o,e)):Object.keys(t).forEach(o=>_(n,t[o],`${e}${e!==""?".":""}${o}`)):n.has(e)?n.append(e,t):n.set(e,t))}const V=function(n,...t){const e=new URLSearchParams(n.search);_(e,t),n.search=e.toString()},S=function(n,t,e){const o=typeof n!="string";return(o&&e&&e.isJsonMime?e.isJsonMime(t.headers["Content-Type"]):o)?JSON.stringify(n!==void 0?n:{}):n||""},v=function(n){return n.pathname+n.search+n.hash},A=function(n,t,e,o){return(a=t,s=e)=>{const r={...n.options,url:(a.defaults.baseURL?"":o?.basePath??s)+n.url};return a.request(r)}},Ie={Class:"class",Course:"course"},De={Internal:"internal",View:"view",Upload:"upload",Edit:"edit",CreateOnly:"createOnly",BlocksDownload:"blocksDownload"},ee=function(n){return{getActivities:async(t,e={})=>{const o="/v1beta1/extensions/org.libregraph/activities",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),t!==void 0&&(i.kql=t),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}}}},K=function(n){const t=ee(n);return{async getActivities(e,o){const a=await t.getActivities(e,o),s=n?.serverIndex??0,r=u["ActivitiesApi.getActivities"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},Ee=function(n,t,e){const o=K(n);return{getActivities(a,s){return o.getActivities(a,s).then(r=>r(e,t))}}};class Te extends y{getActivities(t,e){return K(this.configuration).getActivities(t,e).then(o=>o(this.axios,this.basePath))}}const se=function(n){return{getApplication:async(t,e={})=>{p("getApplication","applicationId",t);const o="/v1.0/applications/{application-id}".replace("{application-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},listApplications:async(t={})=>{const e="/v1.0/applications",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};U(s,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}}}},q=function(n){const t=se(n);return{async getApplication(e,o){const a=await t.getApplication(e,o),s=n?.serverIndex??0,r=u["ApplicationsApi.getApplication"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listApplications(e){const o=await t.listApplications(e),a=n?.serverIndex??0,s=u["ApplicationsApi.listApplications"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)}}},Fe=function(n,t,e){const o=q(n);return{getApplication(a,s){return o.getApplication(a,s).then(r=>r(e,t))},listApplications(a){return o.listApplications(a).then(s=>s(e,t))}}};class Be extends y{getApplication(t,e){return q(this.configuration).getApplication(t,e).then(o=>o(this.axios,this.basePath))}listApplications(t){return q(this.configuration).listApplications(t).then(e=>e(this.axios,this.basePath))}}const re=function(n){return{deleteDriveItem:async(t,e,o={})=>{p("deleteDriveItem","driveId",t),p("deleteDriveItem","itemId",e);const a="/v1beta1/drives/{drive-id}/items/{item-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};U(l,n),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},getDriveItem:async(t,e,o={})=>{p("getDriveItem","driveId",t),p("getDriveItem","itemId",e);const a="/v1beta1/drives/{drive-id}/items/{item-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"GET",...r,...o},i={},c={};U(l,n),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},updateDriveItem:async(t,e,o,a={})=>{p("updateDriveItem","driveId",t),p("updateDriveItem","itemId",e),p("updateDriveItem","driveItem",o);const s="/v1beta1/drives/{drive-id}/items/{item-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"PATCH",...l,...a},c={},d={};U(i,n),c["Content-Type"]="application/json",V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},i.data=S(o,i,n),{url:v(r),options:i}}}},G=function(n){const t=re(n);return{async deleteDriveItem(e,o,a){const s=await t.deleteDriveItem(e,o,a),r=n?.serverIndex??0,l=u["DriveItemApi.deleteDriveItem"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async getDriveItem(e,o,a){const s=await t.getDriveItem(e,o,a),r=n?.serverIndex??0,l=u["DriveItemApi.getDriveItem"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async updateDriveItem(e,o,a,s){const r=await t.updateDriveItem(e,o,a,s),l=n?.serverIndex??0,i=u["DriveItemApi.updateDriveItem"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)}}},Me=function(n,t,e){const o=G(n);return{deleteDriveItem(a,s,r){return o.deleteDriveItem(a,s,r).then(l=>l(e,t))},getDriveItem(a,s,r){return o.getDriveItem(a,s,r).then(l=>l(e,t))},updateDriveItem(a,s,r,l){return o.updateDriveItem(a,s,r,l).then(i=>i(e,t))}}};class Le extends y{deleteDriveItem(t,e,o){return G(this.configuration).deleteDriveItem(t,e,o).then(a=>a(this.axios,this.basePath))}getDriveItem(t,e,o){return G(this.configuration).getDriveItem(t,e,o).then(a=>a(this.axios,this.basePath))}updateDriveItem(t,e,o,a){return G(this.configuration).updateDriveItem(t,e,o,a).then(s=>s(this.axios,this.basePath))}}const ae=function(n){return{createDrive:async(t,e={})=>{p("createDrive","drive",t);const o="/v1.0/drives",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"POST",...s,...e},l={},i={};U(r,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}},deleteDrive:async(t,e,o={})=>{p("deleteDrive","driveId",t);const a="/v1.0/drives/{drive-id}".replace("{drive-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};U(l,n),e!=null&&(i["If-Match"]=String(e)),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},getDrive:async(t,e,o={})=>{p("getDrive","driveId",t);const a="/v1.0/drives/{drive-id}".replace("{drive-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"GET",...r,...o},i={},c={};U(l,n),e&&(c.$select=Array.from(e).join(b.csv)),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},updateDrive:async(t,e,o={})=>{p("updateDrive","driveId",t),p("updateDrive","driveUpdate",e);const a="/v1.0/drives/{drive-id}".replace("{drive-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"PATCH",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}}}},B=function(n){const t=ae(n);return{async createDrive(e,o){const a=await t.createDrive(e,o),s=n?.serverIndex??0,r=u["DrivesApi.createDrive"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async deleteDrive(e,o,a){const s=await t.deleteDrive(e,o,a),r=n?.serverIndex??0,l=u["DrivesApi.deleteDrive"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async getDrive(e,o,a){const s=await t.getDrive(e,o,a),r=n?.serverIndex??0,l=u["DrivesApi.getDrive"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async updateDrive(e,o,a){const s=await t.updateDrive(e,o,a),r=n?.serverIndex??0,l=u["DrivesApi.updateDrive"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)}}},Ge=function(n,t,e){const o=B(n);return{createDrive(a,s){return o.createDrive(a,s).then(r=>r(e,t))},deleteDrive(a,s,r){return o.deleteDrive(a,s,r).then(l=>l(e,t))},getDrive(a,s,r){return o.getDrive(a,s,r).then(l=>l(e,t))},updateDrive(a,s,r){return o.updateDrive(a,s,r).then(l=>l(e,t))}}};class je extends y{createDrive(t,e){return B(this.configuration).createDrive(t,e).then(o=>o(this.axios,this.basePath))}deleteDrive(t,e,o){return B(this.configuration).deleteDrive(t,e,o).then(a=>a(this.axios,this.basePath))}getDrive(t,e,o){return B(this.configuration).getDrive(t,e,o).then(a=>a(this.axios,this.basePath))}updateDrive(t,e,o){return B(this.configuration).updateDrive(t,e,o).then(a=>a(this.axios,this.basePath))}}const ge={LibreGraphHasTrashedItems:"@libre.graph.hasTrashedItems"},te=function(n){return{listAllDrives:async(t,e,o={})=>{const a="/v1.0/drives",s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"GET",...r,...o},i={},c={};U(l,n),t!==void 0&&(c.$orderby=t),e!==void 0&&(c.$filter=e),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},listAllDrivesBeta:async(t,e,o,a,s={})=>{const r="/v1beta1/drives",l=new URL(r,P);let i;n&&(i=n.baseOptions);const c={method:"GET",...i,...s},d={},O={};U(c,n),t!==void 0&&(O.$orderby=t),e!==void 0&&(O.$filter=e),o!==void 0&&(O.$expand=o),a&&(O.$select=Array.from(a).join(b.csv)),V(l,O);let x=i&&i.headers?i.headers:{};return c.headers={...d,...x,...s.headers},{url:v(l),options:c}}}},Q=function(n){const t=te(n);return{async listAllDrives(e,o,a){const s=await t.listAllDrives(e,o,a),r=n?.serverIndex??0,l=u["DrivesGetDrivesApi.listAllDrives"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async listAllDrivesBeta(e,o,a,s,r){const l=await t.listAllDrivesBeta(e,o,a,s,r),i=n?.serverIndex??0,c=u["DrivesGetDrivesApi.listAllDrivesBeta"]?.[i]?.url;return(d,O)=>A(l,h.axios,m,n)(d,c||O)}}},He=function(n,t,e){const o=Q(n);return{listAllDrives(a,s,r){return o.listAllDrives(a,s,r).then(l=>l(e,t))},listAllDrivesBeta(a,s,r,l,i){return o.listAllDrivesBeta(a,s,r,l,i).then(c=>c(e,t))}}};class $e extends y{listAllDrives(t,e,o){return Q(this.configuration).listAllDrives(t,e,o).then(a=>a(this.axios,this.basePath))}listAllDrivesBeta(t,e,o,a,s){return Q(this.configuration).listAllDrivesBeta(t,e,o,a,s).then(r=>r(this.axios,this.basePath))}}const qe={LibreGraphHasTrashedItems:"@libre.graph.hasTrashedItems"},oe=function(n){return{createLink:async(t,e,o,a={})=>{p("createLink","driveId",t),p("createLink","itemId",e);const s="/v1beta1/drives/{drive-id}/items/{item-id}/createLink".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"POST",...l,...a},c={},d={};U(i,n),c["Content-Type"]="application/json",V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},i.data=S(o,i,n),{url:v(r),options:i}},deletePermission:async(t,e,o,a={})=>{p("deletePermission","driveId",t),p("deletePermission","itemId",e),p("deletePermission","permId",o);const s="/v1beta1/drives/{drive-id}/items/{item-id}/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))).replace("{perm-id}",encodeURIComponent(String(o))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"DELETE",...l,...a},c={},d={};U(i,n),V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},{url:v(r),options:i}},getPermission:async(t,e,o,a={})=>{p("getPermission","driveId",t),p("getPermission","itemId",e),p("getPermission","permId",o);const s="/v1beta1/drives/{drive-id}/items/{item-id}/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))).replace("{perm-id}",encodeURIComponent(String(o))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"GET",...l,...a},c={},d={};U(i,n),V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},{url:v(r),options:i}},invite:async(t,e,o,a={})=>{p("invite","driveId",t),p("invite","itemId",e);const s="/v1beta1/drives/{drive-id}/items/{item-id}/invite".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"POST",...l,...a},c={},d={};U(i,n),c["Content-Type"]="application/json",V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},i.data=S(o,i,n),{url:v(r),options:i}},listPermissions:async(t,e,o,a,s,r,l={})=>{p("listPermissions","driveId",t),p("listPermissions","itemId",e);const i="/v1beta1/drives/{drive-id}/items/{item-id}/permissions".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))),c=new URL(i,P);let d;n&&(d=n.baseOptions);const O={method:"GET",...d,...l},x={},w={};U(O,n),o!==void 0&&(w.$filter=o),a&&(w.$select=Array.from(a).join(b.csv)),s!==void 0&&(w.$count=s),r!==void 0&&(w.$top=r),V(c,w);let Ce=d&&d.headers?d.headers:{};return O.headers={...x,...Ce,...l.headers},{url:v(c),options:O}},setPermissionPassword:async(t,e,o,a,s={})=>{p("setPermissionPassword","driveId",t),p("setPermissionPassword","itemId",e),p("setPermissionPassword","permId",o),p("setPermissionPassword","sharingLinkPassword",a);const r="/v1beta1/drives/{drive-id}/items/{item-id}/permissions/{perm-id}/setPassword".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))).replace("{perm-id}",encodeURIComponent(String(o))),l=new URL(r,P);let i;n&&(i=n.baseOptions);const c={method:"POST",...i,...s},d={},O={};U(c,n),d["Content-Type"]="application/json",V(l,O);let x=i&&i.headers?i.headers:{};return c.headers={...d,...x,...s.headers},c.data=S(a,c,n),{url:v(l),options:c}},updatePermission:async(t,e,o,a,s={})=>{p("updatePermission","driveId",t),p("updatePermission","itemId",e),p("updatePermission","permId",o),p("updatePermission","permission",a);const r="/v1beta1/drives/{drive-id}/items/{item-id}/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))).replace("{perm-id}",encodeURIComponent(String(o))),l=new URL(r,P);let i;n&&(i=n.baseOptions);const c={method:"PATCH",...i,...s},d={},O={};U(c,n),d["Content-Type"]="application/json",V(l,O);let x=i&&i.headers?i.headers:{};return c.headers={...d,...x,...s.headers},c.data=S(a,c,n),{url:v(l),options:c}}}},E=function(n){const t=oe(n);return{async createLink(e,o,a,s){const r=await t.createLink(e,o,a,s),l=n?.serverIndex??0,i=u["DrivesPermissionsApi.createLink"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async deletePermission(e,o,a,s){const r=await t.deletePermission(e,o,a,s),l=n?.serverIndex??0,i=u["DrivesPermissionsApi.deletePermission"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async getPermission(e,o,a,s){const r=await t.getPermission(e,o,a,s),l=n?.serverIndex??0,i=u["DrivesPermissionsApi.getPermission"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async invite(e,o,a,s){const r=await t.invite(e,o,a,s),l=n?.serverIndex??0,i=u["DrivesPermissionsApi.invite"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async listPermissions(e,o,a,s,r,l,i){const c=await t.listPermissions(e,o,a,s,r,l,i),d=n?.serverIndex??0,O=u["DrivesPermissionsApi.listPermissions"]?.[d]?.url;return(x,w)=>A(c,h.axios,m,n)(x,O||w)},async setPermissionPassword(e,o,a,s,r){const l=await t.setPermissionPassword(e,o,a,s,r),i=n?.serverIndex??0,c=u["DrivesPermissionsApi.setPermissionPassword"]?.[i]?.url;return(d,O)=>A(l,h.axios,m,n)(d,c||O)},async updatePermission(e,o,a,s,r){const l=await t.updatePermission(e,o,a,s,r),i=n?.serverIndex??0,c=u["DrivesPermissionsApi.updatePermission"]?.[i]?.url;return(d,O)=>A(l,h.axios,m,n)(d,c||O)}}},Qe=function(n,t,e){const o=E(n);return{createLink(a,s,r,l){return o.createLink(a,s,r,l).then(i=>i(e,t))},deletePermission(a,s,r,l){return o.deletePermission(a,s,r,l).then(i=>i(e,t))},getPermission(a,s,r,l){return o.getPermission(a,s,r,l).then(i=>i(e,t))},invite(a,s,r,l){return o.invite(a,s,r,l).then(i=>i(e,t))},listPermissions(a,s,r,l,i,c,d){return o.listPermissions(a,s,r,l,i,c,d).then(O=>O(e,t))},setPermissionPassword(a,s,r,l,i){return o.setPermissionPassword(a,s,r,l,i).then(c=>c(e,t))},updatePermission(a,s,r,l,i){return o.updatePermission(a,s,r,l,i).then(c=>c(e,t))}}};class Ne extends y{createLink(t,e,o,a){return E(this.configuration).createLink(t,e,o,a).then(s=>s(this.axios,this.basePath))}deletePermission(t,e,o,a){return E(this.configuration).deletePermission(t,e,o,a).then(s=>s(this.axios,this.basePath))}getPermission(t,e,o,a){return E(this.configuration).getPermission(t,e,o,a).then(s=>s(this.axios,this.basePath))}invite(t,e,o,a){return E(this.configuration).invite(t,e,o,a).then(s=>s(this.axios,this.basePath))}listPermissions(t,e,o,a,s,r,l){return E(this.configuration).listPermissions(t,e,o,a,s,r,l).then(i=>i(this.axios,this.basePath))}setPermissionPassword(t,e,o,a,s){return E(this.configuration).setPermissionPassword(t,e,o,a,s).then(r=>r(this.axios,this.basePath))}updatePermission(t,e,o,a,s){return E(this.configuration).updatePermission(t,e,o,a,s).then(r=>r(this.axios,this.basePath))}}const ke={LibreGraphPermissionsActionsAllowedValues:"@libre.graph.permissions.actions.allowedValues",LibreGraphPermissionsRolesAllowedValues:"@libre.graph.permissions.roles.allowedValues",Value:"value"},ne=function(n){return{createDriveItem:async(t,e,o={})=>{p("createDriveItem","driveId",t);const a="/v1beta1/drives/{drive-id}/root/children".replace("{drive-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},createLinkSpaceRoot:async(t,e,o={})=>{p("createLinkSpaceRoot","driveId",t);const a="/v1beta1/drives/{drive-id}/root/createLink".replace("{drive-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},deletePermissionSpaceRoot:async(t,e,o={})=>{p("deletePermissionSpaceRoot","driveId",t),p("deletePermissionSpaceRoot","permId",e);const a="/v1beta1/drives/{drive-id}/root/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{perm-id}",encodeURIComponent(String(e))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};U(l,n),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},getPermissionSpaceRoot:async(t,e,o={})=>{p("getPermissionSpaceRoot","driveId",t),p("getPermissionSpaceRoot","permId",e);const a="/v1beta1/drives/{drive-id}/root/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{perm-id}",encodeURIComponent(String(e))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"GET",...r,...o},i={},c={};U(l,n),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},getRoot:async(t,e={})=>{p("getRoot","driveId",t);const o="/v1.0/drives/{drive-id}/root".replace("{drive-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},inviteSpaceRoot:async(t,e,o={})=>{p("inviteSpaceRoot","driveId",t);const a="/v1beta1/drives/{drive-id}/root/invite".replace("{drive-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},listPermissionsSpaceRoot:async(t,e,o,a,s,r={})=>{p("listPermissionsSpaceRoot","driveId",t);const l="/v1beta1/drives/{drive-id}/root/permissions".replace("{drive-id}",encodeURIComponent(String(t))),i=new URL(l,P);let c;n&&(c=n.baseOptions);const d={method:"GET",...c,...r},O={},x={};U(d,n),e!==void 0&&(x.$filter=e),o&&(x.$select=Array.from(o).join(b.csv)),a!==void 0&&(x.$count=a),s!==void 0&&(x.$top=s),V(i,x);let w=c&&c.headers?c.headers:{};return d.headers={...O,...w,...r.headers},{url:v(i),options:d}},setPermissionPasswordSpaceRoot:async(t,e,o,a={})=>{p("setPermissionPasswordSpaceRoot","driveId",t),p("setPermissionPasswordSpaceRoot","permId",e),p("setPermissionPasswordSpaceRoot","sharingLinkPassword",o);const s="/v1beta1/drives/{drive-id}/root/permissions/{perm-id}/setPassword".replace("{drive-id}",encodeURIComponent(String(t))).replace("{perm-id}",encodeURIComponent(String(e))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"POST",...l,...a},c={},d={};U(i,n),c["Content-Type"]="application/json",V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},i.data=S(o,i,n),{url:v(r),options:i}},updatePermissionSpaceRoot:async(t,e,o,a={})=>{p("updatePermissionSpaceRoot","driveId",t),p("updatePermissionSpaceRoot","permId",e),p("updatePermissionSpaceRoot","permission",o);const s="/v1beta1/drives/{drive-id}/root/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{perm-id}",encodeURIComponent(String(e))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"PATCH",...l,...a},c={},d={};U(i,n),c["Content-Type"]="application/json",V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},i.data=S(o,i,n),{url:v(r),options:i}}}},I=function(n){const t=ne(n);return{async createDriveItem(e,o,a){const s=await t.createDriveItem(e,o,a),r=n?.serverIndex??0,l=u["DrivesRootApi.createDriveItem"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async createLinkSpaceRoot(e,o,a){const s=await t.createLinkSpaceRoot(e,o,a),r=n?.serverIndex??0,l=u["DrivesRootApi.createLinkSpaceRoot"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async deletePermissionSpaceRoot(e,o,a){const s=await t.deletePermissionSpaceRoot(e,o,a),r=n?.serverIndex??0,l=u["DrivesRootApi.deletePermissionSpaceRoot"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async getPermissionSpaceRoot(e,o,a){const s=await t.getPermissionSpaceRoot(e,o,a),r=n?.serverIndex??0,l=u["DrivesRootApi.getPermissionSpaceRoot"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async getRoot(e,o){const a=await t.getRoot(e,o),s=n?.serverIndex??0,r=u["DrivesRootApi.getRoot"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async inviteSpaceRoot(e,o,a){const s=await t.inviteSpaceRoot(e,o,a),r=n?.serverIndex??0,l=u["DrivesRootApi.inviteSpaceRoot"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async listPermissionsSpaceRoot(e,o,a,s,r,l){const i=await t.listPermissionsSpaceRoot(e,o,a,s,r,l),c=n?.serverIndex??0,d=u["DrivesRootApi.listPermissionsSpaceRoot"]?.[c]?.url;return(O,x)=>A(i,h.axios,m,n)(O,d||x)},async setPermissionPasswordSpaceRoot(e,o,a,s){const r=await t.setPermissionPasswordSpaceRoot(e,o,a,s),l=n?.serverIndex??0,i=u["DrivesRootApi.setPermissionPasswordSpaceRoot"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async updatePermissionSpaceRoot(e,o,a,s){const r=await t.updatePermissionSpaceRoot(e,o,a,s),l=n?.serverIndex??0,i=u["DrivesRootApi.updatePermissionSpaceRoot"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)}}},We=function(n,t,e){const o=I(n);return{createDriveItem(a,s,r){return o.createDriveItem(a,s,r).then(l=>l(e,t))},createLinkSpaceRoot(a,s,r){return o.createLinkSpaceRoot(a,s,r).then(l=>l(e,t))},deletePermissionSpaceRoot(a,s,r){return o.deletePermissionSpaceRoot(a,s,r).then(l=>l(e,t))},getPermissionSpaceRoot(a,s,r){return o.getPermissionSpaceRoot(a,s,r).then(l=>l(e,t))},getRoot(a,s){return o.getRoot(a,s).then(r=>r(e,t))},inviteSpaceRoot(a,s,r){return o.inviteSpaceRoot(a,s,r).then(l=>l(e,t))},listPermissionsSpaceRoot(a,s,r,l,i,c){return o.listPermissionsSpaceRoot(a,s,r,l,i,c).then(d=>d(e,t))},setPermissionPasswordSpaceRoot(a,s,r,l){return o.setPermissionPasswordSpaceRoot(a,s,r,l).then(i=>i(e,t))},updatePermissionSpaceRoot(a,s,r,l){return o.updatePermissionSpaceRoot(a,s,r,l).then(i=>i(e,t))}}};class ze extends y{createDriveItem(t,e,o){return I(this.configuration).createDriveItem(t,e,o).then(a=>a(this.axios,this.basePath))}createLinkSpaceRoot(t,e,o){return I(this.configuration).createLinkSpaceRoot(t,e,o).then(a=>a(this.axios,this.basePath))}deletePermissionSpaceRoot(t,e,o){return I(this.configuration).deletePermissionSpaceRoot(t,e,o).then(a=>a(this.axios,this.basePath))}getPermissionSpaceRoot(t,e,o){return I(this.configuration).getPermissionSpaceRoot(t,e,o).then(a=>a(this.axios,this.basePath))}getRoot(t,e){return I(this.configuration).getRoot(t,e).then(o=>o(this.axios,this.basePath))}inviteSpaceRoot(t,e,o){return I(this.configuration).inviteSpaceRoot(t,e,o).then(a=>a(this.axios,this.basePath))}listPermissionsSpaceRoot(t,e,o,a,s,r){return I(this.configuration).listPermissionsSpaceRoot(t,e,o,a,s,r).then(l=>l(this.axios,this.basePath))}setPermissionPasswordSpaceRoot(t,e,o,a){return I(this.configuration).setPermissionPasswordSpaceRoot(t,e,o,a).then(s=>s(this.axios,this.basePath))}updatePermissionSpaceRoot(t,e,o,a){return I(this.configuration).updatePermissionSpaceRoot(t,e,o,a).then(s=>s(this.axios,this.basePath))}}const Je={LibreGraphPermissionsActionsAllowedValues:"@libre.graph.permissions.actions.allowedValues",LibreGraphPermissionsRolesAllowedValues:"@libre.graph.permissions.roles.allowedValues",Value:"value"},le=function(n){return{addUserToClass:async(t,e,o={})=>{p("addUserToClass","classId",t),p("addUserToClass","classMemberReference",e);const a="/v1.0/education/classes/{class-id}/members/$ref".replace("{class-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};await R(i,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},createClass:async(t,e={})=>{p("createClass","educationClass",t);const o="/v1.0/education/classes",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"POST",...s,...e},l={},i={};await R(l,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}},deleteClass:async(t,e={})=>{p("deleteClass","classId",t);const o="/v1.0/education/classes/{class-id}".replace("{class-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"DELETE",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},deleteUserFromClass:async(t,e,o={})=>{p("deleteUserFromClass","classId",t),p("deleteUserFromClass","userId",e);const a="/v1.0/education/classes/{class-id}/members/{user-id}/$ref".replace("{class-id}",encodeURIComponent(String(t))).replace("{user-id}",encodeURIComponent(String(e))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};await R(i,n),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},getClass:async(t,e={})=>{p("getClass","classId",t);const o="/v1.0/education/classes/{class-id}".replace("{class-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},listClassMembers:async(t,e={})=>{p("listClassMembers","classId",t);const o="/v1.0/education/classes/{class-id}/members".replace("{class-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},listClasses:async(t={})=>{const e="/v1.0/education/classes",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};await R(r,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}},updateClass:async(t,e,o={})=>{p("updateClass","classId",t),p("updateClass","educationClass",e);const a="/v1.0/education/classes/{class-id}".replace("{class-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"PATCH",...r,...o},i={},c={};await R(i,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}}}},D=function(n){const t=le(n);return{async addUserToClass(e,o,a){const s=await t.addUserToClass(e,o,a),r=n?.serverIndex??0,l=u["EducationClassApi.addUserToClass"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async createClass(e,o){const a=await t.createClass(e,o),s=n?.serverIndex??0,r=u["EducationClassApi.createClass"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async deleteClass(e,o){const a=await t.deleteClass(e,o),s=n?.serverIndex??0,r=u["EducationClassApi.deleteClass"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async deleteUserFromClass(e,o,a){const s=await t.deleteUserFromClass(e,o,a),r=n?.serverIndex??0,l=u["EducationClassApi.deleteUserFromClass"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async getClass(e,o){const a=await t.getClass(e,o),s=n?.serverIndex??0,r=u["EducationClassApi.getClass"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listClassMembers(e,o){const a=await t.listClassMembers(e,o),s=n?.serverIndex??0,r=u["EducationClassApi.listClassMembers"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listClasses(e){const o=await t.listClasses(e),a=n?.serverIndex??0,s=u["EducationClassApi.listClasses"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)},async updateClass(e,o,a){const s=await t.updateClass(e,o,a),r=n?.serverIndex??0,l=u["EducationClassApi.updateClass"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)}}},_e=function(n,t,e){const o=D(n);return{addUserToClass(a,s,r){return o.addUserToClass(a,s,r).then(l=>l(e,t))},createClass(a,s){return o.createClass(a,s).then(r=>r(e,t))},deleteClass(a,s){return o.deleteClass(a,s).then(r=>r(e,t))},deleteUserFromClass(a,s,r){return o.deleteUserFromClass(a,s,r).then(l=>l(e,t))},getClass(a,s){return o.getClass(a,s).then(r=>r(e,t))},listClassMembers(a,s){return o.listClassMembers(a,s).then(r=>r(e,t))},listClasses(a){return o.listClasses(a).then(s=>s(e,t))},updateClass(a,s,r){return o.updateClass(a,s,r).then(l=>l(e,t))}}};class Ke extends y{addUserToClass(t,e,o){return D(this.configuration).addUserToClass(t,e,o).then(a=>a(this.axios,this.basePath))}createClass(t,e){return D(this.configuration).createClass(t,e).then(o=>o(this.axios,this.basePath))}deleteClass(t,e){return D(this.configuration).deleteClass(t,e).then(o=>o(this.axios,this.basePath))}deleteUserFromClass(t,e,o){return D(this.configuration).deleteUserFromClass(t,e,o).then(a=>a(this.axios,this.basePath))}getClass(t,e){return D(this.configuration).getClass(t,e).then(o=>o(this.axios,this.basePath))}listClassMembers(t,e){return D(this.configuration).listClassMembers(t,e).then(o=>o(this.axios,this.basePath))}listClasses(t){return D(this.configuration).listClasses(t).then(e=>e(this.axios,this.basePath))}updateClass(t,e,o){return D(this.configuration).updateClass(t,e,o).then(a=>a(this.axios,this.basePath))}}const ie=function(n){return{addTeacherToClass:async(t,e,o={})=>{p("addTeacherToClass","classId",t),p("addTeacherToClass","classTeacherReference",e);const a="/v1.0/education/classes/{class-id}/teachers/$ref".replace("{class-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};await R(i,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},deleteTeacherFromClass:async(t,e,o={})=>{p("deleteTeacherFromClass","classId",t),p("deleteTeacherFromClass","userId",e);const a="/v1.0/education/classes/{class-id}/teachers/{user-id}/$ref".replace("{class-id}",encodeURIComponent(String(t))).replace("{user-id}",encodeURIComponent(String(e))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};await R(i,n),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},getTeachers:async(t,e={})=>{p("getTeachers","classId",t);const o="/v1.0/education/classes/{class-id}/teachers".replace("{class-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}}}},j=function(n){const t=ie(n);return{async addTeacherToClass(e,o,a){const s=await t.addTeacherToClass(e,o,a),r=n?.serverIndex??0,l=u["EducationClassTeachersApi.addTeacherToClass"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async deleteTeacherFromClass(e,o,a){const s=await t.deleteTeacherFromClass(e,o,a),r=n?.serverIndex??0,l=u["EducationClassTeachersApi.deleteTeacherFromClass"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async getTeachers(e,o){const a=await t.getTeachers(e,o),s=n?.serverIndex??0,r=u["EducationClassTeachersApi.getTeachers"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},Ye=function(n,t,e){const o=j(n);return{addTeacherToClass(a,s,r){return o.addTeacherToClass(a,s,r).then(l=>l(e,t))},deleteTeacherFromClass(a,s,r){return o.deleteTeacherFromClass(a,s,r).then(l=>l(e,t))},getTeachers(a,s){return o.getTeachers(a,s).then(r=>r(e,t))}}};class Xe extends y{addTeacherToClass(t,e,o){return j(this.configuration).addTeacherToClass(t,e,o).then(a=>a(this.axios,this.basePath))}deleteTeacherFromClass(t,e,o){return j(this.configuration).deleteTeacherFromClass(t,e,o).then(a=>a(this.axios,this.basePath))}getTeachers(t,e){return j(this.configuration).getTeachers(t,e).then(o=>o(this.axios,this.basePath))}}const ce=function(n){return{addClassToSchool:async(t,e,o={})=>{p("addClassToSchool","schoolId",t),p("addClassToSchool","classReference",e);const a="/v1.0/education/schools/{school-id}/classes/$ref".replace("{school-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};await R(i,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},addUserToSchool:async(t,e,o={})=>{p("addUserToSchool","schoolId",t),p("addUserToSchool","educationUserReference",e);const a="/v1.0/education/schools/{school-id}/users/$ref".replace("{school-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};await R(i,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},createSchool:async(t,e={})=>{p("createSchool","educationSchool",t);const o="/v1.0/education/schools",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"POST",...s,...e},l={},i={};await R(l,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}},deleteClassFromSchool:async(t,e,o={})=>{p("deleteClassFromSchool","schoolId",t),p("deleteClassFromSchool","classId",e);const a="/v1.0/education/schools/{school-id}/classes/{class-id}/$ref".replace("{school-id}",encodeURIComponent(String(t))).replace("{class-id}",encodeURIComponent(String(e))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};await R(i,n),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},deleteSchool:async(t,e={})=>{p("deleteSchool","schoolId",t);const o="/v1.0/education/schools/{school-id}".replace("{school-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"DELETE",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},deleteUserFromSchool:async(t,e,o={})=>{p("deleteUserFromSchool","schoolId",t),p("deleteUserFromSchool","userId",e);const a="/v1.0/education/schools/{school-id}/users/{user-id}/$ref".replace("{school-id}",encodeURIComponent(String(t))).replace("{user-id}",encodeURIComponent(String(e))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};await R(i,n),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},getSchool:async(t,e={})=>{p("getSchool","schoolId",t);const o="/v1.0/education/schools/{school-id}".replace("{school-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},listSchoolClasses:async(t,e={})=>{p("listSchoolClasses","schoolId",t);const o="/v1.0/education/schools/{school-id}/classes".replace("{school-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},listSchoolUsers:async(t,e={})=>{p("listSchoolUsers","schoolId",t);const o="/v1.0/education/schools/{school-id}/users".replace("{school-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},listSchools:async(t={})=>{const e="/v1.0/education/schools",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};await R(r,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}},updateSchool:async(t,e,o={})=>{p("updateSchool","schoolId",t),p("updateSchool","educationSchool",e);const a="/v1.0/education/schools/{school-id}".replace("{school-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"PATCH",...r,...o},i={},c={};await R(i,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}}}},C=function(n){const t=ce(n);return{async addClassToSchool(e,o,a){const s=await t.addClassToSchool(e,o,a),r=n?.serverIndex??0,l=u["EducationSchoolApi.addClassToSchool"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async addUserToSchool(e,o,a){const s=await t.addUserToSchool(e,o,a),r=n?.serverIndex??0,l=u["EducationSchoolApi.addUserToSchool"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async createSchool(e,o){const a=await t.createSchool(e,o),s=n?.serverIndex??0,r=u["EducationSchoolApi.createSchool"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async deleteClassFromSchool(e,o,a){const s=await t.deleteClassFromSchool(e,o,a),r=n?.serverIndex??0,l=u["EducationSchoolApi.deleteClassFromSchool"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async deleteSchool(e,o){const a=await t.deleteSchool(e,o),s=n?.serverIndex??0,r=u["EducationSchoolApi.deleteSchool"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async deleteUserFromSchool(e,o,a){const s=await t.deleteUserFromSchool(e,o,a),r=n?.serverIndex??0,l=u["EducationSchoolApi.deleteUserFromSchool"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async getSchool(e,o){const a=await t.getSchool(e,o),s=n?.serverIndex??0,r=u["EducationSchoolApi.getSchool"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listSchoolClasses(e,o){const a=await t.listSchoolClasses(e,o),s=n?.serverIndex??0,r=u["EducationSchoolApi.listSchoolClasses"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listSchoolUsers(e,o){const a=await t.listSchoolUsers(e,o),s=n?.serverIndex??0,r=u["EducationSchoolApi.listSchoolUsers"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listSchools(e){const o=await t.listSchools(e),a=n?.serverIndex??0,s=u["EducationSchoolApi.listSchools"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)},async updateSchool(e,o,a){const s=await t.updateSchool(e,o,a),r=n?.serverIndex??0,l=u["EducationSchoolApi.updateSchool"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)}}},Ze=function(n,t,e){const o=C(n);return{addClassToSchool(a,s,r){return o.addClassToSchool(a,s,r).then(l=>l(e,t))},addUserToSchool(a,s,r){return o.addUserToSchool(a,s,r).then(l=>l(e,t))},createSchool(a,s){return o.createSchool(a,s).then(r=>r(e,t))},deleteClassFromSchool(a,s,r){return o.deleteClassFromSchool(a,s,r).then(l=>l(e,t))},deleteSchool(a,s){return o.deleteSchool(a,s).then(r=>r(e,t))},deleteUserFromSchool(a,s,r){return o.deleteUserFromSchool(a,s,r).then(l=>l(e,t))},getSchool(a,s){return o.getSchool(a,s).then(r=>r(e,t))},listSchoolClasses(a,s){return o.listSchoolClasses(a,s).then(r=>r(e,t))},listSchoolUsers(a,s){return o.listSchoolUsers(a,s).then(r=>r(e,t))},listSchools(a){return o.listSchools(a).then(s=>s(e,t))},updateSchool(a,s,r){return o.updateSchool(a,s,r).then(l=>l(e,t))}}};class fe extends y{addClassToSchool(t,e,o){return C(this.configuration).addClassToSchool(t,e,o).then(a=>a(this.axios,this.basePath))}addUserToSchool(t,e,o){return C(this.configuration).addUserToSchool(t,e,o).then(a=>a(this.axios,this.basePath))}createSchool(t,e){return C(this.configuration).createSchool(t,e).then(o=>o(this.axios,this.basePath))}deleteClassFromSchool(t,e,o){return C(this.configuration).deleteClassFromSchool(t,e,o).then(a=>a(this.axios,this.basePath))}deleteSchool(t,e){return C(this.configuration).deleteSchool(t,e).then(o=>o(this.axios,this.basePath))}deleteUserFromSchool(t,e,o){return C(this.configuration).deleteUserFromSchool(t,e,o).then(a=>a(this.axios,this.basePath))}getSchool(t,e){return C(this.configuration).getSchool(t,e).then(o=>o(this.axios,this.basePath))}listSchoolClasses(t,e){return C(this.configuration).listSchoolClasses(t,e).then(o=>o(this.axios,this.basePath))}listSchoolUsers(t,e){return C(this.configuration).listSchoolUsers(t,e).then(o=>o(this.axios,this.basePath))}listSchools(t){return C(this.configuration).listSchools(t).then(e=>e(this.axios,this.basePath))}updateSchool(t,e,o){return C(this.configuration).updateSchool(t,e,o).then(a=>a(this.axios,this.basePath))}}const de=function(n){return{createEducationUser:async(t,e={})=>{p("createEducationUser","educationUser",t);const o="/v1.0/education/users",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"POST",...s,...e},l={},i={};await R(l,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}},deleteEducationUser:async(t,e={})=>{p("deleteEducationUser","userId",t);const o="/v1.0/education/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"DELETE",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},getEducationUser:async(t,e,o={})=>{p("getEducationUser","userId",t);const a="/v1.0/education/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"GET",...r,...o},i={},c={};await R(i,n),e&&(c.$expand=Array.from(e).join(b.csv)),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},listEducationUsers:async(t,e,o={})=>{const a="/v1.0/education/users",s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"GET",...r,...o},i={},c={};await R(i,n),t&&(c.$orderby=Array.from(t).join(b.csv)),e&&(c.$expand=Array.from(e).join(b.csv)),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},updateEducationUser:async(t,e,o={})=>{p("updateEducationUser","userId",t),p("updateEducationUser","educationUser",e);const a="/v1.0/education/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"PATCH",...r,...o},i={},c={};await R(i,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}}}},F=function(n){const t=de(n);return{async createEducationUser(e,o){const a=await t.createEducationUser(e,o),s=n?.serverIndex??0,r=u["EducationUserApi.createEducationUser"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async deleteEducationUser(e,o){const a=await t.deleteEducationUser(e,o),s=n?.serverIndex??0,r=u["EducationUserApi.deleteEducationUser"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async getEducationUser(e,o,a){const s=await t.getEducationUser(e,o,a),r=n?.serverIndex??0,l=u["EducationUserApi.getEducationUser"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async listEducationUsers(e,o,a){const s=await t.listEducationUsers(e,o,a),r=n?.serverIndex??0,l=u["EducationUserApi.listEducationUsers"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async updateEducationUser(e,o,a){const s=await t.updateEducationUser(e,o,a),r=n?.serverIndex??0,l=u["EducationUserApi.updateEducationUser"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)}}},es=function(n,t,e){const o=F(n);return{createEducationUser(a,s){return o.createEducationUser(a,s).then(r=>r(e,t))},deleteEducationUser(a,s){return o.deleteEducationUser(a,s).then(r=>r(e,t))},getEducationUser(a,s,r){return o.getEducationUser(a,s,r).then(l=>l(e,t))},listEducationUsers(a,s,r){return o.listEducationUsers(a,s,r).then(l=>l(e,t))},updateEducationUser(a,s,r){return o.updateEducationUser(a,s,r).then(l=>l(e,t))}}};class ss extends y{createEducationUser(t,e){return F(this.configuration).createEducationUser(t,e).then(o=>o(this.axios,this.basePath))}deleteEducationUser(t,e){return F(this.configuration).deleteEducationUser(t,e).then(o=>o(this.axios,this.basePath))}getEducationUser(t,e,o){return F(this.configuration).getEducationUser(t,e,o).then(a=>a(this.axios,this.basePath))}listEducationUsers(t,e,o){return F(this.configuration).listEducationUsers(t,e,o).then(a=>a(this.axios,this.basePath))}updateEducationUser(t,e,o){return F(this.configuration).updateEducationUser(t,e,o).then(a=>a(this.axios,this.basePath))}}const rs={MemberOf:"memberOf"},as={DisplayName:"displayName",DisplayNameDesc:"displayName desc",Mail:"mail",MailDesc:"mail desc",OnPremisesSamAccountName:"onPremisesSamAccountName",OnPremisesSamAccountNameDesc:"onPremisesSamAccountName desc"},ts={MemberOf:"memberOf"},pe=function(n){return{addMember:async(t,e,o={})=>{p("addMember","groupId",t),p("addMember","memberReference",e);const a="/v1.0/groups/{group-id}/members/$ref".replace("{group-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},deleteGroup:async(t,e,o={})=>{p("deleteGroup","groupId",t);const a="/v1.0/groups/{group-id}".replace("{group-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};U(l,n),e!=null&&(i["If-Match"]=String(e)),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},deleteMember:async(t,e,o,a={})=>{p("deleteMember","groupId",t),p("deleteMember","directoryObjectId",e);const s="/v1.0/groups/{group-id}/members/{directory-object-id}/$ref".replace("{group-id}",encodeURIComponent(String(t))).replace("{directory-object-id}",encodeURIComponent(String(e))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"DELETE",...l,...a},c={},d={};U(i,n),o!=null&&(c["If-Match"]=String(o)),V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},{url:v(r),options:i}},getGroup:async(t,e,o,a={})=>{p("getGroup","groupId",t);const s="/v1.0/groups/{group-id}".replace("{group-id}",encodeURIComponent(String(t))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"GET",...l,...a},c={},d={};U(i,n),e&&(d.$select=Array.from(e).join(b.csv)),o&&(d.$expand=Array.from(o).join(b.csv)),V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},{url:v(r),options:i}},listMembers:async(t,e={})=>{p("listMembers","groupId",t);const o="/v1.0/groups/{group-id}/members".replace("{group-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},updateGroup:async(t,e,o={})=>{p("updateGroup","groupId",t),p("updateGroup","group",e);const a="/v1.0/groups/{group-id}".replace("{group-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"PATCH",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}}}},T=function(n){const t=pe(n);return{async addMember(e,o,a){const s=await t.addMember(e,o,a),r=n?.serverIndex??0,l=u["GroupApi.addMember"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async deleteGroup(e,o,a){const s=await t.deleteGroup(e,o,a),r=n?.serverIndex??0,l=u["GroupApi.deleteGroup"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async deleteMember(e,o,a,s){const r=await t.deleteMember(e,o,a,s),l=n?.serverIndex??0,i=u["GroupApi.deleteMember"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async getGroup(e,o,a,s){const r=await t.getGroup(e,o,a,s),l=n?.serverIndex??0,i=u["GroupApi.getGroup"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async listMembers(e,o){const a=await t.listMembers(e,o),s=n?.serverIndex??0,r=u["GroupApi.listMembers"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async updateGroup(e,o,a){const s=await t.updateGroup(e,o,a),r=n?.serverIndex??0,l=u["GroupApi.updateGroup"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)}}},os=function(n,t,e){const o=T(n);return{addMember(a,s,r){return o.addMember(a,s,r).then(l=>l(e,t))},deleteGroup(a,s,r){return o.deleteGroup(a,s,r).then(l=>l(e,t))},deleteMember(a,s,r,l){return o.deleteMember(a,s,r,l).then(i=>i(e,t))},getGroup(a,s,r,l){return o.getGroup(a,s,r,l).then(i=>i(e,t))},listMembers(a,s){return o.listMembers(a,s).then(r=>r(e,t))},updateGroup(a,s,r){return o.updateGroup(a,s,r).then(l=>l(e,t))}}};class ns extends y{addMember(t,e,o){return T(this.configuration).addMember(t,e,o).then(a=>a(this.axios,this.basePath))}deleteGroup(t,e,o){return T(this.configuration).deleteGroup(t,e,o).then(a=>a(this.axios,this.basePath))}deleteMember(t,e,o,a){return T(this.configuration).deleteMember(t,e,o,a).then(s=>s(this.axios,this.basePath))}getGroup(t,e,o,a){return T(this.configuration).getGroup(t,e,o,a).then(s=>s(this.axios,this.basePath))}listMembers(t,e){return T(this.configuration).listMembers(t,e).then(o=>o(this.axios,this.basePath))}updateGroup(t,e,o){return T(this.configuration).updateGroup(t,e,o).then(a=>a(this.axios,this.basePath))}}const ls={Id:"id",Description:"description",DisplayName:"displayName",Members:"members"},is={Members:"members"},he=function(n){return{createGroup:async(t,e={})=>{p("createGroup","group",t);const o="/v1.0/groups",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"POST",...s,...e},l={},i={};U(r,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}},listGroups:async(t,e,o,a,s={})=>{const r="/v1.0/groups",l=new URL(r,P);let i;n&&(i=n.baseOptions);const c={method:"GET",...i,...s},d={},O={};U(c,n),t!==void 0&&(O.$search=t),e&&(O.$orderby=Array.from(e).join(b.csv)),o&&(O.$select=Array.from(o).join(b.csv)),a&&(O.$expand=Array.from(a).join(b.csv)),V(l,O);let x=i&&i.headers?i.headers:{};return c.headers={...d,...x,...s.headers},{url:v(l),options:c}}}},N=function(n){const t=he(n);return{async createGroup(e,o){const a=await t.createGroup(e,o),s=n?.serverIndex??0,r=u["GroupsApi.createGroup"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listGroups(e,o,a,s,r){const l=await t.listGroups(e,o,a,s,r),i=n?.serverIndex??0,c=u["GroupsApi.listGroups"]?.[i]?.url;return(d,O)=>A(l,h.axios,m,n)(d,c||O)}}},cs=function(n,t,e){const o=N(n);return{createGroup(a,s){return o.createGroup(a,s).then(r=>r(e,t))},listGroups(a,s,r,l,i){return o.listGroups(a,s,r,l,i).then(c=>c(e,t))}}};class ds extends y{createGroup(t,e){return N(this.configuration).createGroup(t,e).then(o=>o(this.axios,this.basePath))}listGroups(t,e,o,a,s){return N(this.configuration).listGroups(t,e,o,a,s).then(r=>r(this.axios,this.basePath))}}const ps={DisplayName:"displayName",DisplayNameDesc:"displayName desc"},hs={Id:"id",Description:"description",DisplayName:"displayName",Mail:"mail",Members:"members"},ms={Members:"members"},me=function(n){return{changeOwnPassword:async(t,e={})=>{p("changeOwnPassword","passwordChange",t);const o="/v1.0/me/changePassword",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"POST",...s,...e},l={},i={};U(r,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}}}},Y=function(n){const t=me(n);return{async changeOwnPassword(e,o){const a=await t.changeOwnPassword(e,o),s=n?.serverIndex??0,r=u["MeChangepasswordApi.changeOwnPassword"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},us=function(n,t,e){const o=Y(n);return{changeOwnPassword(a,s){return o.changeOwnPassword(a,s).then(r=>r(e,t))}}};class Ps extends y{changeOwnPassword(t,e){return Y(this.configuration).changeOwnPassword(t,e).then(o=>o(this.axios,this.basePath))}}const ue=function(n){return{getHome:async(t={})=>{const e="/v1.0/me/drive",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};U(s,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}},listSharedByMe:async(t,e={})=>{const o="/v1beta1/me/drive/sharedByMe",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),t&&(i.$expand=Array.from(t).join(b.csv)),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},listSharedWithMe:async(t,e={})=>{const o="/v1beta1/me/drive/sharedWithMe",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),t&&(i.$expand=Array.from(t).join(b.csv)),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}}}},g=function(n){const t=ue(n);return{async getHome(e){const o=await t.getHome(e),a=n?.serverIndex??0,s=u["MeDriveApi.getHome"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)},async listSharedByMe(e,o){const a=await t.listSharedByMe(e,o),s=n?.serverIndex??0,r=u["MeDriveApi.listSharedByMe"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listSharedWithMe(e,o){const a=await t.listSharedWithMe(e,o),s=n?.serverIndex??0,r=u["MeDriveApi.listSharedWithMe"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},Vs=function(n,t,e){const o=g(n);return{getHome(a){return o.getHome(a).then(s=>s(e,t))},listSharedByMe(a,s){return o.listSharedByMe(a,s).then(r=>r(e,t))},listSharedWithMe(a,s){return o.listSharedWithMe(a,s).then(r=>r(e,t))}}};class vs extends y{getHome(t){return g(this.configuration).getHome(t).then(e=>e(this.axios,this.basePath))}listSharedByMe(t,e){return g(this.configuration).listSharedByMe(t,e).then(o=>o(this.axios,this.basePath))}listSharedWithMe(t,e){return g(this.configuration).listSharedWithMe(t,e).then(o=>o(this.axios,this.basePath))}}const As={Thumbnails:"thumbnails"},Os={Thumbnails:"thumbnails"},Pe=function(n){return{homeGetRoot:async(t={})=>{const e="/v1.0/me/drive/root",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};U(s,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}}}},X=function(n){const t=Pe(n);return{async homeGetRoot(e){const o=await t.homeGetRoot(e),a=n?.serverIndex??0,s=u["MeDriveRootApi.homeGetRoot"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)}}},Us=function(n,t,e){const o=X(n);return{homeGetRoot(a){return o.homeGetRoot(a).then(s=>s(e,t))}}};class Ss extends y{homeGetRoot(t){return X(this.configuration).homeGetRoot(t).then(e=>e(this.axios,this.basePath))}}const Ve=function(n){return{homeGetChildren:async(t={})=>{const e="/v1.0/me/drive/root/children",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};U(s,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}}}},Z=function(n){const t=Ve(n);return{async homeGetChildren(e){const o=await t.homeGetChildren(e),a=n?.serverIndex??0,s=u["MeDriveRootChildrenApi.homeGetChildren"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)}}},xs=function(n,t,e){const o=Z(n);return{homeGetChildren(a){return o.homeGetChildren(a).then(s=>s(e,t))}}};class Rs extends y{homeGetChildren(t){return Z(this.configuration).homeGetChildren(t).then(e=>e(this.axios,this.basePath))}}const ve=function(n){return{listMyDrives:async(t,e,o={})=>{const a="/v1.0/me/drives",s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"GET",...r,...o},i={},c={};U(l,n),t!==void 0&&(c.$orderby=t),e!==void 0&&(c.$filter=e),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},listMyDrivesBeta:async(t,e,o,a,s={})=>{const r="/v1beta1/me/drives",l=new URL(r,P);let i;n&&(i=n.baseOptions);const c={method:"GET",...i,...s},d={},O={};U(c,n),t!==void 0&&(O.$orderby=t),e!==void 0&&(O.$filter=e),o!==void 0&&(O.$expand=o),a&&(O.$select=Array.from(a).join(b.csv)),V(l,O);let x=i&&i.headers?i.headers:{};return c.headers={...d,...x,...s.headers},{url:v(l),options:c}}}},k=function(n){const t=ve(n);return{async listMyDrives(e,o,a){const s=await t.listMyDrives(e,o,a),r=n?.serverIndex??0,l=u["MeDrivesApi.listMyDrives"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async listMyDrivesBeta(e,o,a,s,r){const l=await t.listMyDrivesBeta(e,o,a,s,r),i=n?.serverIndex??0,c=u["MeDrivesApi.listMyDrivesBeta"]?.[i]?.url;return(d,O)=>A(l,h.axios,m,n)(d,c||O)}}},ys=function(n,t,e){const o=k(n);return{listMyDrives(a,s,r){return o.listMyDrives(a,s,r).then(l=>l(e,t))},listMyDrivesBeta(a,s,r,l,i){return o.listMyDrivesBeta(a,s,r,l,i).then(c=>c(e,t))}}};class bs extends y{listMyDrives(t,e,o){return k(this.configuration).listMyDrives(t,e,o).then(a=>a(this.axios,this.basePath))}listMyDrivesBeta(t,e,o,a,s){return k(this.configuration).listMyDrivesBeta(t,e,o,a,s).then(r=>r(this.axios,this.basePath))}}const Cs={LibreGraphHasTrashedItems:"@libre.graph.hasTrashedItems"},Ae=function(n){return{deleteOwnUserPhoto:async(t={})=>{const e="/v1.0/me/photo/$value",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"DELETE",...a,...t},r={},l={};U(s,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}},getOwnUserPhoto:async(t={})=>{const e="/v1.0/me/photo/$value",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};U(s,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}},updateOwnUserPhotoPatch:async(t,e={})=>{const o="/v1.0/me/photo/$value",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"PATCH",...s,...e},l={},i={};U(r,n),l["Content-Type"]="image/jpeg",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}},updateOwnUserPhotoPut:async(t,e={})=>{const o="/v1.0/me/photo/$value",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"PUT",...s,...e},l={},i={};U(r,n),l["Content-Type"]="image/jpeg",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}}}},M=function(n){const t=Ae(n);return{async deleteOwnUserPhoto(e){const o=await t.deleteOwnUserPhoto(e),a=n?.serverIndex??0,s=u["MePhotoApi.deleteOwnUserPhoto"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)},async getOwnUserPhoto(e){const o=await t.getOwnUserPhoto(e),a=n?.serverIndex??0,s=u["MePhotoApi.getOwnUserPhoto"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)},async updateOwnUserPhotoPatch(e,o){const a=await t.updateOwnUserPhotoPatch(e,o),s=n?.serverIndex??0,r=u["MePhotoApi.updateOwnUserPhotoPatch"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async updateOwnUserPhotoPut(e,o){const a=await t.updateOwnUserPhotoPut(e,o),s=n?.serverIndex??0,r=u["MePhotoApi.updateOwnUserPhotoPut"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},ws=function(n,t,e){const o=M(n);return{deleteOwnUserPhoto(a){return o.deleteOwnUserPhoto(a).then(s=>s(e,t))},getOwnUserPhoto(a){return o.getOwnUserPhoto(a).then(s=>s(e,t))},updateOwnUserPhotoPatch(a,s){return o.updateOwnUserPhotoPatch(a,s).then(r=>r(e,t))},updateOwnUserPhotoPut(a,s){return o.updateOwnUserPhotoPut(a,s).then(r=>r(e,t))}}};class Is extends y{deleteOwnUserPhoto(t){return M(this.configuration).deleteOwnUserPhoto(t).then(e=>e(this.axios,this.basePath))}getOwnUserPhoto(t){return M(this.configuration).getOwnUserPhoto(t).then(e=>e(this.axios,this.basePath))}updateOwnUserPhotoPatch(t,e){return M(this.configuration).updateOwnUserPhotoPatch(t,e).then(o=>o(this.axios,this.basePath))}updateOwnUserPhotoPut(t,e){return M(this.configuration).updateOwnUserPhotoPut(t,e).then(o=>o(this.axios,this.basePath))}}const Oe=function(n){return{getOwnUser:async(t,e={})=>{const o="/v1.0/me",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),t&&(i.$expand=Array.from(t).join(b.csv)),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},updateOwnUser:async(t,e={})=>{const o="/v1.0/me",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"PATCH",...s,...e},l={},i={};U(r,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}}}},W=function(n){const t=Oe(n);return{async getOwnUser(e,o){const a=await t.getOwnUser(e,o),s=n?.serverIndex??0,r=u["MeUserApi.getOwnUser"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async updateOwnUser(e,o){const a=await t.updateOwnUser(e,o),s=n?.serverIndex??0,r=u["MeUserApi.updateOwnUser"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},Ds=function(n,t,e){const o=W(n);return{getOwnUser(a,s){return o.getOwnUser(a,s).then(r=>r(e,t))},updateOwnUser(a,s){return o.updateOwnUser(a,s).then(r=>r(e,t))}}};class Es extends y{getOwnUser(t,e){return W(this.configuration).getOwnUser(t,e).then(o=>o(this.axios,this.basePath))}updateOwnUser(t,e){return W(this.configuration).updateOwnUser(t,e).then(o=>o(this.axios,this.basePath))}}const Ts={MemberOf:"memberOf"},Ue=function(n){return{getPermissionRoleDefinition:async(t,e={})=>{p("getPermissionRoleDefinition","roleId",t);const o="/v1beta1/roleManagement/permissions/roleDefinitions/{role-id}".replace("{role-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},listPermissionRoleDefinitions:async(t={})=>{const e="/v1beta1/roleManagement/permissions/roleDefinitions",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};U(s,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}}}},z=function(n){const t=Ue(n);return{async getPermissionRoleDefinition(e,o){const a=await t.getPermissionRoleDefinition(e,o),s=n?.serverIndex??0,r=u["RoleManagementApi.getPermissionRoleDefinition"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listPermissionRoleDefinitions(e){const o=await t.listPermissionRoleDefinitions(e),a=n?.serverIndex??0,s=u["RoleManagementApi.listPermissionRoleDefinitions"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)}}},Fs=function(n,t,e){const o=z(n);return{getPermissionRoleDefinition(a,s){return o.getPermissionRoleDefinition(a,s).then(r=>r(e,t))},listPermissionRoleDefinitions(a){return o.listPermissionRoleDefinitions(a).then(s=>s(e,t))}}};class Bs extends y{getPermissionRoleDefinition(t,e){return z(this.configuration).getPermissionRoleDefinition(t,e).then(o=>o(this.axios,this.basePath))}listPermissionRoleDefinitions(t){return z(this.configuration).listPermissionRoleDefinitions(t).then(e=>e(this.axios,this.basePath))}}const Se=function(n){return{assignTags:async(t,e={})=>{const o="/v1.0/extensions/org.libregraph/tags",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"PUT",...s,...e},l={},i={};U(r,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}},getTags:async(t={})=>{const e="/v1.0/extensions/org.libregraph/tags",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};U(s,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}},unassignTags:async(t,e={})=>{const o="/v1.0/extensions/org.libregraph/tags",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"DELETE",...s,...e},l={},i={};U(r,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}}}},H=function(n){const t=Se(n);return{async assignTags(e,o){const a=await t.assignTags(e,o),s=n?.serverIndex??0,r=u["TagsApi.assignTags"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async getTags(e){const o=await t.getTags(e),a=n?.serverIndex??0,s=u["TagsApi.getTags"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)},async unassignTags(e,o){const a=await t.unassignTags(e,o),s=n?.serverIndex??0,r=u["TagsApi.unassignTags"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},Ms=function(n,t,e){const o=H(n);return{assignTags(a,s){return o.assignTags(a,s).then(r=>r(e,t))},getTags(a){return o.getTags(a).then(s=>s(e,t))},unassignTags(a,s){return o.unassignTags(a,s).then(r=>r(e,t))}}};class Ls extends y{assignTags(t,e){return H(this.configuration).assignTags(t,e).then(o=>o(this.axios,this.basePath))}getTags(t){return H(this.configuration).getTags(t).then(e=>e(this.axios,this.basePath))}unassignTags(t,e){return H(this.configuration).unassignTags(t,e).then(o=>o(this.axios,this.basePath))}}const xe=function(n){return{deleteUser:async(t,e,o={})=>{p("deleteUser","userId",t);const a="/v1.0/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};U(l,n),e!=null&&(i["If-Match"]=String(e)),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},exportPersonalData:async(t,e,o={})=>{p("exportPersonalData","userId",t);const a="/v1.0/users/{user-id}/exportPersonalData".replace("{user-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},getUser:async(t,e,o,a={})=>{p("getUser","userId",t);const s="/v1.0/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"GET",...l,...a},c={},d={};U(i,n),e&&(d.$select=Array.from(e).join(b.csv)),o&&(d.$expand=Array.from(o).join(b.csv)),V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},{url:v(r),options:i}},updateUser:async(t,e,o={})=>{p("updateUser","userId",t),p("updateUser","userUpdate",e);const a="/v1.0/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"PATCH",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}}}},L=function(n){const t=xe(n);return{async deleteUser(e,o,a){const s=await t.deleteUser(e,o,a),r=n?.serverIndex??0,l=u["UserApi.deleteUser"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async exportPersonalData(e,o,a){const s=await t.exportPersonalData(e,o,a),r=n?.serverIndex??0,l=u["UserApi.exportPersonalData"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async getUser(e,o,a,s){const r=await t.getUser(e,o,a,s),l=n?.serverIndex??0,i=u["UserApi.getUser"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async updateUser(e,o,a){const s=await t.updateUser(e,o,a),r=n?.serverIndex??0,l=u["UserApi.updateUser"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)}}},Gs=function(n,t,e){const o=L(n);return{deleteUser(a,s,r){return o.deleteUser(a,s,r).then(l=>l(e,t))},exportPersonalData(a,s,r){return o.exportPersonalData(a,s,r).then(l=>l(e,t))},getUser(a,s,r,l){return o.getUser(a,s,r,l).then(i=>i(e,t))},updateUser(a,s,r){return o.updateUser(a,s,r).then(l=>l(e,t))}}};class js extends y{deleteUser(t,e,o){return L(this.configuration).deleteUser(t,e,o).then(a=>a(this.axios,this.basePath))}exportPersonalData(t,e,o){return L(this.configuration).exportPersonalData(t,e,o).then(a=>a(this.axios,this.basePath))}getUser(t,e,o,a){return L(this.configuration).getUser(t,e,o,a).then(s=>s(this.axios,this.basePath))}updateUser(t,e,o){return L(this.configuration).updateUser(t,e,o).then(a=>a(this.axios,this.basePath))}}const gs={Id:"id",DisplayName:"displayName",Drive:"drive",Drives:"drives",Mail:"mail",MemberOf:"memberOf",OnPremisesSamAccountName:"onPremisesSamAccountName",Surname:"surname"},Hs={Drive:"drive",Drives:"drives",MemberOf:"memberOf",AppRoleAssignments:"appRoleAssignments"},Re=function(n){return{userCreateAppRoleAssignments:async(t,e,o={})=>{p("userCreateAppRoleAssignments","userId",t),p("userCreateAppRoleAssignments","appRoleAssignment",e);const a="/v1.0/users/{user-id}/appRoleAssignments".replace("{user-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},userDeleteAppRoleAssignments:async(t,e,o,a={})=>{p("userDeleteAppRoleAssignments","userId",t),p("userDeleteAppRoleAssignments","appRoleAssignmentId",e);const s="/v1.0/users/{user-id}/appRoleAssignments/{appRoleAssignment-id}".replace("{user-id}",encodeURIComponent(String(t))).replace("{appRoleAssignment-id}",encodeURIComponent(String(e))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"DELETE",...l,...a},c={},d={};U(i,n),o!=null&&(c["If-Match"]=String(o)),V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},{url:v(r),options:i}},userListAppRoleAssignments:async(t,e={})=>{p("userListAppRoleAssignments","userId",t);const o="/v1.0/users/{user-id}/appRoleAssignments".replace("{user-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}}}},$=function(n){const t=Re(n);return{async userCreateAppRoleAssignments(e,o,a){const s=await t.userCreateAppRoleAssignments(e,o,a),r=n?.serverIndex??0,l=u["UserAppRoleAssignmentApi.userCreateAppRoleAssignments"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async userDeleteAppRoleAssignments(e,o,a,s){const r=await t.userDeleteAppRoleAssignments(e,o,a,s),l=n?.serverIndex??0,i=u["UserAppRoleAssignmentApi.userDeleteAppRoleAssignments"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async userListAppRoleAssignments(e,o){const a=await t.userListAppRoleAssignments(e,o),s=n?.serverIndex??0,r=u["UserAppRoleAssignmentApi.userListAppRoleAssignments"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},$s=function(n,t,e){const o=$(n);return{userCreateAppRoleAssignments(a,s,r){return o.userCreateAppRoleAssignments(a,s,r).then(l=>l(e,t))},userDeleteAppRoleAssignments(a,s,r,l){return o.userDeleteAppRoleAssignments(a,s,r,l).then(i=>i(e,t))},userListAppRoleAssignments(a,s){return o.userListAppRoleAssignments(a,s).then(r=>r(e,t))}}};class qs extends y{userCreateAppRoleAssignments(t,e,o){return $(this.configuration).userCreateAppRoleAssignments(t,e,o).then(a=>a(this.axios,this.basePath))}userDeleteAppRoleAssignments(t,e,o,a){return $(this.configuration).userDeleteAppRoleAssignments(t,e,o,a).then(s=>s(this.axios,this.basePath))}userListAppRoleAssignments(t,e){return $(this.configuration).userListAppRoleAssignments(t,e).then(o=>o(this.axios,this.basePath))}}const ye=function(n){return{getUserPhoto:async(t,e={})=>{p("getUserPhoto","userId",t);const o="/v1.0/users/{user-id}/photo/$value".replace("{user-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}}}},f=function(n){const t=ye(n);return{async getUserPhoto(e,o){const a=await t.getUserPhoto(e,o),s=n?.serverIndex??0,r=u["UserPhotoApi.getUserPhoto"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},Qs=function(n,t,e){const o=f(n);return{getUserPhoto(a,s){return o.getUserPhoto(a,s).then(r=>r(e,t))}}};class Ns extends y{getUserPhoto(t,e){return f(this.configuration).getUserPhoto(t,e).then(o=>o(this.axios,this.basePath))}}const be=function(n){return{createUser:async(t,e={})=>{p("createUser","user",t);const o="/v1.0/users",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"POST",...s,...e},l={},i={};U(r,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}},listUsers:async(t,e,o,a,s,r={})=>{const l="/v1.0/users",i=new URL(l,P);let c;n&&(c=n.baseOptions);const d={method:"GET",...c,...r},O={},x={};U(d,n),t!==void 0&&(x.$search=t),e!==void 0&&(x.$filter=e),o&&(x.$orderby=Array.from(o).join(b.csv)),a&&(x.$select=Array.from(a).join(b.csv)),s&&(x.$expand=Array.from(s).join(b.csv)),V(i,x);let w=c&&c.headers?c.headers:{};return d.headers={...O,...w,...r.headers},{url:v(i),options:d}}}},J=function(n){const t=be(n);return{async createUser(e,o){const a=await t.createUser(e,o),s=n?.serverIndex??0,r=u["UsersApi.createUser"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listUsers(e,o,a,s,r,l){const i=await t.listUsers(e,o,a,s,r,l),c=n?.serverIndex??0,d=u["UsersApi.listUsers"]?.[c]?.url;return(O,x)=>A(i,h.axios,m,n)(O,d||x)}}},ks=function(n,t,e){const o=J(n);return{createUser(a,s){return o.createUser(a,s).then(r=>r(e,t))},listUsers(a,s,r,l,i,c){return o.listUsers(a,s,r,l,i,c).then(d=>d(e,t))}}};class Ws extends y{createUser(t,e){return J(this.configuration).createUser(t,e).then(o=>o(this.axios,this.basePath))}listUsers(t,e,o,a,s,r){return J(this.configuration).listUsers(t,e,o,a,s,r).then(l=>l(this.axios,this.basePath))}}const zs={DisplayName:"displayName",DisplayNameDesc:"displayName desc",Mail:"mail",MailDesc:"mail desc",OnPremisesSamAccountName:"onPremisesSamAccountName",OnPremisesSamAccountNameDesc:"onPremisesSamAccountName desc"},Js={Id:"id",DisplayName:"displayName",Mail:"mail",MemberOf:"memberOf",OnPremisesSamAccountName:"onPremisesSamAccountName",Surname:"surname"},_s={Drive:"drive",Drives:"drives",MemberOf:"memberOf",AppRoleAssignments:"appRoleAssignments"};class Ks{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,headers:{...t.baseOptions?.headers}},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")}}exports.ActivitiesApi=Te;exports.ActivitiesApiAxiosParamCreator=ee;exports.ActivitiesApiFactory=Ee;exports.ActivitiesApiFp=K;exports.ApplicationsApi=Be;exports.ApplicationsApiAxiosParamCreator=se;exports.ApplicationsApiFactory=Fe;exports.ApplicationsApiFp=q;exports.Configuration=Ks;exports.DriveItemApi=Le;exports.DriveItemApiAxiosParamCreator=re;exports.DriveItemApiFactory=Me;exports.DriveItemApiFp=G;exports.DrivesApi=je;exports.DrivesApiAxiosParamCreator=ae;exports.DrivesApiFactory=Ge;exports.DrivesApiFp=B;exports.DrivesGetDrivesApi=$e;exports.DrivesGetDrivesApiAxiosParamCreator=te;exports.DrivesGetDrivesApiFactory=He;exports.DrivesGetDrivesApiFp=Q;exports.DrivesPermissionsApi=Ne;exports.DrivesPermissionsApiAxiosParamCreator=oe;exports.DrivesPermissionsApiFactory=Qe;exports.DrivesPermissionsApiFp=E;exports.DrivesRootApi=ze;exports.DrivesRootApiAxiosParamCreator=ne;exports.DrivesRootApiFactory=We;exports.DrivesRootApiFp=I;exports.EducationClassApi=Ke;exports.EducationClassApiAxiosParamCreator=le;exports.EducationClassApiFactory=_e;exports.EducationClassApiFp=D;exports.EducationClassClassificationEnum=Ie;exports.EducationClassTeachersApi=Xe;exports.EducationClassTeachersApiAxiosParamCreator=ie;exports.EducationClassTeachersApiFactory=Ye;exports.EducationClassTeachersApiFp=j;exports.EducationSchoolApi=fe;exports.EducationSchoolApiAxiosParamCreator=ce;exports.EducationSchoolApiFactory=Ze;exports.EducationSchoolApiFp=C;exports.EducationUserApi=ss;exports.EducationUserApiAxiosParamCreator=de;exports.EducationUserApiFactory=es;exports.EducationUserApiFp=F;exports.GetDriveSelectEnum=ge;exports.GetEducationUserExpandEnum=rs;exports.GetGroupExpandEnum=is;exports.GetGroupSelectEnum=ls;exports.GetOwnUserExpandEnum=Ts;exports.GetUserExpandEnum=Hs;exports.GetUserSelectEnum=gs;exports.GroupApi=ns;exports.GroupApiAxiosParamCreator=pe;exports.GroupApiFactory=os;exports.GroupApiFp=T;exports.GroupsApi=ds;exports.GroupsApiAxiosParamCreator=he;exports.GroupsApiFactory=cs;exports.GroupsApiFp=N;exports.ListAllDrivesBetaSelectEnum=qe;exports.ListEducationUsersExpandEnum=ts;exports.ListEducationUsersOrderbyEnum=as;exports.ListGroupsExpandEnum=ms;exports.ListGroupsOrderbyEnum=ps;exports.ListGroupsSelectEnum=hs;exports.ListMyDrivesBetaSelectEnum=Cs;exports.ListPermissionsSelectEnum=ke;exports.ListPermissionsSpaceRootSelectEnum=Je;exports.ListSharedByMeExpandEnum=As;exports.ListSharedWithMeExpandEnum=Os;exports.ListUsersExpandEnum=_s;exports.ListUsersOrderbyEnum=zs;exports.ListUsersSelectEnum=Js;exports.MeChangepasswordApi=Ps;exports.MeChangepasswordApiAxiosParamCreator=me;exports.MeChangepasswordApiFactory=us;exports.MeChangepasswordApiFp=Y;exports.MeDriveApi=vs;exports.MeDriveApiAxiosParamCreator=ue;exports.MeDriveApiFactory=Vs;exports.MeDriveApiFp=g;exports.MeDriveRootApi=Ss;exports.MeDriveRootApiAxiosParamCreator=Pe;exports.MeDriveRootApiFactory=Us;exports.MeDriveRootApiFp=X;exports.MeDriveRootChildrenApi=Rs;exports.MeDriveRootChildrenApiAxiosParamCreator=Ve;exports.MeDriveRootChildrenApiFactory=xs;exports.MeDriveRootChildrenApiFp=Z;exports.MeDrivesApi=bs;exports.MeDrivesApiAxiosParamCreator=ve;exports.MeDrivesApiFactory=ys;exports.MeDrivesApiFp=k;exports.MePhotoApi=Is;exports.MePhotoApiAxiosParamCreator=Ae;exports.MePhotoApiFactory=ws;exports.MePhotoApiFp=M;exports.MeUserApi=Es;exports.MeUserApiAxiosParamCreator=Oe;exports.MeUserApiFactory=Ds;exports.MeUserApiFp=W;exports.RoleManagementApi=Bs;exports.RoleManagementApiAxiosParamCreator=Ue;exports.RoleManagementApiFactory=Fs;exports.RoleManagementApiFp=z;exports.SharingLinkType=De;exports.TagsApi=Ls;exports.TagsApiAxiosParamCreator=Se;exports.TagsApiFactory=Ms;exports.TagsApiFp=H;exports.UserApi=js;exports.UserApiAxiosParamCreator=xe;exports.UserApiFactory=Gs;exports.UserApiFp=L;exports.UserAppRoleAssignmentApi=qs;exports.UserAppRoleAssignmentApiAxiosParamCreator=Re;exports.UserAppRoleAssignmentApiFactory=$s;exports.UserAppRoleAssignmentApiFp=$;exports.UserPhotoApi=Ns;exports.UserPhotoApiAxiosParamCreator=ye;exports.UserPhotoApiFactory=Qs;exports.UserPhotoApiFp=f;exports.UsersApi=Ws;exports.UsersApiAxiosParamCreator=be;exports.UsersApiFactory=ks;exports.UsersApiFp=J;
@@ -1,4 +1,4 @@
1
- import { a as p } from "../../index-BIL0cW_q.js";
1
+ import { a as p } from "../../index-2zDycGQj.js";
2
2
  const m = "https://localhost:9200/graph".replace(/\/+$/, ""), x = {
3
3
  csv: ","
4
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./graph/generated.cjs");const e=require("../index-BtN57j2H.cjs");exports.graph=e.graph;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./graph/generated.cjs");const e=require("../index-Bxm5RQq5.cjs");exports.graph=e.graph;
@@ -1,5 +1,5 @@
1
1
  import "./graph/generated.js";
2
- import { g as a } from "../index-DRZfsp9q.js";
2
+ import { g as a } from "../index-BnUvwDzR.js";
3
3
  export {
4
4
  a as graph
5
5
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-DAa_DzDf.cjs");const r=require("../index-Bc1xE_gW.cjs"),e=require("../functions-CKtvRiMa.cjs");exports.webdav=r.webdav;exports.DavMethod=e.DavMethod;exports.DavPermission=e.DavPermission;exports.DavProperties=e.DavProperties;exports.DavProperty=e.DavProperty;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-w54SVXTg.cjs");const r=require("../index-BYVVa_6N.cjs"),e=require("../functions-Ff26PgXQ.cjs");exports.webdav=r.webdav;exports.DavMethod=e.DavMethod;exports.DavPermission=e.DavPermission;exports.DavProperties=e.DavProperties;exports.DavProperty=e.DavProperty;
@@ -1,6 +1,6 @@
1
- import "../index-BIL0cW_q.js";
2
- import { w as e } from "../index-DZvghmpY.js";
3
- import { K as t, L as p, I as v, J as i } from "../functions-aGu-ugzD.js";
1
+ import "../index-2zDycGQj.js";
2
+ import { w as e } from "../index-DgKiY_JM.js";
3
+ import { K as t, L as p, J as v, I as i } from "../functions-DSF_kNxK.js";
4
4
  export {
5
5
  t as DavMethod,
6
6
  p as DavPermission,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-BtN57j2H.cjs"),n=require("./web-client/ocs.cjs"),o=require("./index-Bc1xE_gW.cjs"),e=require("./functions-CKtvRiMa.cjs"),S=require("./toString-CgHWCW2N.cjs"),l=function*(a){return yield a},h=({message:a,statusCode:t,xReqId:s})=>{const c=new Response(void 0,{headers:{"x-request-id":s},status:t});return new o.HttpError(a,c,t)};class d{static Read=1;static Update=2;static Create=4;static Delete=8;static Share=16}const b=({axiosClient:a,baseURI:t})=>{const s=()=>{const c=a.defaults?.headers?.Authorization,i=a.defaults?.headers?.["Accept-Language"],u=a.defaults?.headers?.["Initiator-ID"];return{...c&&{Authorization:c.toString()},...i&&{"Accept-Language":i.toString()},...u&&{"Initiator-ID":u.toString()}}};return{graph:r.graph(t,a),ocs:n.ocs(t,a),webdav:o.webdav(t,s)}};exports.buildCollaboratorShare=r.buildCollaboratorShare;exports.buildIncomingShareResource=r.buildIncomingShareResource;exports.buildLinkShare=r.buildLinkShare;exports.buildOutgoingShareResource=r.buildOutgoingShareResource;exports.getShareResourcePermissions=r.getShareResourcePermissions;exports.getShareResourceRoles=r.getShareResourceRoles;exports.graph=r.graph;exports.isCollaboratorShare=r.isCollaboratorShare;exports.isIncomingShareResource=r.isIncomingShareResource;exports.isLinkShare=r.isLinkShare;exports.isOutgoingShareResource=r.isOutgoingShareResource;exports.isShareResource=r.isShareResource;exports.ocs=n.ocs;exports.DavHttpError=o.DavHttpError;exports.HttpError=o.HttpError;exports.encodePath=o.encodePath;exports.webdav=o.webdav;exports.GraphSharePermission=e.GraphSharePermission;exports.OCM_PROVIDER_ID=e.OCM_PROVIDER_ID;exports.SHARE_JAIL_ID=e.SHARE_JAIL_ID;exports.ShareType=e.ShareType;exports.ShareTypes=e.ShareTypes;exports.buildDeletedResource=e.buildDeletedResource;exports.buildPublicSpaceResource=e.buildPublicSpaceResource;exports.buildResource=e.buildResource;exports.buildShareSpaceResource=e.buildShareSpaceResource;exports.buildSpace=e.buildSpace;exports.buildSpaceImageResource=e.buildSpaceImageResource;exports.buildWebDavOcmPath=e.buildWebDavOcmPath;exports.buildWebDavPublicPath=e.buildWebDavPublicPath;exports.buildWebDavSpacesPath=e.buildWebDavSpacesPath;exports.buildWebDavSpacesTrashPath=e.buildWebDavSpacesTrashPath;exports.extractDomSelector=e.extractDomSelector;exports.extractExtensionFromFile=e.extractExtensionFromFile;exports.extractNameWithoutExtension=e.extractNameWithoutExtension;exports.extractNodeId=e.extractNodeId;exports.extractParentFolderName=e.extractParentFolderName;exports.extractStorageId=e.extractStorageId;exports.getRelativeSpecialFolderSpacePath=e.getRelativeSpecialFolderSpacePath;exports.getSpaceManagers=e.getSpaceManagers;exports.isManager=e.isManager;exports.isMountPointSpaceResource=e.isMountPointSpaceResource;exports.isPersonalSpaceResource=e.isPersonalSpaceResource;exports.isProjectSpaceResource=e.isProjectSpaceResource;exports.isPublicSpaceResource=e.isPublicSpaceResource;exports.isSearchResource=e.isSearchResource;exports.isShareRoot=e.isShareRoot;exports.isShareSpaceResource=e.isShareSpaceResource;exports.isSpaceResource=e.isSpaceResource;exports.isTrashResource=e.isTrashResource;exports.urlJoin=S.urlJoin;exports.SharePermissionBit=d;exports.call=l;exports.client=b;exports.createHttpError=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-Bxm5RQq5.cjs"),n=require("./web-client/ocs.cjs"),o=require("./index-BYVVa_6N.cjs"),e=require("./functions-Ff26PgXQ.cjs"),S=require("./toString-CgHWCW2N.cjs"),l=function*(a){return yield a},h=({message:a,statusCode:t,xReqId:s})=>{const c=new Response(void 0,{headers:{"x-request-id":s},status:t});return new o.HttpError(a,c,t)};class d{static Read=1;static Update=2;static Create=4;static Delete=8;static Share=16}const b=({axiosClient:a,baseURI:t})=>{const s=()=>{const c=a.defaults?.headers?.Authorization,i=a.defaults?.headers?.["Accept-Language"],u=a.defaults?.headers?.["Initiator-ID"];return{...c&&{Authorization:c.toString()},...i&&{"Accept-Language":i.toString()},...u&&{"Initiator-ID":u.toString()}}};return{graph:r.graph(t,a),ocs:n.ocs(t,a),webdav:o.webdav(t,s)}};exports.buildCollaboratorShare=r.buildCollaboratorShare;exports.buildIncomingShareResource=r.buildIncomingShareResource;exports.buildLinkShare=r.buildLinkShare;exports.buildOutgoingShareResource=r.buildOutgoingShareResource;exports.getShareResourcePermissions=r.getShareResourcePermissions;exports.getShareResourceRoles=r.getShareResourceRoles;exports.graph=r.graph;exports.isCollaboratorShare=r.isCollaboratorShare;exports.isIncomingShareResource=r.isIncomingShareResource;exports.isLinkShare=r.isLinkShare;exports.isOutgoingShareResource=r.isOutgoingShareResource;exports.isShareResource=r.isShareResource;exports.ocs=n.ocs;exports.DavHttpError=o.DavHttpError;exports.HttpError=o.HttpError;exports.encodePath=o.encodePath;exports.webdav=o.webdav;exports.GraphSharePermission=e.GraphSharePermission;exports.OCM_PROVIDER_ID=e.OCM_PROVIDER_ID;exports.SHARE_JAIL_ID=e.SHARE_JAIL_ID;exports.ShareType=e.ShareType;exports.ShareTypes=e.ShareTypes;exports.buildDeletedResource=e.buildDeletedResource;exports.buildPublicSpaceResource=e.buildPublicSpaceResource;exports.buildResource=e.buildResource;exports.buildShareSpaceResource=e.buildShareSpaceResource;exports.buildSpace=e.buildSpace;exports.buildSpaceImageResource=e.buildSpaceImageResource;exports.buildWebDavOcmPath=e.buildWebDavOcmPath;exports.buildWebDavPublicPath=e.buildWebDavPublicPath;exports.buildWebDavSpacesPath=e.buildWebDavSpacesPath;exports.buildWebDavSpacesTrashPath=e.buildWebDavSpacesTrashPath;exports.extractDomSelector=e.extractDomSelector;exports.extractExtensionFromFile=e.extractExtensionFromFile;exports.extractNameWithoutExtension=e.extractNameWithoutExtension;exports.extractNodeId=e.extractNodeId;exports.extractParentFolderName=e.extractParentFolderName;exports.extractStorageId=e.extractStorageId;exports.getRelativeSpecialFolderSpacePath=e.getRelativeSpecialFolderSpacePath;exports.getSpaceManagers=e.getSpaceManagers;exports.isManager=e.isManager;exports.isMountPointSpaceResource=e.isMountPointSpaceResource;exports.isPersonalSpaceResource=e.isPersonalSpaceResource;exports.isProjectSpaceResource=e.isProjectSpaceResource;exports.isPublicSpaceResource=e.isPublicSpaceResource;exports.isSearchResource=e.isSearchResource;exports.isShareRoot=e.isShareRoot;exports.isShareSpaceResource=e.isShareSpaceResource;exports.isSpaceResource=e.isSpaceResource;exports.isTrashResource=e.isTrashResource;exports.urlJoin=S.urlJoin;exports.SharePermissionBit=d;exports.call=l;exports.client=b;exports.createHttpError=h;
@@ -1,9 +1,9 @@
1
- import { g as c } from "./index-DRZfsp9q.js";
2
- import { k as P, h as D, l as f, j as I, f as v, e as x, c as H, b as w, d as A, a as E, i as O } from "./index-DRZfsp9q.js";
1
+ import { g as c } from "./index-BnUvwDzR.js";
2
+ import { k as P, h as D, l as f, j as I, f as v, e as x, c as H, b as w, d as A, a as E, i as O } from "./index-BnUvwDzR.js";
3
3
  import { ocs as i } from "./web-client/ocs.js";
4
- import { H as u, w as n } from "./index-DZvghmpY.js";
5
- import { D as W, e as k } from "./index-DZvghmpY.js";
6
- import { G as F, O as M, x as T, S as _, n as j, m as z, t as N, l as q, u as B, v as G, w as J, a as V, b as C, o as K, p as Q, e as X, h as Y, g as Z, f as $, j as U, d as ee, q as ae, s as se, r as re, C as te, z as oe, A as ce, D as ie, c as ue, k as ne, B as Se, y as de, i as he } from "./functions-aGu-ugzD.js";
4
+ import { H as u, w as n } from "./index-DgKiY_JM.js";
5
+ import { D as W, e as k } from "./index-DgKiY_JM.js";
6
+ import { G as F, O as M, x as T, S as _, n as j, m as z, t as N, l as q, u as B, v as G, w as J, a as V, b as C, o as K, p as Q, e as X, h as Y, g as Z, f as $, j as U, d as ee, q as ae, s as se, r as re, C as te, z as oe, A as ce, D as ie, c as ue, k as ne, B as Se, y as de, i as he } from "./functions-DSF_kNxK.js";
7
7
  import { u as pe } from "./toString-XlfBosfh.js";
8
8
  const l = function* (e) {
9
9
  return yield e;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencloud-eu/web-client",
3
- "version": "4.1.0",
3
+ "version": "4.2.1",
4
4
  "description": "OpenCloud web client",
5
5
  "license": "AGPL-3.0",
6
6
  "private": false,
@@ -1 +0,0 @@
1
- "use strict";const b=require("./toString-CgHWCW2N.cjs"),Ie=require("./index-D_NPkUGY.cjs");function K(e,r=""){return`/public-files/${e}/${r}`.split("/").filter(Boolean).join("/")}function Y(e,r=""){return`/ocm/${e}/${r}`.split("/").filter(Boolean).join("/")}var U,z;function we(){if(z)return U;z=1;function e(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function r(a,t){for(var n="",c=0,d=-1,o=0,u,f=0;f<=a.length;++f){if(f<a.length)u=a.charCodeAt(f);else{if(u===47)break;u=47}if(u===47){if(!(d===f-1||o===1))if(d!==f-1&&o===2){if(n.length<2||c!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var p=n.lastIndexOf("/");if(p!==n.length-1){p===-1?(n="",c=0):(n=n.slice(0,p),c=n.length-1-n.lastIndexOf("/")),d=f,o=0;continue}}else if(n.length===2||n.length===1){n="",c=0,d=f,o=0;continue}}t&&(n.length>0?n+="/..":n="..",c=2)}else n.length>0?n+="/"+a.slice(d+1,f):n=a.slice(d+1,f),c=f-d-1;d=f,o=0}else u===46&&o!==-1?++o:o=-1}return n}function i(a,t){var n=t.dir||t.root,c=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+c:n+a+c:c}var l={resolve:function(){for(var t="",n=!1,c,d=arguments.length-1;d>=-1&&!n;d--){var o;d>=0?o=arguments[d]:(c===void 0&&(c=Ie.process$1.cwd()),o=c),e(o),o.length!==0&&(t=o+"/"+t,n=o.charCodeAt(0)===47)}return t=r(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(e(t),t.length===0)return".";var n=t.charCodeAt(0)===47,c=t.charCodeAt(t.length-1)===47;return t=r(t,!n),t.length===0&&!n&&(t="."),t.length>0&&c&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return e(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,n=0;n<arguments.length;++n){var c=arguments[n];e(c),c.length>0&&(t===void 0?t=c:t+="/"+c)}return t===void 0?".":l.normalize(t)},relative:function(t,n){if(e(t),e(n),t===n||(t=l.resolve(t),n=l.resolve(n),t===n))return"";for(var c=1;c<t.length&&t.charCodeAt(c)===47;++c);for(var d=t.length,o=d-c,u=1;u<n.length&&n.charCodeAt(u)===47;++u);for(var f=n.length,p=f-u,v=o<p?o:p,g=-1,h=0;h<=v;++h){if(h===v){if(p>v){if(n.charCodeAt(u+h)===47)return n.slice(u+h+1);if(h===0)return n.slice(u+h)}else o>v&&(t.charCodeAt(c+h)===47?g=h:h===0&&(g=0));break}var j=t.charCodeAt(c+h),De=n.charCodeAt(u+h);if(j!==De)break;j===47&&(g=h)}var P="";for(h=c+g+1;h<=d;++h)(h===d||t.charCodeAt(h)===47)&&(P.length===0?P+="..":P+="/..");return P.length>0?P+n.slice(u+g):(u+=g,n.charCodeAt(u)===47&&++u,n.slice(u))},_makeLong:function(t){return t},dirname:function(t){if(e(t),t.length===0)return".";for(var n=t.charCodeAt(0),c=n===47,d=-1,o=!0,u=t.length-1;u>=1;--u)if(n=t.charCodeAt(u),n===47){if(!o){d=u;break}}else o=!1;return d===-1?c?"/":".":c&&d===1?"//":t.slice(0,d)},basename:function(t,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');e(t);var c=0,d=-1,o=!0,u;if(n!==void 0&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var f=n.length-1,p=-1;for(u=t.length-1;u>=0;--u){var v=t.charCodeAt(u);if(v===47){if(!o){c=u+1;break}}else p===-1&&(o=!1,p=u+1),f>=0&&(v===n.charCodeAt(f)?--f===-1&&(d=u):(f=-1,d=p))}return c===d?d=p:d===-1&&(d=t.length),t.slice(c,d)}else{for(u=t.length-1;u>=0;--u)if(t.charCodeAt(u)===47){if(!o){c=u+1;break}}else d===-1&&(o=!1,d=u+1);return d===-1?"":t.slice(c,d)}},extname:function(t){e(t);for(var n=-1,c=0,d=-1,o=!0,u=0,f=t.length-1;f>=0;--f){var p=t.charCodeAt(f);if(p===47){if(!o){c=f+1;break}continue}d===-1&&(o=!1,d=f+1),p===46?n===-1?n=f:u!==1&&(u=1):n!==-1&&(u=-1)}return n===-1||d===-1||u===0||u===1&&n===d-1&&n===c+1?"":t.slice(n,d)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return i("/",t)},parse:function(t){e(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return n;var c=t.charCodeAt(0),d=c===47,o;d?(n.root="/",o=1):o=0;for(var u=-1,f=0,p=-1,v=!0,g=t.length-1,h=0;g>=o;--g){if(c=t.charCodeAt(g),c===47){if(!v){f=g+1;break}continue}p===-1&&(v=!1,p=g+1),c===46?u===-1?u=g:h!==1&&(h=1):u!==-1&&(h=-1)}return u===-1||p===-1||h===0||h===1&&u===p-1&&u===f+1?p!==-1&&(f===0&&d?n.base=n.name=t.slice(1,p):n.base=n.name=t.slice(f,p)):(f===0&&d?(n.name=t.slice(1,u),n.base=t.slice(1,p)):(n.name=t.slice(f,u),n.base=t.slice(f,p)),n.ext=t.slice(u,p)),f>0?n.dir=t.slice(0,f-1):d&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};return l.posix=l,U=l,U}var T=we();const W=b.getDefaultExportFromCjs(T);class R{static Shared="S";static Shareable="R";static Mounted="M";static Deletable="D";static Renameable="N";static Moveable="V";static Updateable="NV";static FileUpdateable="W";static FolderCreateable="CK";static Deny="Z";static SecureView="X"}var Q=(e=>(e.copy="COPY",e.delete="DELETE",e.lock="LOCK",e.mkcol="MKCOL",e.move="MOVE",e.propfind="PROPFIND",e.proppatch="PROPPATCH",e.put="PUT",e.report="REPORT",e.unlock="UNLOCK",e))(Q||{});const A=e=>({value:e,type:null}),Le=e=>A(e),m=e=>A(e),w=e=>A(e),ke=e=>A(e),Te={Permissions:m("permissions"),IsFavorite:w("favorite"),FileId:m("fileid"),FileParent:m("file-parent"),Name:m("name"),OwnerId:m("owner-id"),OwnerDisplayName:m("owner-display-name"),PrivateLink:m("privatelink"),ContentLength:w("getcontentlength"),ContentSize:w("size"),LastModifiedDate:m("getlastmodified"),Tags:Le("tags"),Audio:{value:"audio",type:null},Location:{value:"location",type:null},Image:{value:"image",type:null},Photo:{value:"photo",type:null},ETag:m("getetag"),MimeType:m("getcontenttype"),ResourceType:ke("resourcetype"),LockDiscovery:{value:"lockdiscovery",type:null},LockOwner:m("owner"),LockTime:m("locktime"),ActiveLock:{value:"activelock",type:null},DownloadURL:m("downloadURL"),Highlights:m("highlights"),MetaPathForUser:m("meta-path-for-user"),RemoteItemId:m("remote-item-id"),HasPreview:w("has-preview"),ShareId:m("shareid"),ShareRoot:m("shareroot"),ShareTypes:{value:"share-types",type:null},SharePermissions:m("share-permissions"),TrashbinOriginalFilename:m("trashbin-original-filename"),TrashbinOriginalLocation:m("trashbin-original-location"),TrashbinDeletedDate:m("trashbin-delete-datetime"),PublicLinkItemType:m("public-link-item-type"),PublicLinkPermission:m("public-link-permission"),PublicLinkExpiration:m("public-link-expiration"),PublicLinkShareDate:m("public-link-share-datetime"),PublicLinkShareOwner:m("public-link-share-owner")},s=Object.fromEntries(Object.entries(Te).map(([e,r])=>[e,r.value]));class M{static Default=[s.Permissions,s.IsFavorite,s.FileId,s.FileParent,s.Name,s.LockDiscovery,s.ActiveLock,s.OwnerId,s.OwnerDisplayName,s.RemoteItemId,s.ShareRoot,s.ShareTypes,s.PrivateLink,s.ContentLength,s.ContentSize,s.LastModifiedDate,s.ETag,s.MimeType,s.ResourceType,s.DownloadURL,s.Tags,s.Audio,s.Location,s.Image,s.Photo,s.HasPreview];static PublicLink=M.Default.concat([s.PublicLinkItemType,s.PublicLinkPermission,s.PublicLinkExpiration,s.PublicLinkShareDate,s.PublicLinkShareOwner]);static Trashbin=[s.ContentLength,s.ResourceType,s.TrashbinOriginalLocation,s.TrashbinOriginalFilename,s.TrashbinDeletedDate,s.Permissions,s.FileParent];static DavNamespace=[s.ContentLength,s.LastModifiedDate,s.ETag,s.MimeType,s.ResourceType,s.LockDiscovery,s.ActiveLock]}function X(e){return e}function Ae(e,r,i){switch(i.length){case 0:return e.call(r);case 1:return e.call(r,i[0]);case 2:return e.call(r,i[0],i[1]);case 3:return e.call(r,i[0],i[1],i[2])}return e.apply(r,i)}var Ce=800,Oe=16,Ue=Date.now;function Ee(e){var r=0,i=0;return function(){var l=Ue(),a=Oe-(l-i);if(i=l,a>0){if(++r>=Ce)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}function Fe(e){return function(){return e}}var H=(function(){try{var e=b.getNative(Object,"defineProperty");return e({},"",{}),e}catch{}})(),_e=H?function(e,r){return H(e,"toString",{configurable:!0,enumerable:!1,value:Fe(r),writable:!0})}:X,Me=Ee(_e);function $e(e,r,i,l){for(var a=e.length,t=i+-1;++t<a;)if(r(e[t],t,e))return t;return-1}function Ne(e){return e!==e}function je(e,r,i){for(var l=i-1,a=e.length;++l<a;)if(e[l]===r)return l;return-1}function ze(e,r,i){return r===r?je(e,r,i):$e(e,Ne,i)}function G(e,r){var i=e==null?0:e.length;return!!i&&ze(e,r,0)>-1}var V=Math.max;function We(e,r,i){return r=V(r===void 0?e.length-1:r,0),function(){for(var l=arguments,a=-1,t=V(l.length-r,0),n=Array(t);++a<t;)n[a]=l[r+a];a=-1;for(var c=Array(r+1);++a<r;)c[a]=l[a];return c[r]=i(n),Ae(e,this,c)}}function He(e,r){return Me(We(e,r,X),e+"")}var Ve=9007199254740991;function Je(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ve}function Be(e){return e!=null&&Je(e.length)&&!b.isFunction(e)}function Ze(e,r,i){var l=-1,a=e.length;r<0&&(r=-r>a?0:a+r),i=i>a?a:i,i<0&&(i+=a),a=r>i?0:i-r>>>0,r>>>=0;for(var t=Array(a);++l<a;)t[l]=e[l+r];return t}function qe(e,r,i){var l=e.length;return i=i===void 0?l:i,!r&&i>=l?e:Ze(e,r,i)}var Ke="\\ud800-\\udfff",Ye="\\u0300-\\u036f",Qe="\\ufe20-\\ufe2f",Xe="\\u20d0-\\u20ff",Ge=Ye+Qe+Xe,er="\\ufe0e\\ufe0f",rr="\\u200d",tr=RegExp("["+rr+Ke+Ge+er+"]");function ee(e){return tr.test(e)}function nr(e){return e.split("")}var re="\\ud800-\\udfff",ir="\\u0300-\\u036f",sr="\\ufe20-\\ufe2f",ar="\\u20d0-\\u20ff",or=ir+sr+ar,ur="\\ufe0e\\ufe0f",lr="["+re+"]",E="["+or+"]",F="\\ud83c[\\udffb-\\udfff]",cr="(?:"+E+"|"+F+")",te="[^"+re+"]",ne="(?:\\ud83c[\\udde6-\\uddff]){2}",ie="[\\ud800-\\udbff][\\udc00-\\udfff]",dr="\\u200d",se=cr+"?",ae="["+ur+"]?",fr="(?:"+dr+"(?:"+[te,ne,ie].join("|")+")"+ae+se+")*",pr=ae+se+fr,hr="(?:"+[te+E+"?",E,ne,ie,lr].join("|")+")",mr=RegExp(F+"(?="+F+")|"+hr+pr,"g");function gr(e){return e.match(mr)||[]}function br(e){return ee(e)?gr(e):nr(e)}function vr(e){return function(r){r=b.toString(r);var i=ee(r)?br(r):void 0,l=i?i[0]:r.charAt(0),a=i?qe(i,1).join(""):r.slice(1);return l[e]()+a}}var xr=vr("toUpperCase");function Rr(e){return xr(b.toString(e).toLowerCase())}function yr(e,r,i,l){for(var a=-1,t=e==null?0:e.length;++a<t;)i=r(i,e[a],a,e);return i}function Sr(e){return function(r){return e?.[r]}}var Pr={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Dr=Sr(Pr),Ir=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wr="\\u0300-\\u036f",Lr="\\ufe20-\\ufe2f",kr="\\u20d0-\\u20ff",Tr=wr+Lr+kr,Ar="["+Tr+"]",Cr=RegExp(Ar,"g");function Or(e){return e=b.toString(e),e&&e.replace(Ir,Dr).replace(Cr,"")}var Ur=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Er(e){return e.match(Ur)||[]}var Fr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function _r(e){return Fr.test(e)}var oe="\\ud800-\\udfff",Mr="\\u0300-\\u036f",$r="\\ufe20-\\ufe2f",Nr="\\u20d0-\\u20ff",jr=Mr+$r+Nr,ue="\\u2700-\\u27bf",le="a-z\\xdf-\\xf6\\xf8-\\xff",zr="\\xac\\xb1\\xd7\\xf7",Wr="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Hr="\\u2000-\\u206f",Vr=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Jr="\\ufe0e\\ufe0f",de=zr+Wr+Hr+Vr,fe="['’]",J="["+de+"]",Br="["+jr+"]",pe="\\d+",Zr="["+ue+"]",he="["+le+"]",me="[^"+oe+de+pe+ue+le+ce+"]",qr="\\ud83c[\\udffb-\\udfff]",Kr="(?:"+Br+"|"+qr+")",Yr="[^"+oe+"]",ge="(?:\\ud83c[\\udde6-\\uddff]){2}",be="[\\ud800-\\udbff][\\udc00-\\udfff]",y="["+ce+"]",Qr="\\u200d",B="(?:"+he+"|"+me+")",Xr="(?:"+y+"|"+me+")",Z="(?:"+fe+"(?:d|ll|m|re|s|t|ve))?",q="(?:"+fe+"(?:D|LL|M|RE|S|T|VE))?",ve=Kr+"?",xe="["+Jr+"]?",Gr="(?:"+Qr+"(?:"+[Yr,ge,be].join("|")+")"+xe+ve+")*",et="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",tt=xe+ve+Gr,nt="(?:"+[Zr,ge,be].join("|")+")"+tt,it=RegExp([y+"?"+he+"+"+Z+"(?="+[J,y,"$"].join("|")+")",Xr+"+"+q+"(?="+[J,y+B,"$"].join("|")+")",y+"?"+B+"+"+Z,y+"+"+q,rt,et,pe,nt].join("|"),"g");function st(e){return e.match(it)||[]}function at(e,r,i){return e=b.toString(e),r=r,r===void 0?_r(e)?st(e):Er(e):e.match(r)||[]}var ot="['’]",ut=RegExp(ot,"g");function lt(e){return function(r){return yr(at(Or(r).replace(ut,"")),e,"")}}var ct=lt(function(e,r,i){return r=r.toLowerCase(),e+(i?Rr(r):r)}),dt="__lodash_hash_undefined__";function ft(e){return this.__data__.set(e,dt),this}function pt(e){return this.__data__.has(e)}function I(e){var r=-1,i=e==null?0:e.length;for(this.__data__=new b.MapCache;++r<i;)this.add(e[r])}I.prototype.add=I.prototype.push=ft;I.prototype.has=pt;function _(e,r){return e.has(r)}function ht(e){return b.isObjectLike(e)&&Be(e)}var mt=Math.min;function gt(e,r,i){for(var l=G,a=e[0].length,t=e.length,n=t,c=Array(t),d=1/0,o=[];n--;){var u=e[n];d=mt(u.length,d),c[n]=a>=120&&u.length>=120?new I(n&&u):void 0}u=e[0];var f=-1,p=c[0];e:for(;++f<a&&o.length<d;){var v=u[f],g=v;if(v=v!==0?v:0,!(p?_(p,g):l(o,g))){for(n=t;--n;){var h=c[n];if(!(h?_(h,g):l(e[n],g)))continue e}p&&p.push(g),o.push(v)}}return o}function bt(e){return ht(e)?e:[]}var vt=He(function(e){var r=b.arrayMap(e,bt);return r.length&&r[0]===e[0]?gt(r):[]});const xt={complex:["tar.bz2","tar.gz","tar.xz"]},Rt=e=>Object.hasOwn(e,"ddate"),yt=e=>Object.hasOwn(e,"highlights"),C=e=>e.replace(/[^A-Za-z0-9\-_]/g,""),Re=(e,r)=>!e||typeof e!="string"?"":e.indexOf("!")>=0?e.split("!")[r]:"",ye=e=>Re(e,0),$=e=>Re(e,1),St=e=>{const r=e.extension||"",i=e.name||"";if(!r.length)return i;const l=i.lastIndexOf(`.${r}`);return i.substring(0,l)},O=e=>{const r=e.name;if(e.type==="directory"||e.isFolder)return"";const i=r.split(".");if(i.length>2)for(let l=0;l<i.length;l++){const a=i.slice(l,i.length).join(".");if(xt.complex.includes(a))return a}return i.length<2?"":i[i.length-1]},Pt=e=>T.basename(T.dirname(e.path))||null,Dt=e=>typeof e.isShareRoot=="function"&&e.isShareRoot(),L=e=>{if(!e)return e;const r={};return Object.keys(e).forEach(i=>{r[ct(i)]=e[i]}),r};function It(e,r=[]){const i=e.props[s.Name]?.toString()||T.basename(e.filename),l=e.props[s.FileId],a=e.type==="directory";let t;e.filename.startsWith("/files")||e.filename.startsWith("/space")?t=e.filename.split("/").slice(3).join("/"):t=e.filename,t.startsWith("/")||(t=`/${t}`);const n=O({...e,name:i}),c=e.props[s.LockDiscovery];let d,o,u;c&&(d=c[s.ActiveLock],o=d[s.LockOwner],u=d[s.LockTime]);let f=[];e.props[s.ShareTypes]&&(f=e.props[s.ShareTypes]["share-type"],Array.isArray(f)||(f=[f]));const p={};for(const g of r||[]){const h=g.split(":").pop();e.props[h]&&(p[g]=e.props[h])}const v={id:l,fileId:l,storageId:ye(l),parentFolderId:e.props[s.FileParent],mimeType:e.props[s.MimeType],name:i,extension:a?"":n,path:t,webDavPath:e.filename,type:a?"folder":e.type,isFolder:a,locked:!!d,lockOwner:o,lockTime:u,processing:e.processing||!1,mdate:e.props[s.LastModifiedDate],size:a?e.props[s.ContentSize]?.toString()||"0":e.props[s.ContentLength]?.toString()||"0",permissions:e.props[s.Permissions]||"",starred:e.props[s.IsFavorite]!==0,etag:e.props[s.ETag],shareTypes:f,privateLink:e.props[s.PrivateLink],downloadURL:e.props[s.DownloadURL],remoteItemId:e.props[s.RemoteItemId],remoteItemPath:e.props[s.ShareRoot],owner:{id:e.props[s.OwnerId],displayName:e.props[s.OwnerDisplayName]},tags:(e.props[s.Tags]||"").toString().split(",").filter(Boolean),audio:L(e.props[s.Audio]),location:L(e.props[s.Location]),image:L(e.props[s.Image]),photo:L(e.props[s.Photo]),extraProps:p,hasPreview:()=>e.props[s.HasPreview]===1,canUpload:function(){return this.permissions.indexOf(R.FolderCreateable)>=0},canDownload:function(){return this.permissions.indexOf(R.SecureView)===-1},canBeDeleted:function(){return this.permissions.indexOf(R.Deletable)>=0},canRename:function(){return this.permissions.indexOf(R.Renameable)>=0},canShare:function({ability:g}){return g.can("create-all","Share")&&this.permissions.indexOf(R.Shareable)>=0},canCreate:function(){return this.permissions.indexOf(R.FolderCreateable)>=0},canEditTags:function(){return this.permissions.indexOf(R.Updateable)>=0||this.permissions.indexOf(R.FileUpdateable)>=0},isMounted:function(){return this.permissions.indexOf(R.Mounted)>=0},isReceivedShare:function(){return this.permissions.indexOf(R.Shared)>=0},isShareRoot(){return e.props[s.ShareRoot]?e.filename.split("/").length===3:!1},getDomSelector:()=>C(l)};return Object.defineProperty(v,"nodeId",{get(){return $(this.id)}}),v}function wt(e){const r=e.type==="directory",i=e.props[s.TrashbinOriginalFilename]?.toString(),l=O({name:i,type:e.type}),a=W.basename(e.filename);return{type:r?"folder":e.type,isFolder:r,ddate:e.props[s.TrashbinDeletedDate],name:W.basename(i),extension:l,path:b.urlJoin(e.props[s.TrashbinOriginalLocation],{leadingSlash:!0}),id:a,parentFolderId:e.props[s.FileParent],webDavPath:"",canUpload:()=>!1,canDownload:()=>!1,canBeDeleted:()=>!0,canBeRestored:function(){return!0},canRename:()=>!1,canShare:()=>!1,canCreate:()=>!1,isMounted:()=>!1,isReceivedShare:()=>!1,getDomSelector:()=>C(a)}}var x=(e=>(e.createUpload="libre.graph/driveItem/upload/create",e.createPermissions="libre.graph/driveItem/permissions/create",e.createChildren="libre.graph/driveItem/children/create",e.readBasic="libre.graph/driveItem/basic/read",e.readPath="libre.graph/driveItem/path/read",e.readQuota="libre.graph/driveItem/quota/read",e.readContent="libre.graph/driveItem/content/read",e.readChildren="libre.graph/driveItem/children/read",e.readDeleted="libre.graph/driveItem/deleted/read",e.readPermissions="libre.graph/driveItem/permissions/read",e.readVersions="libre.graph/driveItem/versions/read",e.updatePath="libre.graph/driveItem/path/update",e.updateDeleted="libre.graph/driveItem/deleted/update",e.updatePermissions="libre.graph/driveItem/permissions/update",e.updateVersions="libre.graph/driveItem/versions/update",e.deleteStandard="libre.graph/driveItem/standard/delete",e.deleteDeleted="libre.graph/driveItem/deleted/delete",e.deletePermissions="libre.graph/driveItem/permissions/delete",e))(x||{});const D=e=>e;class S{_key;_value;_label;_icon;constructor(r,i,l,a){this._key=r,this._value=i,this._label=l,this._icon=a}get key(){return this._key}get value(){return this._value}get label(){return this._label}get icon(){return this._icon}}class Lt{static user=new S("user",0,D("User"),"user");static group=new S("group",1,D("Group"),"group");static link=new S("link",3,D("Link"),"link");static guest=new S("guest",4,D("Guest"),"global");static remote=new S("remote",6,D("External"),"earth");static individuals=[this.user,this.guest,this.remote];static collectives=[this.group];static unauthenticated=[this.link];static authenticated=[this.user,this.group,this.guest,this.remote];static all=[this.user,this.group,this.link,this.guest,this.remote];static isIndividual(r){return this.individuals.includes(r)}static isCollective(r){return this.collectives.includes(r)}static isUnauthenticated(r){return this.unauthenticated.includes(r)}static isAuthenticated(r){return this.authenticated.includes(r)}static getByValue(r){return this.all.find(i=>i.value===r)}static getByValues(r){return r.map(i=>this.getByValue(i))}static getByKeys(r){return r.map(i=>this.all.find(l=>l.key===i))}static getValues(r){return r.map(i=>i.value)}static containsAnyValue(r,i){return vt(this.getValues(r),i).length>0}}const kt="a0ca6a90-a365-4782-871e-d44447bbc668",Tt="89f37a33-858b-45fa-8890-a1f2b27d90e1",At=e=>e?.type==="space",k=e=>e?.driveType==="personal",Ct=e=>e?.driveType==="project",Ot=e=>e?.driveType==="share",Ut=e=>e?.driveType==="mountpoint",Et=e=>e?.driveType==="public";function Se(e,r){return b.urlJoin("spaces",e,r,{leadingSlash:!0})}function Pe(e,r=""){return b.urlJoin("spaces","trash-bin",e,r,{leadingSlash:!0})}function Ft(e,r){const l=e[{image:"spaceImageData",readme:"spaceReadmeData"}[r]];if(!l)return"";const a=decodeURI(l.webDavUrl).split("/"),t=a.find(n=>n.startsWith(e.id));return t?a.slice(a.indexOf(t)+1).join("/"):""}function _t(e){return e.permissions.includes(x.deletePermissions)}const Mt=(e,r)=>e.root.permissions?.filter(i=>{let l=[];i["@libre.graph.permissions.actions"]&&(l=i["@libre.graph.permissions.actions"]);const a=r[i.roles?.[0]];return a&&!l.length&&(l=a.rolePermissions.find(({condition:n})=>n==="exists @Resource.Root")?.allowedResourceActions||[]),l.includes(x.deletePermissions)});function $t(e){const r=e.publicLinkPassword,i=e.props?.[s.FileId],l=e.props?.[s.PublicLinkItemType],a=e.props?.[s.PublicLinkPermission],t=e.props?.[s.PublicLinkExpiration],n=e.props?.[s.PublicLinkShareDate],c=e.props?.[s.PublicLinkShareOwner],d=e.publicLinkType;let o,u;return d==="ocm"?(o=`ocm/${e.id}`,u=Y(e.id)):(o=`public/${e.id}`,u=K(e.id)),Object.assign(N({...e,driveType:"public",driveAlias:o,webDavPath:u}),{...i&&{fileId:i},...r&&{publicLinkPassword:r},...l&&{publicLinkItemType:l},...a&&{publicLinkPermission:parseInt(a)},...t&&{publicLinkExpiration:t},...n&&{publicLinkShareDate:n},...c&&{publicLinkShareOwner:c},publicLinkType:d})}function Nt({driveAliasPrefix:e,id:r,shareName:i,serverUrl:l}){const a=N({id:r,driveAlias:`${e}/${i}`,driveType:"share",name:i,serverUrl:l});return a.rename=t=>{a.driveAlias=`${e}/${t}`,a.name=t},a}function N(e){let r,i;e.special&&(r=e.special.find(o=>o.specialFolder.name==="image"),i=e.special.find(o=>o.specialFolder.name==="readme"),r&&(r.webDavUrl=decodeURI(r.webDavUrl)),i&&(i.webDavUrl=decodeURI(i.webDavUrl)));const l=e.root?.deleted?.state==="trashed",a=b.urlJoin(e.webDavPath||Se(e.id),{leadingSlash:!0}),t=b.urlJoin(e.serverUrl,"remote.php/dav",a),n=b.urlJoin(e.webDavTrashPath||Pe(e.id),{leadingSlash:!0}),c=b.urlJoin(e.serverUrl,"remote.php/dav",n),d={id:e.id,fileId:e.id,storageId:e.id,mimeType:"",name:e.name,description:e.description,extension:"",path:"/",webDavPath:a,webDavTrashPath:n,driveAlias:e.driveAlias,driveType:e.driveType,type:"space",isFolder:!0,mdate:e.lastModifiedDateTime,size:e.quota?.used||0,tags:[],permissions:"",starred:!1,etag:"",shareTypes:[],privateLink:e.webUrl,downloadURL:"",owner:e.owner?.user,disabled:l,root:e.root,spaceQuota:e.quota,spaceImageData:r,spaceReadmeData:i,hasTrashedItems:e["@libre.graph.hasTrashedItems"]||!1,graphPermissions:void 0,canUpload:function({user:o}={}){return k(this)&&this.isOwner(o)?!0:this.graphPermissions?.includes(x.createUpload)},canDownload:function(){return!0},canBeDeleted:function({ability:o}={}){return this.disabled?o?.can("delete-all","Drive")?!0:this.graphPermissions?.includes(x.deletePermissions):!1},canRename:function({ability:o}={}){return o?.can("update-all","Drive")?!0:this.graphPermissions?.includes(x.deletePermissions)},canEditDescription:function({ability:o}={}){return o?.can("update-all","Drive")?!0:this.graphPermissions?.includes(x.deletePermissions)},canRestore:function({ability:o}={}){return this.disabled?o?.can("update-all","Drive")?!0:this.graphPermissions?.includes(x.deletePermissions):!1},canDisable:function({ability:o}={}){return this.disabled?!1:o?.can("delete-all","Drive")?!0:this.graphPermissions?.includes(x.deletePermissions)},canShare:function(){return this.graphPermissions?.includes(x.createPermissions)},canEditImage:function(){return this.disabled?!1:this.graphPermissions?.includes(x.deletePermissions)},canEditReadme:function(){return this.disabled?!1:this.graphPermissions?.includes(x.deletePermissions)},canRestoreFromTrashbin:function(){return this.graphPermissions?.includes(x.updateDeleted)},canDeleteFromTrashBin:function({user:o}={}){return k(this)&&this.isOwner(o)?!0:this.graphPermissions?.includes(x.deletePermissions)},canListVersions:function({user:o}={}){return k(this)&&this.isOwner(o)?!0:this.graphPermissions?.includes(x.readVersions)},canCreate:function(){return!0},canEditTags:function(){return!1},isMounted:function(){return!0},isReceivedShare:function(){return!1},isShareRoot:function(){return["share","mountpoint","public"].includes(e.driveType)},getDomSelector:()=>C(e.id),getDriveAliasAndItem({path:o}){return b.urlJoin(this.driveAlias,o,{leadingSlash:!1})},getWebDavUrl({path:o}){return b.urlJoin(t,o)},getWebDavTrashUrl({path:o}){return b.urlJoin(c,o)},isOwner(o){return o?.id===this.owner?.id}};return Object.defineProperty(d,"nodeId",{get(){return $(this.id)}}),d}function jt(e){return{id:e.spaceImageData.id,name:e.spaceImageData.name,etag:e.spaceImageData.eTag,extension:O({name:e.spaceImageData.name}),mimeType:e.spaceImageData.file.mimeType,type:"file",webDavPath:b.urlJoin(e.webDavPath,".space",e.spaceImageData.name),hasPreview:()=>!0,canDownload:()=>!0}}exports.DavMethod=Q;exports.DavPermission=R;exports.DavProperties=M;exports.DavProperty=s;exports.GraphSharePermission=x;exports.OCM_PROVIDER_ID=Tt;exports.SHARE_JAIL_ID=kt;exports.SetCache=I;exports.ShareType=S;exports.ShareTypes=Lt;exports.arrayIncludes=G;exports.buildDeletedResource=wt;exports.buildPublicSpaceResource=$t;exports.buildResource=It;exports.buildShareSpaceResource=Nt;exports.buildSpace=N;exports.buildSpaceImageResource=jt;exports.buildWebDavOcmPath=Y;exports.buildWebDavPublicPath=K;exports.buildWebDavSpacesPath=Se;exports.buildWebDavSpacesTrashPath=Pe;exports.cacheHas=_;exports.extractDomSelector=C;exports.extractExtensionFromFile=O;exports.extractNameWithoutExtension=St;exports.extractNodeId=$;exports.extractParentFolderName=Pt;exports.extractStorageId=ye;exports.getRelativeSpecialFolderSpacePath=Ft;exports.getSpaceManagers=Mt;exports.isManager=_t;exports.isMountPointSpaceResource=Ut;exports.isPersonalSpaceResource=k;exports.isProjectSpaceResource=Ct;exports.isPublicSpaceResource=Et;exports.isSearchResource=yt;exports.isShareRoot=Dt;exports.isShareSpaceResource=Ot;exports.isSpaceResource=At;exports.isTrashResource=Rt;