@opencloud-eu/web-client 1.0.0 → 2.0.0
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.
- package/dist/{functions-ikwhAVhP.cjs → functions-CLNcqXgl.cjs} +1 -1
- package/dist/{functions-CsnDdpYv.js → functions-Dm62BUjy.js} +82 -81
- package/dist/{index-eFi29SPG.cjs → index-BhfViwrl.cjs} +13 -13
- package/dist/{index-VvbQMSOr.js → index-DTUwIUm-.js} +315 -312
- package/dist/{index-DqVarwg_.js → index-DaH-cMzr.js} +406 -417
- package/dist/{index-oQ7995oB.js → index-DkgTVi3s.js} +1 -1
- package/dist/index-DkrrhS4K.cjs +6 -0
- package/dist/{index-DbVGtwLH.cjs → index-Do5mZY6J.cjs} +1 -1
- package/dist/src/graph/generated/common.d.ts +1 -1
- package/dist/src/helpers/space/types.d.ts +2 -0
- package/dist/web-client/graph/generated.cjs +1 -1
- package/dist/web-client/graph/generated.js +1 -1
- package/dist/web-client/graph.cjs +1 -1
- package/dist/web-client/graph.js +1 -1
- package/dist/web-client/ocs.cjs +1 -1
- package/dist/web-client/ocs.js +1 -0
- package/dist/web-client/webdav.cjs +1 -1
- package/dist/web-client/webdav.js +3 -3
- package/dist/web-client.cjs +1 -1
- package/dist/web-client.js +5 -5
- package/package.json +1 -1
- package/dist/index-C1H-OgNf.cjs +0 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var ye=Object.defineProperty;var be=(e,t,s)=>t in e?ye(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var w=(e,t,s)=>be(e,typeof t!="symbol"?t+"":t,s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../../index-C1H-OgNf.cjs"),V="".replace(/\/+$/,""),b={csv:","};class y{constructor(t,s=V,l=m.axios){w(this,"configuration");this.basePath=s,this.axios=l,t&&(this.configuration=t,this.basePath=t.basePath??s)}}class Ce extends Error{constructor(t,s){super(s),this.field=t,this.name="RequiredError"}}const v={},A="https://example.com",h=function(e,t,s){if(s==null)throw new Ce(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},S=function(e,t){t&&(t.username||t.password)&&(e.auth={username:t.username,password:t.password})},R=async function(e,t){if(t&&t.accessToken){const s=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+s}};function K(e,t,s=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(l=>K(e,l,s)):Object.keys(t).forEach(l=>K(e,t[l],`${s}${s!==""?".":""}${l}`)):e.has(s)?e.append(s,t):e.set(s,t))}const O=function(e,...t){const s=new URLSearchParams(e.search);K(s,t),e.search=s.toString()},U=function(e,t,s){const l=typeof e!="string";return(l&&s&&s.isJsonMime?s.isJsonMime(t.headers["Content-Type"]):l)?JSON.stringify(e!==void 0?e:{}):e||""},P=function(e){return e.pathname+e.search+e.hash},u=function(e,t,s,l){return(o=t,a=s)=>{const r={...e.options,url:(o.defaults.baseURL?"":(l==null?void 0:l.basePath)??a)+e.url};return o.request(r)}},Ie={Class:"class",Course:"course"},De={Internal:"internal",View:"view",Upload:"upload",Edit:"edit",CreateOnly:"createOnly",BlocksDownload:"blocksDownload"},f=function(e){return{getActivities:async(t,s={})=>{const l="/v1beta1/extensions/org.libregraph/activities",o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};S(r,e),t!==void 0&&(c.kql=t),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}}}},Y=function(e){const t=f(e);return{async getActivities(s,l){var n,c;const o=await t.getActivities(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["ActivitiesApi.getActivities"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)}}},we=function(e,t,s){const l=Y(e);return{getActivities(o,a){return l.getActivities(o,a).then(r=>r(s,t))}}};class Ee extends y{getActivities(t,s){return Y(this.configuration).getActivities(t,s).then(l=>l(this.axios,this.basePath))}}const ee=function(e){return{getApplication:async(t,s={})=>{h("getApplication","applicationId",t);const l="/v1.0/applications/{application-id}".replace("{application-id}",encodeURIComponent(String(t))),o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};S(r,e),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}},listApplications:async(t={})=>{const s="/v1.0/applications",l=new URL(s,A);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},r={},n={};S(a,e),O(l,n);let c=o&&o.headers?o.headers:{};return a.headers={...r,...c,...t.headers},{url:P(l),options:a}}}},Q=function(e){const t=ee(e);return{async getApplication(s,l){var n,c;const o=await t.getApplication(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["ApplicationsApi.getApplication"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async listApplications(s){var r,n;const l=await t.listApplications(s),o=(e==null?void 0:e.serverIndex)??0,a=(n=(r=v["ApplicationsApi.listApplications"])==null?void 0:r[o])==null?void 0:n.url;return(c,i)=>u(l,m.axios,V,e)(c,a||i)}}},Te=function(e,t,s){const l=Q(e);return{getApplication(o,a){return l.getApplication(o,a).then(r=>r(s,t))},listApplications(o){return l.listApplications(o).then(a=>a(s,t))}}};class Fe extends y{getApplication(t,s){return Q(this.configuration).getApplication(t,s).then(l=>l(this.axios,this.basePath))}listApplications(t){return Q(this.configuration).listApplications(t).then(s=>s(this.axios,this.basePath))}}const se=function(e){return{deleteDriveItem:async(t,s,l={})=>{h("deleteDriveItem","driveId",t),h("deleteDriveItem","itemId",s);const o="/v1beta1/drives/{drive-id}/items/{item-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(s))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"DELETE",...r,...l},c={},i={};S(n,e),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}},getDriveItem:async(t,s,l={})=>{h("getDriveItem","driveId",t),h("getDriveItem","itemId",s);const o="/v1beta1/drives/{drive-id}/items/{item-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(s))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...l},c={},i={};S(n,e),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}},updateDriveItem:async(t,s,l,o={})=>{h("updateDriveItem","driveId",t),h("updateDriveItem","itemId",s),h("updateDriveItem","driveItem",l);const a="/v1beta1/drives/{drive-id}/items/{item-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(s))),r=new URL(a,A);let n;e&&(n=e.baseOptions);const c={method:"PATCH",...n,...o},i={},d={};S(c,e),i["Content-Type"]="application/json",O(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...o.headers},c.data=U(l,c,e),{url:P(r),options:c}}}},G=function(e){const t=se(e);return{async deleteDriveItem(s,l,o){var c,i;const a=await t.deleteDriveItem(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["DriveItemApi.deleteDriveItem"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async getDriveItem(s,l,o){var c,i;const a=await t.getDriveItem(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["DriveItemApi.getDriveItem"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async updateDriveItem(s,l,o,a){var i,d;const r=await t.updateDriveItem(s,l,o,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=v["DriveItemApi.updateDriveItem"])==null?void 0:i[n])==null?void 0:d.url;return(p,x)=>u(r,m.axios,V,e)(p,c||x)}}},Be=function(e,t,s){const l=G(e);return{deleteDriveItem(o,a,r){return l.deleteDriveItem(o,a,r).then(n=>n(s,t))},getDriveItem(o,a,r){return l.getDriveItem(o,a,r).then(n=>n(s,t))},updateDriveItem(o,a,r,n){return l.updateDriveItem(o,a,r,n).then(c=>c(s,t))}}};class Me extends y{deleteDriveItem(t,s,l){return G(this.configuration).deleteDriveItem(t,s,l).then(o=>o(this.axios,this.basePath))}getDriveItem(t,s,l){return G(this.configuration).getDriveItem(t,s,l).then(o=>o(this.axios,this.basePath))}updateDriveItem(t,s,l,o){return G(this.configuration).updateDriveItem(t,s,l,o).then(a=>a(this.axios,this.basePath))}}const re=function(e){return{createDrive:async(t,s={})=>{h("createDrive","drive",t);const l="/v1.0/drives",o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"POST",...a,...s},n={},c={};S(r,e),n["Content-Type"]="application/json",O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},r.data=U(t,r,e),{url:P(o),options:r}},deleteDrive:async(t,s,l={})=>{h("deleteDrive","driveId",t);const o="/v1.0/drives/{drive-id}".replace("{drive-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"DELETE",...r,...l},c={},i={};S(n,e),s!=null&&(c["If-Match"]=String(s)),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}},getDrive:async(t,s={})=>{h("getDrive","driveId",t);const l="/v1.0/drives/{drive-id}".replace("{drive-id}",encodeURIComponent(String(t))),o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};S(r,e),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}},updateDrive:async(t,s,l={})=>{h("updateDrive","driveId",t),h("updateDrive","driveUpdate",s);const o="/v1.0/drives/{drive-id}".replace("{drive-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"PATCH",...r,...l},c={},i={};S(n,e),c["Content-Type"]="application/json",O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=U(s,n,e),{url:P(a),options:n}}}},M=function(e){const t=re(e);return{async createDrive(s,l){var n,c;const o=await t.createDrive(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["DrivesApi.createDrive"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async deleteDrive(s,l,o){var c,i;const a=await t.deleteDrive(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["DrivesApi.deleteDrive"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async getDrive(s,l){var n,c;const o=await t.getDrive(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["DrivesApi.getDrive"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async updateDrive(s,l,o){var c,i;const a=await t.updateDrive(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["DrivesApi.updateDrive"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)}}},Le=function(e,t,s){const l=M(e);return{createDrive(o,a){return l.createDrive(o,a).then(r=>r(s,t))},deleteDrive(o,a,r){return l.deleteDrive(o,a,r).then(n=>n(s,t))},getDrive(o,a){return l.getDrive(o,a).then(r=>r(s,t))},updateDrive(o,a,r){return l.updateDrive(o,a,r).then(n=>n(s,t))}}};class Ge extends y{createDrive(t,s){return M(this.configuration).createDrive(t,s).then(l=>l(this.axios,this.basePath))}deleteDrive(t,s,l){return M(this.configuration).deleteDrive(t,s,l).then(o=>o(this.axios,this.basePath))}getDrive(t,s){return M(this.configuration).getDrive(t,s).then(l=>l(this.axios,this.basePath))}updateDrive(t,s,l){return M(this.configuration).updateDrive(t,s,l).then(o=>o(this.axios,this.basePath))}}const ae=function(e){return{listAllDrives:async(t,s,l={})=>{const o="/v1.0/drives",a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...l},c={},i={};S(n,e),t!==void 0&&(i.$orderby=t),s!==void 0&&(i.$filter=s),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}},listAllDrivesBeta:async(t,s,l={})=>{const o="/v1beta1/drives",a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...l},c={},i={};S(n,e),t!==void 0&&(i.$orderby=t),s!==void 0&&(i.$filter=s),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}}}},N=function(e){const t=ae(e);return{async listAllDrives(s,l,o){var c,i;const a=await t.listAllDrives(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["DrivesGetDrivesApi.listAllDrives"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async listAllDrivesBeta(s,l,o){var c,i;const a=await t.listAllDrivesBeta(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["DrivesGetDrivesApi.listAllDrivesBeta"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)}}},je=function(e,t,s){const l=N(e);return{listAllDrives(o,a,r){return l.listAllDrives(o,a,r).then(n=>n(s,t))},listAllDrivesBeta(o,a,r){return l.listAllDrivesBeta(o,a,r).then(n=>n(s,t))}}};class He extends y{listAllDrives(t,s,l){return N(this.configuration).listAllDrives(t,s,l).then(o=>o(this.axios,this.basePath))}listAllDrivesBeta(t,s,l){return N(this.configuration).listAllDrivesBeta(t,s,l).then(o=>o(this.axios,this.basePath))}}const te=function(e){return{createLink:async(t,s,l,o={})=>{h("createLink","driveId",t),h("createLink","itemId",s);const a="/v1beta1/drives/{drive-id}/items/{item-id}/createLink".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(s))),r=new URL(a,A);let n;e&&(n=e.baseOptions);const c={method:"POST",...n,...o},i={},d={};S(c,e),i["Content-Type"]="application/json",O(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...o.headers},c.data=U(l,c,e),{url:P(r),options:c}},deletePermission:async(t,s,l,o={})=>{h("deletePermission","driveId",t),h("deletePermission","itemId",s),h("deletePermission","permId",l);const a="/v1beta1/drives/{drive-id}/items/{item-id}/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(s))).replace("{perm-id}",encodeURIComponent(String(l))),r=new URL(a,A);let n;e&&(n=e.baseOptions);const c={method:"DELETE",...n,...o},i={},d={};S(c,e),O(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...o.headers},{url:P(r),options:c}},getPermission:async(t,s,l,o={})=>{h("getPermission","driveId",t),h("getPermission","itemId",s),h("getPermission","permId",l);const a="/v1beta1/drives/{drive-id}/items/{item-id}/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(s))).replace("{perm-id}",encodeURIComponent(String(l))),r=new URL(a,A);let n;e&&(n=e.baseOptions);const c={method:"GET",...n,...o},i={},d={};S(c,e),O(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...o.headers},{url:P(r),options:c}},invite:async(t,s,l,o={})=>{h("invite","driveId",t),h("invite","itemId",s);const a="/v1beta1/drives/{drive-id}/items/{item-id}/invite".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(s))),r=new URL(a,A);let n;e&&(n=e.baseOptions);const c={method:"POST",...n,...o},i={},d={};S(c,e),i["Content-Type"]="application/json",O(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...o.headers},c.data=U(l,c,e),{url:P(r),options:c}},listPermissions:async(t,s,l,o,a={})=>{h("listPermissions","driveId",t),h("listPermissions","itemId",s);const r="/v1beta1/drives/{drive-id}/items/{item-id}/permissions".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(s))),n=new URL(r,A);let c;e&&(c=e.baseOptions);const i={method:"GET",...c,...a},d={},p={};S(i,e),l!==void 0&&(p.$filter=l),o&&(p.$select=Array.from(o).join(b.csv)),O(n,p);let x=c&&c.headers?c.headers:{};return i.headers={...d,...x,...a.headers},{url:P(n),options:i}},setPermissionPassword:async(t,s,l,o,a={})=>{h("setPermissionPassword","driveId",t),h("setPermissionPassword","itemId",s),h("setPermissionPassword","permId",l),h("setPermissionPassword","sharingLinkPassword",o);const r="/v1beta1/drives/{drive-id}/items/{item-id}/permissions/{perm-id}/setPassword".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(s))).replace("{perm-id}",encodeURIComponent(String(l))),n=new URL(r,A);let c;e&&(c=e.baseOptions);const i={method:"POST",...c,...a},d={},p={};S(i,e),d["Content-Type"]="application/json",O(n,p);let x=c&&c.headers?c.headers:{};return i.headers={...d,...x,...a.headers},i.data=U(o,i,e),{url:P(n),options:i}},updatePermission:async(t,s,l,o,a={})=>{h("updatePermission","driveId",t),h("updatePermission","itemId",s),h("updatePermission","permId",l),h("updatePermission","permission",o);const r="/v1beta1/drives/{drive-id}/items/{item-id}/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(s))).replace("{perm-id}",encodeURIComponent(String(l))),n=new URL(r,A);let c;e&&(c=e.baseOptions);const i={method:"PATCH",...c,...a},d={},p={};S(i,e),d["Content-Type"]="application/json",O(n,p);let x=c&&c.headers?c.headers:{};return i.headers={...d,...x,...a.headers},i.data=U(o,i,e),{url:P(n),options:i}}}},T=function(e){const t=te(e);return{async createLink(s,l,o,a){var i,d;const r=await t.createLink(s,l,o,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=v["DrivesPermissionsApi.createLink"])==null?void 0:i[n])==null?void 0:d.url;return(p,x)=>u(r,m.axios,V,e)(p,c||x)},async deletePermission(s,l,o,a){var i,d;const r=await t.deletePermission(s,l,o,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=v["DrivesPermissionsApi.deletePermission"])==null?void 0:i[n])==null?void 0:d.url;return(p,x)=>u(r,m.axios,V,e)(p,c||x)},async getPermission(s,l,o,a){var i,d;const r=await t.getPermission(s,l,o,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=v["DrivesPermissionsApi.getPermission"])==null?void 0:i[n])==null?void 0:d.url;return(p,x)=>u(r,m.axios,V,e)(p,c||x)},async invite(s,l,o,a){var i,d;const r=await t.invite(s,l,o,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=v["DrivesPermissionsApi.invite"])==null?void 0:i[n])==null?void 0:d.url;return(p,x)=>u(r,m.axios,V,e)(p,c||x)},async listPermissions(s,l,o,a,r){var d,p;const n=await t.listPermissions(s,l,o,a,r),c=(e==null?void 0:e.serverIndex)??0,i=(p=(d=v["DrivesPermissionsApi.listPermissions"])==null?void 0:d[c])==null?void 0:p.url;return(x,I)=>u(n,m.axios,V,e)(x,i||I)},async setPermissionPassword(s,l,o,a,r){var d,p;const n=await t.setPermissionPassword(s,l,o,a,r),c=(e==null?void 0:e.serverIndex)??0,i=(p=(d=v["DrivesPermissionsApi.setPermissionPassword"])==null?void 0:d[c])==null?void 0:p.url;return(x,I)=>u(n,m.axios,V,e)(x,i||I)},async updatePermission(s,l,o,a,r){var d,p;const n=await t.updatePermission(s,l,o,a,r),c=(e==null?void 0:e.serverIndex)??0,i=(p=(d=v["DrivesPermissionsApi.updatePermission"])==null?void 0:d[c])==null?void 0:p.url;return(x,I)=>u(n,m.axios,V,e)(x,i||I)}}},$e=function(e,t,s){const l=T(e);return{createLink(o,a,r,n){return l.createLink(o,a,r,n).then(c=>c(s,t))},deletePermission(o,a,r,n){return l.deletePermission(o,a,r,n).then(c=>c(s,t))},getPermission(o,a,r,n){return l.getPermission(o,a,r,n).then(c=>c(s,t))},invite(o,a,r,n){return l.invite(o,a,r,n).then(c=>c(s,t))},listPermissions(o,a,r,n,c){return l.listPermissions(o,a,r,n,c).then(i=>i(s,t))},setPermissionPassword(o,a,r,n,c){return l.setPermissionPassword(o,a,r,n,c).then(i=>i(s,t))},updatePermission(o,a,r,n,c){return l.updatePermission(o,a,r,n,c).then(i=>i(s,t))}}};class qe extends y{createLink(t,s,l,o){return T(this.configuration).createLink(t,s,l,o).then(a=>a(this.axios,this.basePath))}deletePermission(t,s,l,o){return T(this.configuration).deletePermission(t,s,l,o).then(a=>a(this.axios,this.basePath))}getPermission(t,s,l,o){return T(this.configuration).getPermission(t,s,l,o).then(a=>a(this.axios,this.basePath))}invite(t,s,l,o){return T(this.configuration).invite(t,s,l,o).then(a=>a(this.axios,this.basePath))}listPermissions(t,s,l,o,a){return T(this.configuration).listPermissions(t,s,l,o,a).then(r=>r(this.axios,this.basePath))}setPermissionPassword(t,s,l,o,a){return T(this.configuration).setPermissionPassword(t,s,l,o,a).then(r=>r(this.axios,this.basePath))}updatePermission(t,s,l,o,a){return T(this.configuration).updatePermission(t,s,l,o,a).then(r=>r(this.axios,this.basePath))}}const Qe={LibreGraphPermissionsActionsAllowedValues:"@libre.graph.permissions.actions.allowedValues",LibreGraphPermissionsRolesAllowedValues:"@libre.graph.permissions.roles.allowedValues",Value:"value"},oe=function(e){return{createDriveItem:async(t,s,l={})=>{h("createDriveItem","driveId",t);const o="/v1beta1/drives/{drive-id}/root/children".replace("{drive-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...l},c={},i={};S(n,e),c["Content-Type"]="application/json",O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=U(s,n,e),{url:P(a),options:n}},createLinkSpaceRoot:async(t,s,l={})=>{h("createLinkSpaceRoot","driveId",t);const o="/v1beta1/drives/{drive-id}/root/createLink".replace("{drive-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...l},c={},i={};S(n,e),c["Content-Type"]="application/json",O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=U(s,n,e),{url:P(a),options:n}},deletePermissionSpaceRoot:async(t,s,l={})=>{h("deletePermissionSpaceRoot","driveId",t),h("deletePermissionSpaceRoot","permId",s);const o="/v1beta1/drives/{drive-id}/root/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{perm-id}",encodeURIComponent(String(s))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"DELETE",...r,...l},c={},i={};S(n,e),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}},getPermissionSpaceRoot:async(t,s,l={})=>{h("getPermissionSpaceRoot","driveId",t),h("getPermissionSpaceRoot","permId",s);const o="/v1beta1/drives/{drive-id}/root/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{perm-id}",encodeURIComponent(String(s))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...l},c={},i={};S(n,e),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}},getRoot:async(t,s={})=>{h("getRoot","driveId",t);const l="/v1.0/drives/{drive-id}/root".replace("{drive-id}",encodeURIComponent(String(t))),o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};S(r,e),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}},inviteSpaceRoot:async(t,s,l={})=>{h("inviteSpaceRoot","driveId",t);const o="/v1beta1/drives/{drive-id}/root/invite".replace("{drive-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...l},c={},i={};S(n,e),c["Content-Type"]="application/json",O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=U(s,n,e),{url:P(a),options:n}},listPermissionsSpaceRoot:async(t,s,l,o={})=>{h("listPermissionsSpaceRoot","driveId",t);const a="/v1beta1/drives/{drive-id}/root/permissions".replace("{drive-id}",encodeURIComponent(String(t))),r=new URL(a,A);let n;e&&(n=e.baseOptions);const c={method:"GET",...n,...o},i={},d={};S(c,e),s!==void 0&&(d.$filter=s),l&&(d.$select=Array.from(l).join(b.csv)),O(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...o.headers},{url:P(r),options:c}},setPermissionPasswordSpaceRoot:async(t,s,l,o={})=>{h("setPermissionPasswordSpaceRoot","driveId",t),h("setPermissionPasswordSpaceRoot","permId",s),h("setPermissionPasswordSpaceRoot","sharingLinkPassword",l);const a="/v1beta1/drives/{drive-id}/root/permissions/{perm-id}/setPassword".replace("{drive-id}",encodeURIComponent(String(t))).replace("{perm-id}",encodeURIComponent(String(s))),r=new URL(a,A);let n;e&&(n=e.baseOptions);const c={method:"POST",...n,...o},i={},d={};S(c,e),i["Content-Type"]="application/json",O(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...o.headers},c.data=U(l,c,e),{url:P(r),options:c}},updatePermissionSpaceRoot:async(t,s,l,o={})=>{h("updatePermissionSpaceRoot","driveId",t),h("updatePermissionSpaceRoot","permId",s),h("updatePermissionSpaceRoot","permission",l);const a="/v1beta1/drives/{drive-id}/root/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{perm-id}",encodeURIComponent(String(s))),r=new URL(a,A);let n;e&&(n=e.baseOptions);const c={method:"PATCH",...n,...o},i={},d={};S(c,e),i["Content-Type"]="application/json",O(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...o.headers},c.data=U(l,c,e),{url:P(r),options:c}}}},D=function(e){const t=oe(e);return{async createDriveItem(s,l,o){var c,i;const a=await t.createDriveItem(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["DrivesRootApi.createDriveItem"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async createLinkSpaceRoot(s,l,o){var c,i;const a=await t.createLinkSpaceRoot(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["DrivesRootApi.createLinkSpaceRoot"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async deletePermissionSpaceRoot(s,l,o){var c,i;const a=await t.deletePermissionSpaceRoot(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["DrivesRootApi.deletePermissionSpaceRoot"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async getPermissionSpaceRoot(s,l,o){var c,i;const a=await t.getPermissionSpaceRoot(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["DrivesRootApi.getPermissionSpaceRoot"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async getRoot(s,l){var n,c;const o=await t.getRoot(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["DrivesRootApi.getRoot"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async inviteSpaceRoot(s,l,o){var c,i;const a=await t.inviteSpaceRoot(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["DrivesRootApi.inviteSpaceRoot"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async listPermissionsSpaceRoot(s,l,o,a){var i,d;const r=await t.listPermissionsSpaceRoot(s,l,o,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=v["DrivesRootApi.listPermissionsSpaceRoot"])==null?void 0:i[n])==null?void 0:d.url;return(p,x)=>u(r,m.axios,V,e)(p,c||x)},async setPermissionPasswordSpaceRoot(s,l,o,a){var i,d;const r=await t.setPermissionPasswordSpaceRoot(s,l,o,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=v["DrivesRootApi.setPermissionPasswordSpaceRoot"])==null?void 0:i[n])==null?void 0:d.url;return(p,x)=>u(r,m.axios,V,e)(p,c||x)},async updatePermissionSpaceRoot(s,l,o,a){var i,d;const r=await t.updatePermissionSpaceRoot(s,l,o,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=v["DrivesRootApi.updatePermissionSpaceRoot"])==null?void 0:i[n])==null?void 0:d.url;return(p,x)=>u(r,m.axios,V,e)(p,c||x)}}},Ne=function(e,t,s){const l=D(e);return{createDriveItem(o,a,r){return l.createDriveItem(o,a,r).then(n=>n(s,t))},createLinkSpaceRoot(o,a,r){return l.createLinkSpaceRoot(o,a,r).then(n=>n(s,t))},deletePermissionSpaceRoot(o,a,r){return l.deletePermissionSpaceRoot(o,a,r).then(n=>n(s,t))},getPermissionSpaceRoot(o,a,r){return l.getPermissionSpaceRoot(o,a,r).then(n=>n(s,t))},getRoot(o,a){return l.getRoot(o,a).then(r=>r(s,t))},inviteSpaceRoot(o,a,r){return l.inviteSpaceRoot(o,a,r).then(n=>n(s,t))},listPermissionsSpaceRoot(o,a,r,n){return l.listPermissionsSpaceRoot(o,a,r,n).then(c=>c(s,t))},setPermissionPasswordSpaceRoot(o,a,r,n){return l.setPermissionPasswordSpaceRoot(o,a,r,n).then(c=>c(s,t))},updatePermissionSpaceRoot(o,a,r,n){return l.updatePermissionSpaceRoot(o,a,r,n).then(c=>c(s,t))}}};class ke extends y{createDriveItem(t,s,l){return D(this.configuration).createDriveItem(t,s,l).then(o=>o(this.axios,this.basePath))}createLinkSpaceRoot(t,s,l){return D(this.configuration).createLinkSpaceRoot(t,s,l).then(o=>o(this.axios,this.basePath))}deletePermissionSpaceRoot(t,s,l){return D(this.configuration).deletePermissionSpaceRoot(t,s,l).then(o=>o(this.axios,this.basePath))}getPermissionSpaceRoot(t,s,l){return D(this.configuration).getPermissionSpaceRoot(t,s,l).then(o=>o(this.axios,this.basePath))}getRoot(t,s){return D(this.configuration).getRoot(t,s).then(l=>l(this.axios,this.basePath))}inviteSpaceRoot(t,s,l){return D(this.configuration).inviteSpaceRoot(t,s,l).then(o=>o(this.axios,this.basePath))}listPermissionsSpaceRoot(t,s,l,o){return D(this.configuration).listPermissionsSpaceRoot(t,s,l,o).then(a=>a(this.axios,this.basePath))}setPermissionPasswordSpaceRoot(t,s,l,o){return D(this.configuration).setPermissionPasswordSpaceRoot(t,s,l,o).then(a=>a(this.axios,this.basePath))}updatePermissionSpaceRoot(t,s,l,o){return D(this.configuration).updatePermissionSpaceRoot(t,s,l,o).then(a=>a(this.axios,this.basePath))}}const We={LibreGraphPermissionsActionsAllowedValues:"@libre.graph.permissions.actions.allowedValues",LibreGraphPermissionsRolesAllowedValues:"@libre.graph.permissions.roles.allowedValues",Value:"value"},le=function(e){return{addUserToClass:async(t,s,l={})=>{h("addUserToClass","classId",t),h("addUserToClass","classMemberReference",s);const o="/v1.0/education/classes/{class-id}/members/$ref".replace("{class-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...l},c={},i={};await R(c,e),c["Content-Type"]="application/json",O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=U(s,n,e),{url:P(a),options:n}},createClass:async(t,s={})=>{h("createClass","educationClass",t);const l="/v1.0/education/classes",o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"POST",...a,...s},n={},c={};await R(n,e),n["Content-Type"]="application/json",O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},r.data=U(t,r,e),{url:P(o),options:r}},deleteClass:async(t,s={})=>{h("deleteClass","classId",t);const l="/v1.0/education/classes/{class-id}".replace("{class-id}",encodeURIComponent(String(t))),o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"DELETE",...a,...s},n={},c={};await R(n,e),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}},deleteUserFromClass:async(t,s,l={})=>{h("deleteUserFromClass","classId",t),h("deleteUserFromClass","userId",s);const o="/v1.0/education/classes/{class-id}/members/{user-id}/$ref".replace("{class-id}",encodeURIComponent(String(t))).replace("{user-id}",encodeURIComponent(String(s))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"DELETE",...r,...l},c={},i={};await R(c,e),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}},getClass:async(t,s={})=>{h("getClass","classId",t);const l="/v1.0/education/classes/{class-id}".replace("{class-id}",encodeURIComponent(String(t))),o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};await R(n,e),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}},listClassMembers:async(t,s={})=>{h("listClassMembers","classId",t);const l="/v1.0/education/classes/{class-id}/members".replace("{class-id}",encodeURIComponent(String(t))),o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};await R(n,e),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}},listClasses:async(t={})=>{const s="/v1.0/education/classes",l=new URL(s,A);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},r={},n={};await R(r,e),O(l,n);let c=o&&o.headers?o.headers:{};return a.headers={...r,...c,...t.headers},{url:P(l),options:a}},updateClass:async(t,s,l={})=>{h("updateClass","classId",t),h("updateClass","educationClass",s);const o="/v1.0/education/classes/{class-id}".replace("{class-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"PATCH",...r,...l},c={},i={};await R(c,e),c["Content-Type"]="application/json",O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=U(s,n,e),{url:P(a),options:n}}}},E=function(e){const t=le(e);return{async addUserToClass(s,l,o){var c,i;const a=await t.addUserToClass(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["EducationClassApi.addUserToClass"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async createClass(s,l){var n,c;const o=await t.createClass(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["EducationClassApi.createClass"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async deleteClass(s,l){var n,c;const o=await t.deleteClass(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["EducationClassApi.deleteClass"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async deleteUserFromClass(s,l,o){var c,i;const a=await t.deleteUserFromClass(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["EducationClassApi.deleteUserFromClass"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async getClass(s,l){var n,c;const o=await t.getClass(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["EducationClassApi.getClass"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async listClassMembers(s,l){var n,c;const o=await t.listClassMembers(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["EducationClassApi.listClassMembers"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async listClasses(s){var r,n;const l=await t.listClasses(s),o=(e==null?void 0:e.serverIndex)??0,a=(n=(r=v["EducationClassApi.listClasses"])==null?void 0:r[o])==null?void 0:n.url;return(c,i)=>u(l,m.axios,V,e)(c,a||i)},async updateClass(s,l,o){var c,i;const a=await t.updateClass(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["EducationClassApi.updateClass"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)}}},ze=function(e,t,s){const l=E(e);return{addUserToClass(o,a,r){return l.addUserToClass(o,a,r).then(n=>n(s,t))},createClass(o,a){return l.createClass(o,a).then(r=>r(s,t))},deleteClass(o,a){return l.deleteClass(o,a).then(r=>r(s,t))},deleteUserFromClass(o,a,r){return l.deleteUserFromClass(o,a,r).then(n=>n(s,t))},getClass(o,a){return l.getClass(o,a).then(r=>r(s,t))},listClassMembers(o,a){return l.listClassMembers(o,a).then(r=>r(s,t))},listClasses(o){return l.listClasses(o).then(a=>a(s,t))},updateClass(o,a,r){return l.updateClass(o,a,r).then(n=>n(s,t))}}};class Je extends y{addUserToClass(t,s,l){return E(this.configuration).addUserToClass(t,s,l).then(o=>o(this.axios,this.basePath))}createClass(t,s){return E(this.configuration).createClass(t,s).then(l=>l(this.axios,this.basePath))}deleteClass(t,s){return E(this.configuration).deleteClass(t,s).then(l=>l(this.axios,this.basePath))}deleteUserFromClass(t,s,l){return E(this.configuration).deleteUserFromClass(t,s,l).then(o=>o(this.axios,this.basePath))}getClass(t,s){return E(this.configuration).getClass(t,s).then(l=>l(this.axios,this.basePath))}listClassMembers(t,s){return E(this.configuration).listClassMembers(t,s).then(l=>l(this.axios,this.basePath))}listClasses(t){return E(this.configuration).listClasses(t).then(s=>s(this.axios,this.basePath))}updateClass(t,s,l){return E(this.configuration).updateClass(t,s,l).then(o=>o(this.axios,this.basePath))}}const ne=function(e){return{addTeacherToClass:async(t,s,l={})=>{h("addTeacherToClass","classId",t),h("addTeacherToClass","classTeacherReference",s);const o="/v1.0/education/classes/{class-id}/teachers/$ref".replace("{class-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...l},c={},i={};await R(c,e),c["Content-Type"]="application/json",O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=U(s,n,e),{url:P(a),options:n}},deleteTeacherFromClass:async(t,s,l={})=>{h("deleteTeacherFromClass","classId",t),h("deleteTeacherFromClass","userId",s);const o="/v1.0/education/classes/{class-id}/teachers/{user-id}/$ref".replace("{class-id}",encodeURIComponent(String(t))).replace("{user-id}",encodeURIComponent(String(s))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"DELETE",...r,...l},c={},i={};await R(c,e),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}},getTeachers:async(t,s={})=>{h("getTeachers","classId",t);const l="/v1.0/education/classes/{class-id}/teachers".replace("{class-id}",encodeURIComponent(String(t))),o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};await R(n,e),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}}}},j=function(e){const t=ne(e);return{async addTeacherToClass(s,l,o){var c,i;const a=await t.addTeacherToClass(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["EducationClassTeachersApi.addTeacherToClass"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async deleteTeacherFromClass(s,l,o){var c,i;const a=await t.deleteTeacherFromClass(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["EducationClassTeachersApi.deleteTeacherFromClass"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async getTeachers(s,l){var n,c;const o=await t.getTeachers(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["EducationClassTeachersApi.getTeachers"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)}}},_e=function(e,t,s){const l=j(e);return{addTeacherToClass(o,a,r){return l.addTeacherToClass(o,a,r).then(n=>n(s,t))},deleteTeacherFromClass(o,a,r){return l.deleteTeacherFromClass(o,a,r).then(n=>n(s,t))},getTeachers(o,a){return l.getTeachers(o,a).then(r=>r(s,t))}}};class Ke extends y{addTeacherToClass(t,s,l){return j(this.configuration).addTeacherToClass(t,s,l).then(o=>o(this.axios,this.basePath))}deleteTeacherFromClass(t,s,l){return j(this.configuration).deleteTeacherFromClass(t,s,l).then(o=>o(this.axios,this.basePath))}getTeachers(t,s){return j(this.configuration).getTeachers(t,s).then(l=>l(this.axios,this.basePath))}}const ce=function(e){return{addClassToSchool:async(t,s,l={})=>{h("addClassToSchool","schoolId",t),h("addClassToSchool","classReference",s);const o="/v1.0/education/schools/{school-id}/classes/$ref".replace("{school-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...l},c={},i={};await R(c,e),c["Content-Type"]="application/json",O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=U(s,n,e),{url:P(a),options:n}},addUserToSchool:async(t,s,l={})=>{h("addUserToSchool","schoolId",t),h("addUserToSchool","educationUserReference",s);const o="/v1.0/education/schools/{school-id}/users/$ref".replace("{school-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...l},c={},i={};await R(c,e),c["Content-Type"]="application/json",O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=U(s,n,e),{url:P(a),options:n}},createSchool:async(t,s={})=>{h("createSchool","educationSchool",t);const l="/v1.0/education/schools",o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"POST",...a,...s},n={},c={};await R(n,e),n["Content-Type"]="application/json",O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},r.data=U(t,r,e),{url:P(o),options:r}},deleteClassFromSchool:async(t,s,l={})=>{h("deleteClassFromSchool","schoolId",t),h("deleteClassFromSchool","classId",s);const o="/v1.0/education/schools/{school-id}/classes/{class-id}/$ref".replace("{school-id}",encodeURIComponent(String(t))).replace("{class-id}",encodeURIComponent(String(s))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"DELETE",...r,...l},c={},i={};await R(c,e),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}},deleteSchool:async(t,s={})=>{h("deleteSchool","schoolId",t);const l="/v1.0/education/schools/{school-id}".replace("{school-id}",encodeURIComponent(String(t))),o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"DELETE",...a,...s},n={},c={};await R(n,e),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}},deleteUserFromSchool:async(t,s,l={})=>{h("deleteUserFromSchool","schoolId",t),h("deleteUserFromSchool","userId",s);const o="/v1.0/education/schools/{school-id}/users/{user-id}/$ref".replace("{school-id}",encodeURIComponent(String(t))).replace("{user-id}",encodeURIComponent(String(s))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"DELETE",...r,...l},c={},i={};await R(c,e),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}},getSchool:async(t,s={})=>{h("getSchool","schoolId",t);const l="/v1.0/education/schools/{school-id}".replace("{school-id}",encodeURIComponent(String(t))),o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};await R(n,e),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}},listSchoolClasses:async(t,s={})=>{h("listSchoolClasses","schoolId",t);const l="/v1.0/education/schools/{school-id}/classes".replace("{school-id}",encodeURIComponent(String(t))),o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};await R(n,e),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}},listSchoolUsers:async(t,s={})=>{h("listSchoolUsers","schoolId",t);const l="/v1.0/education/schools/{school-id}/users".replace("{school-id}",encodeURIComponent(String(t))),o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};await R(n,e),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}},listSchools:async(t={})=>{const s="/v1.0/education/schools",l=new URL(s,A);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},r={},n={};await R(r,e),O(l,n);let c=o&&o.headers?o.headers:{};return a.headers={...r,...c,...t.headers},{url:P(l),options:a}},updateSchool:async(t,s,l={})=>{h("updateSchool","schoolId",t),h("updateSchool","educationSchool",s);const o="/v1.0/education/schools/{school-id}".replace("{school-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"PATCH",...r,...l},c={},i={};await R(c,e),c["Content-Type"]="application/json",O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=U(s,n,e),{url:P(a),options:n}}}},C=function(e){const t=ce(e);return{async addClassToSchool(s,l,o){var c,i;const a=await t.addClassToSchool(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["EducationSchoolApi.addClassToSchool"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async addUserToSchool(s,l,o){var c,i;const a=await t.addUserToSchool(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["EducationSchoolApi.addUserToSchool"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async createSchool(s,l){var n,c;const o=await t.createSchool(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["EducationSchoolApi.createSchool"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async deleteClassFromSchool(s,l,o){var c,i;const a=await t.deleteClassFromSchool(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["EducationSchoolApi.deleteClassFromSchool"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async deleteSchool(s,l){var n,c;const o=await t.deleteSchool(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["EducationSchoolApi.deleteSchool"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async deleteUserFromSchool(s,l,o){var c,i;const a=await t.deleteUserFromSchool(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["EducationSchoolApi.deleteUserFromSchool"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async getSchool(s,l){var n,c;const o=await t.getSchool(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["EducationSchoolApi.getSchool"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async listSchoolClasses(s,l){var n,c;const o=await t.listSchoolClasses(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["EducationSchoolApi.listSchoolClasses"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async listSchoolUsers(s,l){var n,c;const o=await t.listSchoolUsers(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["EducationSchoolApi.listSchoolUsers"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async listSchools(s){var r,n;const l=await t.listSchools(s),o=(e==null?void 0:e.serverIndex)??0,a=(n=(r=v["EducationSchoolApi.listSchools"])==null?void 0:r[o])==null?void 0:n.url;return(c,i)=>u(l,m.axios,V,e)(c,a||i)},async updateSchool(s,l,o){var c,i;const a=await t.updateSchool(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["EducationSchoolApi.updateSchool"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)}}},Ye=function(e,t,s){const l=C(e);return{addClassToSchool(o,a,r){return l.addClassToSchool(o,a,r).then(n=>n(s,t))},addUserToSchool(o,a,r){return l.addUserToSchool(o,a,r).then(n=>n(s,t))},createSchool(o,a){return l.createSchool(o,a).then(r=>r(s,t))},deleteClassFromSchool(o,a,r){return l.deleteClassFromSchool(o,a,r).then(n=>n(s,t))},deleteSchool(o,a){return l.deleteSchool(o,a).then(r=>r(s,t))},deleteUserFromSchool(o,a,r){return l.deleteUserFromSchool(o,a,r).then(n=>n(s,t))},getSchool(o,a){return l.getSchool(o,a).then(r=>r(s,t))},listSchoolClasses(o,a){return l.listSchoolClasses(o,a).then(r=>r(s,t))},listSchoolUsers(o,a){return l.listSchoolUsers(o,a).then(r=>r(s,t))},listSchools(o){return l.listSchools(o).then(a=>a(s,t))},updateSchool(o,a,r){return l.updateSchool(o,a,r).then(n=>n(s,t))}}};class Xe extends y{addClassToSchool(t,s,l){return C(this.configuration).addClassToSchool(t,s,l).then(o=>o(this.axios,this.basePath))}addUserToSchool(t,s,l){return C(this.configuration).addUserToSchool(t,s,l).then(o=>o(this.axios,this.basePath))}createSchool(t,s){return C(this.configuration).createSchool(t,s).then(l=>l(this.axios,this.basePath))}deleteClassFromSchool(t,s,l){return C(this.configuration).deleteClassFromSchool(t,s,l).then(o=>o(this.axios,this.basePath))}deleteSchool(t,s){return C(this.configuration).deleteSchool(t,s).then(l=>l(this.axios,this.basePath))}deleteUserFromSchool(t,s,l){return C(this.configuration).deleteUserFromSchool(t,s,l).then(o=>o(this.axios,this.basePath))}getSchool(t,s){return C(this.configuration).getSchool(t,s).then(l=>l(this.axios,this.basePath))}listSchoolClasses(t,s){return C(this.configuration).listSchoolClasses(t,s).then(l=>l(this.axios,this.basePath))}listSchoolUsers(t,s){return C(this.configuration).listSchoolUsers(t,s).then(l=>l(this.axios,this.basePath))}listSchools(t){return C(this.configuration).listSchools(t).then(s=>s(this.axios,this.basePath))}updateSchool(t,s,l){return C(this.configuration).updateSchool(t,s,l).then(o=>o(this.axios,this.basePath))}}const ie=function(e){return{createEducationUser:async(t,s={})=>{h("createEducationUser","educationUser",t);const l="/v1.0/education/users",o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"POST",...a,...s},n={},c={};await R(n,e),n["Content-Type"]="application/json",O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},r.data=U(t,r,e),{url:P(o),options:r}},deleteEducationUser:async(t,s={})=>{h("deleteEducationUser","userId",t);const l="/v1.0/education/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"DELETE",...a,...s},n={},c={};await R(n,e),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}},getEducationUser:async(t,s,l={})=>{h("getEducationUser","userId",t);const o="/v1.0/education/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...l},c={},i={};await R(c,e),s&&(i.$expand=Array.from(s).join(b.csv)),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}},listEducationUsers:async(t,s,l={})=>{const o="/v1.0/education/users",a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...l},c={},i={};await R(c,e),t&&(i.$orderby=Array.from(t).join(b.csv)),s&&(i.$expand=Array.from(s).join(b.csv)),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}},updateEducationUser:async(t,s,l={})=>{h("updateEducationUser","userId",t),h("updateEducationUser","educationUser",s);const o="/v1.0/education/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"PATCH",...r,...l},c={},i={};await R(c,e),c["Content-Type"]="application/json",O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=U(s,n,e),{url:P(a),options:n}}}},B=function(e){const t=ie(e);return{async createEducationUser(s,l){var n,c;const o=await t.createEducationUser(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["EducationUserApi.createEducationUser"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async deleteEducationUser(s,l){var n,c;const o=await t.deleteEducationUser(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["EducationUserApi.deleteEducationUser"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async getEducationUser(s,l,o){var c,i;const a=await t.getEducationUser(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["EducationUserApi.getEducationUser"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async listEducationUsers(s,l,o){var c,i;const a=await t.listEducationUsers(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["EducationUserApi.listEducationUsers"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async updateEducationUser(s,l,o){var c,i;const a=await t.updateEducationUser(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["EducationUserApi.updateEducationUser"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)}}},Ze=function(e,t,s){const l=B(e);return{createEducationUser(o,a){return l.createEducationUser(o,a).then(r=>r(s,t))},deleteEducationUser(o,a){return l.deleteEducationUser(o,a).then(r=>r(s,t))},getEducationUser(o,a,r){return l.getEducationUser(o,a,r).then(n=>n(s,t))},listEducationUsers(o,a,r){return l.listEducationUsers(o,a,r).then(n=>n(s,t))},updateEducationUser(o,a,r){return l.updateEducationUser(o,a,r).then(n=>n(s,t))}}};class ge extends y{createEducationUser(t,s){return B(this.configuration).createEducationUser(t,s).then(l=>l(this.axios,this.basePath))}deleteEducationUser(t,s){return B(this.configuration).deleteEducationUser(t,s).then(l=>l(this.axios,this.basePath))}getEducationUser(t,s,l){return B(this.configuration).getEducationUser(t,s,l).then(o=>o(this.axios,this.basePath))}listEducationUsers(t,s,l){return B(this.configuration).listEducationUsers(t,s,l).then(o=>o(this.axios,this.basePath))}updateEducationUser(t,s,l){return B(this.configuration).updateEducationUser(t,s,l).then(o=>o(this.axios,this.basePath))}}const fe={MemberOf:"memberOf"},es={DisplayName:"displayName",DisplayNameDesc:"displayName desc",Mail:"mail",MailDesc:"mail desc",OnPremisesSamAccountName:"onPremisesSamAccountName",OnPremisesSamAccountNameDesc:"onPremisesSamAccountName desc"},ss={MemberOf:"memberOf"},de=function(e){return{addMember:async(t,s,l={})=>{h("addMember","groupId",t),h("addMember","memberReference",s);const o="/v1.0/groups/{group-id}/members/$ref".replace("{group-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...l},c={},i={};S(n,e),c["Content-Type"]="application/json",O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=U(s,n,e),{url:P(a),options:n}},deleteGroup:async(t,s,l={})=>{h("deleteGroup","groupId",t);const o="/v1.0/groups/{group-id}".replace("{group-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"DELETE",...r,...l},c={},i={};S(n,e),s!=null&&(c["If-Match"]=String(s)),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}},deleteMember:async(t,s,l,o={})=>{h("deleteMember","groupId",t),h("deleteMember","directoryObjectId",s);const a="/v1.0/groups/{group-id}/members/{directory-object-id}/$ref".replace("{group-id}",encodeURIComponent(String(t))).replace("{directory-object-id}",encodeURIComponent(String(s))),r=new URL(a,A);let n;e&&(n=e.baseOptions);const c={method:"DELETE",...n,...o},i={},d={};S(c,e),l!=null&&(i["If-Match"]=String(l)),O(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...o.headers},{url:P(r),options:c}},getGroup:async(t,s,l,o={})=>{h("getGroup","groupId",t);const a="/v1.0/groups/{group-id}".replace("{group-id}",encodeURIComponent(String(t))),r=new URL(a,A);let n;e&&(n=e.baseOptions);const c={method:"GET",...n,...o},i={},d={};S(c,e),s&&(d.$select=Array.from(s).join(b.csv)),l&&(d.$expand=Array.from(l).join(b.csv)),O(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...o.headers},{url:P(r),options:c}},listMembers:async(t,s={})=>{h("listMembers","groupId",t);const l="/v1.0/groups/{group-id}/members".replace("{group-id}",encodeURIComponent(String(t))),o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};S(r,e),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}},updateGroup:async(t,s,l={})=>{h("updateGroup","groupId",t),h("updateGroup","group",s);const o="/v1.0/groups/{group-id}".replace("{group-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"PATCH",...r,...l},c={},i={};S(n,e),c["Content-Type"]="application/json",O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=U(s,n,e),{url:P(a),options:n}}}},F=function(e){const t=de(e);return{async addMember(s,l,o){var c,i;const a=await t.addMember(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["GroupApi.addMember"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async deleteGroup(s,l,o){var c,i;const a=await t.deleteGroup(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["GroupApi.deleteGroup"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async deleteMember(s,l,o,a){var i,d;const r=await t.deleteMember(s,l,o,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=v["GroupApi.deleteMember"])==null?void 0:i[n])==null?void 0:d.url;return(p,x)=>u(r,m.axios,V,e)(p,c||x)},async getGroup(s,l,o,a){var i,d;const r=await t.getGroup(s,l,o,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=v["GroupApi.getGroup"])==null?void 0:i[n])==null?void 0:d.url;return(p,x)=>u(r,m.axios,V,e)(p,c||x)},async listMembers(s,l){var n,c;const o=await t.listMembers(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["GroupApi.listMembers"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async updateGroup(s,l,o){var c,i;const a=await t.updateGroup(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["GroupApi.updateGroup"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)}}},rs=function(e,t,s){const l=F(e);return{addMember(o,a,r){return l.addMember(o,a,r).then(n=>n(s,t))},deleteGroup(o,a,r){return l.deleteGroup(o,a,r).then(n=>n(s,t))},deleteMember(o,a,r,n){return l.deleteMember(o,a,r,n).then(c=>c(s,t))},getGroup(o,a,r,n){return l.getGroup(o,a,r,n).then(c=>c(s,t))},listMembers(o,a){return l.listMembers(o,a).then(r=>r(s,t))},updateGroup(o,a,r){return l.updateGroup(o,a,r).then(n=>n(s,t))}}};class as extends y{addMember(t,s,l){return F(this.configuration).addMember(t,s,l).then(o=>o(this.axios,this.basePath))}deleteGroup(t,s,l){return F(this.configuration).deleteGroup(t,s,l).then(o=>o(this.axios,this.basePath))}deleteMember(t,s,l,o){return F(this.configuration).deleteMember(t,s,l,o).then(a=>a(this.axios,this.basePath))}getGroup(t,s,l,o){return F(this.configuration).getGroup(t,s,l,o).then(a=>a(this.axios,this.basePath))}listMembers(t,s){return F(this.configuration).listMembers(t,s).then(l=>l(this.axios,this.basePath))}updateGroup(t,s,l){return F(this.configuration).updateGroup(t,s,l).then(o=>o(this.axios,this.basePath))}}const ts={Id:"id",Description:"description",DisplayName:"displayName",Members:"members"},os={Members:"members"},pe=function(e){return{createGroup:async(t,s={})=>{h("createGroup","group",t);const l="/v1.0/groups",o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"POST",...a,...s},n={},c={};S(r,e),n["Content-Type"]="application/json",O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},r.data=U(t,r,e),{url:P(o),options:r}},listGroups:async(t,s,l,o,a={})=>{const r="/v1.0/groups",n=new URL(r,A);let c;e&&(c=e.baseOptions);const i={method:"GET",...c,...a},d={},p={};S(i,e),t!==void 0&&(p.$search=t),s&&(p.$orderby=Array.from(s).join(b.csv)),l&&(p.$select=Array.from(l).join(b.csv)),o&&(p.$expand=Array.from(o).join(b.csv)),O(n,p);let x=c&&c.headers?c.headers:{};return i.headers={...d,...x,...a.headers},{url:P(n),options:i}}}},k=function(e){const t=pe(e);return{async createGroup(s,l){var n,c;const o=await t.createGroup(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["GroupsApi.createGroup"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async listGroups(s,l,o,a,r){var d,p;const n=await t.listGroups(s,l,o,a,r),c=(e==null?void 0:e.serverIndex)??0,i=(p=(d=v["GroupsApi.listGroups"])==null?void 0:d[c])==null?void 0:p.url;return(x,I)=>u(n,m.axios,V,e)(x,i||I)}}},ls=function(e,t,s){const l=k(e);return{createGroup(o,a){return l.createGroup(o,a).then(r=>r(s,t))},listGroups(o,a,r,n,c){return l.listGroups(o,a,r,n,c).then(i=>i(s,t))}}};class ns extends y{createGroup(t,s){return k(this.configuration).createGroup(t,s).then(l=>l(this.axios,this.basePath))}listGroups(t,s,l,o,a){return k(this.configuration).listGroups(t,s,l,o,a).then(r=>r(this.axios,this.basePath))}}const cs={DisplayName:"displayName",DisplayNameDesc:"displayName desc"},is={Id:"id",Description:"description",DisplayName:"displayName",Mail:"mail",Members:"members"},ds={Members:"members"},he=function(e){return{changeOwnPassword:async(t,s={})=>{h("changeOwnPassword","passwordChange",t);const l="/v1.0/me/changePassword",o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"POST",...a,...s},n={},c={};S(r,e),n["Content-Type"]="application/json",O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},r.data=U(t,r,e),{url:P(o),options:r}}}},X=function(e){const t=he(e);return{async changeOwnPassword(s,l){var n,c;const o=await t.changeOwnPassword(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["MeChangepasswordApi.changeOwnPassword"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)}}},ps=function(e,t,s){const l=X(e);return{changeOwnPassword(o,a){return l.changeOwnPassword(o,a).then(r=>r(s,t))}}};class hs extends y{changeOwnPassword(t,s){return X(this.configuration).changeOwnPassword(t,s).then(l=>l(this.axios,this.basePath))}}const me=function(e){return{getHome:async(t={})=>{const s="/v1.0/me/drive",l=new URL(s,A);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},r={},n={};S(a,e),O(l,n);let c=o&&o.headers?o.headers:{};return a.headers={...r,...c,...t.headers},{url:P(l),options:a}},listSharedByMe:async(t={})=>{const s="/v1beta1/me/drive/sharedByMe",l=new URL(s,A);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},r={},n={};S(a,e),O(l,n);let c=o&&o.headers?o.headers:{};return a.headers={...r,...c,...t.headers},{url:P(l),options:a}},listSharedWithMe:async(t={})=>{const s="/v1beta1/me/drive/sharedWithMe",l=new URL(s,A);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},r={},n={};S(a,e),O(l,n);let c=o&&o.headers?o.headers:{};return a.headers={...r,...c,...t.headers},{url:P(l),options:a}}}},H=function(e){const t=me(e);return{async getHome(s){var r,n;const l=await t.getHome(s),o=(e==null?void 0:e.serverIndex)??0,a=(n=(r=v["MeDriveApi.getHome"])==null?void 0:r[o])==null?void 0:n.url;return(c,i)=>u(l,m.axios,V,e)(c,a||i)},async listSharedByMe(s){var r,n;const l=await t.listSharedByMe(s),o=(e==null?void 0:e.serverIndex)??0,a=(n=(r=v["MeDriveApi.listSharedByMe"])==null?void 0:r[o])==null?void 0:n.url;return(c,i)=>u(l,m.axios,V,e)(c,a||i)},async listSharedWithMe(s){var r,n;const l=await t.listSharedWithMe(s),o=(e==null?void 0:e.serverIndex)??0,a=(n=(r=v["MeDriveApi.listSharedWithMe"])==null?void 0:r[o])==null?void 0:n.url;return(c,i)=>u(l,m.axios,V,e)(c,a||i)}}},ms=function(e,t,s){const l=H(e);return{getHome(o){return l.getHome(o).then(a=>a(s,t))},listSharedByMe(o){return l.listSharedByMe(o).then(a=>a(s,t))},listSharedWithMe(o){return l.listSharedWithMe(o).then(a=>a(s,t))}}};class Vs extends y{getHome(t){return H(this.configuration).getHome(t).then(s=>s(this.axios,this.basePath))}listSharedByMe(t){return H(this.configuration).listSharedByMe(t).then(s=>s(this.axios,this.basePath))}listSharedWithMe(t){return H(this.configuration).listSharedWithMe(t).then(s=>s(this.axios,this.basePath))}}const Ve=function(e){return{homeGetRoot:async(t={})=>{const s="/v1.0/me/drive/root",l=new URL(s,A);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},r={},n={};S(a,e),O(l,n);let c=o&&o.headers?o.headers:{};return a.headers={...r,...c,...t.headers},{url:P(l),options:a}}}},Z=function(e){const t=Ve(e);return{async homeGetRoot(s){var r,n;const l=await t.homeGetRoot(s),o=(e==null?void 0:e.serverIndex)??0,a=(n=(r=v["MeDriveRootApi.homeGetRoot"])==null?void 0:r[o])==null?void 0:n.url;return(c,i)=>u(l,m.axios,V,e)(c,a||i)}}},vs=function(e,t,s){const l=Z(e);return{homeGetRoot(o){return l.homeGetRoot(o).then(a=>a(s,t))}}};class As extends y{homeGetRoot(t){return Z(this.configuration).homeGetRoot(t).then(s=>s(this.axios,this.basePath))}}const ve=function(e){return{homeGetChildren:async(t={})=>{const s="/v1.0/me/drive/root/children",l=new URL(s,A);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},r={},n={};S(a,e),O(l,n);let c=o&&o.headers?o.headers:{};return a.headers={...r,...c,...t.headers},{url:P(l),options:a}}}},g=function(e){const t=ve(e);return{async homeGetChildren(s){var r,n;const l=await t.homeGetChildren(s),o=(e==null?void 0:e.serverIndex)??0,a=(n=(r=v["MeDriveRootChildrenApi.homeGetChildren"])==null?void 0:r[o])==null?void 0:n.url;return(c,i)=>u(l,m.axios,V,e)(c,a||i)}}},Os=function(e,t,s){const l=g(e);return{homeGetChildren(o){return l.homeGetChildren(o).then(a=>a(s,t))}}};class Ps extends y{homeGetChildren(t){return g(this.configuration).homeGetChildren(t).then(s=>s(this.axios,this.basePath))}}const Ae=function(e){return{listMyDrives:async(t,s,l={})=>{const o="/v1.0/me/drives",a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...l},c={},i={};S(n,e),t!==void 0&&(i.$orderby=t),s!==void 0&&(i.$filter=s),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}},listMyDrivesBeta:async(t,s,l={})=>{const o="/v1beta1/me/drives",a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...l},c={},i={};S(n,e),t!==void 0&&(i.$orderby=t),s!==void 0&&(i.$filter=s),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}}}},W=function(e){const t=Ae(e);return{async listMyDrives(s,l,o){var c,i;const a=await t.listMyDrives(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["MeDrivesApi.listMyDrives"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async listMyDrivesBeta(s,l,o){var c,i;const a=await t.listMyDrivesBeta(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["MeDrivesApi.listMyDrivesBeta"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)}}},us=function(e,t,s){const l=W(e);return{listMyDrives(o,a,r){return l.listMyDrives(o,a,r).then(n=>n(s,t))},listMyDrivesBeta(o,a,r){return l.listMyDrivesBeta(o,a,r).then(n=>n(s,t))}}};class Ss extends y{listMyDrives(t,s,l){return W(this.configuration).listMyDrives(t,s,l).then(o=>o(this.axios,this.basePath))}listMyDrivesBeta(t,s,l){return W(this.configuration).listMyDrivesBeta(t,s,l).then(o=>o(this.axios,this.basePath))}}const Oe=function(e){return{getOwnUser:async(t,s={})=>{const l="/v1.0/me",o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};S(r,e),t&&(c.$expand=Array.from(t).join(b.csv)),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}},updateOwnUser:async(t,s={})=>{const l="/v1.0/me",o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"PATCH",...a,...s},n={},c={};S(r,e),n["Content-Type"]="application/json",O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},r.data=U(t,r,e),{url:P(o),options:r}}}},z=function(e){const t=Oe(e);return{async getOwnUser(s,l){var n,c;const o=await t.getOwnUser(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["MeUserApi.getOwnUser"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async updateOwnUser(s,l){var n,c;const o=await t.updateOwnUser(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["MeUserApi.updateOwnUser"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)}}},xs=function(e,t,s){const l=z(e);return{getOwnUser(o,a){return l.getOwnUser(o,a).then(r=>r(s,t))},updateOwnUser(o,a){return l.updateOwnUser(o,a).then(r=>r(s,t))}}};class Us extends y{getOwnUser(t,s){return z(this.configuration).getOwnUser(t,s).then(l=>l(this.axios,this.basePath))}updateOwnUser(t,s){return z(this.configuration).updateOwnUser(t,s).then(l=>l(this.axios,this.basePath))}}const Rs={MemberOf:"memberOf"},Pe=function(e){return{getPermissionRoleDefinition:async(t,s={})=>{h("getPermissionRoleDefinition","roleId",t);const l="/v1beta1/roleManagement/permissions/roleDefinitions/{role-id}".replace("{role-id}",encodeURIComponent(String(t))),o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};S(r,e),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}},listPermissionRoleDefinitions:async(t={})=>{const s="/v1beta1/roleManagement/permissions/roleDefinitions",l=new URL(s,A);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},r={},n={};S(a,e),O(l,n);let c=o&&o.headers?o.headers:{};return a.headers={...r,...c,...t.headers},{url:P(l),options:a}}}},J=function(e){const t=Pe(e);return{async getPermissionRoleDefinition(s,l){var n,c;const o=await t.getPermissionRoleDefinition(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["RoleManagementApi.getPermissionRoleDefinition"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async listPermissionRoleDefinitions(s){var r,n;const l=await t.listPermissionRoleDefinitions(s),o=(e==null?void 0:e.serverIndex)??0,a=(n=(r=v["RoleManagementApi.listPermissionRoleDefinitions"])==null?void 0:r[o])==null?void 0:n.url;return(c,i)=>u(l,m.axios,V,e)(c,a||i)}}},ys=function(e,t,s){const l=J(e);return{getPermissionRoleDefinition(o,a){return l.getPermissionRoleDefinition(o,a).then(r=>r(s,t))},listPermissionRoleDefinitions(o){return l.listPermissionRoleDefinitions(o).then(a=>a(s,t))}}};class bs extends y{getPermissionRoleDefinition(t,s){return J(this.configuration).getPermissionRoleDefinition(t,s).then(l=>l(this.axios,this.basePath))}listPermissionRoleDefinitions(t){return J(this.configuration).listPermissionRoleDefinitions(t).then(s=>s(this.axios,this.basePath))}}const ue=function(e){return{assignTags:async(t,s={})=>{const l="/v1.0/extensions/org.libregraph/tags",o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"PUT",...a,...s},n={},c={};S(r,e),n["Content-Type"]="application/json",O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},r.data=U(t,r,e),{url:P(o),options:r}},getTags:async(t={})=>{const s="/v1.0/extensions/org.libregraph/tags",l=new URL(s,A);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},r={},n={};S(a,e),O(l,n);let c=o&&o.headers?o.headers:{};return a.headers={...r,...c,...t.headers},{url:P(l),options:a}},unassignTags:async(t,s={})=>{const l="/v1.0/extensions/org.libregraph/tags",o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"DELETE",...a,...s},n={},c={};S(r,e),n["Content-Type"]="application/json",O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},r.data=U(t,r,e),{url:P(o),options:r}}}},$=function(e){const t=ue(e);return{async assignTags(s,l){var n,c;const o=await t.assignTags(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["TagsApi.assignTags"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async getTags(s){var r,n;const l=await t.getTags(s),o=(e==null?void 0:e.serverIndex)??0,a=(n=(r=v["TagsApi.getTags"])==null?void 0:r[o])==null?void 0:n.url;return(c,i)=>u(l,m.axios,V,e)(c,a||i)},async unassignTags(s,l){var n,c;const o=await t.unassignTags(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["TagsApi.unassignTags"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)}}},Cs=function(e,t,s){const l=$(e);return{assignTags(o,a){return l.assignTags(o,a).then(r=>r(s,t))},getTags(o){return l.getTags(o).then(a=>a(s,t))},unassignTags(o,a){return l.unassignTags(o,a).then(r=>r(s,t))}}};class Is extends y{assignTags(t,s){return $(this.configuration).assignTags(t,s).then(l=>l(this.axios,this.basePath))}getTags(t){return $(this.configuration).getTags(t).then(s=>s(this.axios,this.basePath))}unassignTags(t,s){return $(this.configuration).unassignTags(t,s).then(l=>l(this.axios,this.basePath))}}const Se=function(e){return{deleteUser:async(t,s,l={})=>{h("deleteUser","userId",t);const o="/v1.0/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"DELETE",...r,...l},c={},i={};S(n,e),s!=null&&(c["If-Match"]=String(s)),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}},exportPersonalData:async(t,s,l={})=>{h("exportPersonalData","userId",t);const o="/v1.0/users/{user-id}/exportPersonalData".replace("{user-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...l},c={},i={};S(n,e),c["Content-Type"]="application/json",O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=U(s,n,e),{url:P(a),options:n}},getUser:async(t,s,l,o={})=>{h("getUser","userId",t);const a="/v1.0/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),r=new URL(a,A);let n;e&&(n=e.baseOptions);const c={method:"GET",...n,...o},i={},d={};S(c,e),s&&(d.$select=Array.from(s).join(b.csv)),l&&(d.$expand=Array.from(l).join(b.csv)),O(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...o.headers},{url:P(r),options:c}},updateUser:async(t,s,l={})=>{h("updateUser","userId",t),h("updateUser","userUpdate",s);const o="/v1.0/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"PATCH",...r,...l},c={},i={};S(n,e),c["Content-Type"]="application/json",O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=U(s,n,e),{url:P(a),options:n}}}},L=function(e){const t=Se(e);return{async deleteUser(s,l,o){var c,i;const a=await t.deleteUser(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["UserApi.deleteUser"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async exportPersonalData(s,l,o){var c,i;const a=await t.exportPersonalData(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["UserApi.exportPersonalData"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async getUser(s,l,o,a){var i,d;const r=await t.getUser(s,l,o,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=v["UserApi.getUser"])==null?void 0:i[n])==null?void 0:d.url;return(p,x)=>u(r,m.axios,V,e)(p,c||x)},async updateUser(s,l,o){var c,i;const a=await t.updateUser(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["UserApi.updateUser"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)}}},Ds=function(e,t,s){const l=L(e);return{deleteUser(o,a,r){return l.deleteUser(o,a,r).then(n=>n(s,t))},exportPersonalData(o,a,r){return l.exportPersonalData(o,a,r).then(n=>n(s,t))},getUser(o,a,r,n){return l.getUser(o,a,r,n).then(c=>c(s,t))},updateUser(o,a,r){return l.updateUser(o,a,r).then(n=>n(s,t))}}};class ws extends y{deleteUser(t,s,l){return L(this.configuration).deleteUser(t,s,l).then(o=>o(this.axios,this.basePath))}exportPersonalData(t,s,l){return L(this.configuration).exportPersonalData(t,s,l).then(o=>o(this.axios,this.basePath))}getUser(t,s,l,o){return L(this.configuration).getUser(t,s,l,o).then(a=>a(this.axios,this.basePath))}updateUser(t,s,l){return L(this.configuration).updateUser(t,s,l).then(o=>o(this.axios,this.basePath))}}const Es={Id:"id",DisplayName:"displayName",Drive:"drive",Drives:"drives",Mail:"mail",MemberOf:"memberOf",OnPremisesSamAccountName:"onPremisesSamAccountName",Surname:"surname"},Ts={Drive:"drive",Drives:"drives",MemberOf:"memberOf",AppRoleAssignments:"appRoleAssignments"},xe=function(e){return{userCreateAppRoleAssignments:async(t,s,l={})=>{h("userCreateAppRoleAssignments","userId",t),h("userCreateAppRoleAssignments","appRoleAssignment",s);const o="/v1.0/users/{user-id}/appRoleAssignments".replace("{user-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...l},c={},i={};S(n,e),c["Content-Type"]="application/json",O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=U(s,n,e),{url:P(a),options:n}},userDeleteAppRoleAssignments:async(t,s,l,o={})=>{h("userDeleteAppRoleAssignments","userId",t),h("userDeleteAppRoleAssignments","appRoleAssignmentId",s);const a="/v1.0/users/{user-id}/appRoleAssignments/{appRoleAssignment-id}".replace("{user-id}",encodeURIComponent(String(t))).replace("{appRoleAssignment-id}",encodeURIComponent(String(s))),r=new URL(a,A);let n;e&&(n=e.baseOptions);const c={method:"DELETE",...n,...o},i={},d={};S(c,e),l!=null&&(i["If-Match"]=String(l)),O(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...o.headers},{url:P(r),options:c}},userListAppRoleAssignments:async(t,s={})=>{h("userListAppRoleAssignments","userId",t);const l="/v1.0/users/{user-id}/appRoleAssignments".replace("{user-id}",encodeURIComponent(String(t))),o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};S(r,e),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}}}},q=function(e){const t=xe(e);return{async userCreateAppRoleAssignments(s,l,o){var c,i;const a=await t.userCreateAppRoleAssignments(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["UserAppRoleAssignmentApi.userCreateAppRoleAssignments"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async userDeleteAppRoleAssignments(s,l,o,a){var i,d;const r=await t.userDeleteAppRoleAssignments(s,l,o,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=v["UserAppRoleAssignmentApi.userDeleteAppRoleAssignments"])==null?void 0:i[n])==null?void 0:d.url;return(p,x)=>u(r,m.axios,V,e)(p,c||x)},async userListAppRoleAssignments(s,l){var n,c;const o=await t.userListAppRoleAssignments(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["UserAppRoleAssignmentApi.userListAppRoleAssignments"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)}}},Fs=function(e,t,s){const l=q(e);return{userCreateAppRoleAssignments(o,a,r){return l.userCreateAppRoleAssignments(o,a,r).then(n=>n(s,t))},userDeleteAppRoleAssignments(o,a,r,n){return l.userDeleteAppRoleAssignments(o,a,r,n).then(c=>c(s,t))},userListAppRoleAssignments(o,a){return l.userListAppRoleAssignments(o,a).then(r=>r(s,t))}}};class Bs extends y{userCreateAppRoleAssignments(t,s,l){return q(this.configuration).userCreateAppRoleAssignments(t,s,l).then(o=>o(this.axios,this.basePath))}userDeleteAppRoleAssignments(t,s,l,o){return q(this.configuration).userDeleteAppRoleAssignments(t,s,l,o).then(a=>a(this.axios,this.basePath))}userListAppRoleAssignments(t,s){return q(this.configuration).userListAppRoleAssignments(t,s).then(l=>l(this.axios,this.basePath))}}const Ue=function(e){return{createUser:async(t,s={})=>{h("createUser","user",t);const l="/v1.0/users",o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"POST",...a,...s},n={},c={};S(r,e),n["Content-Type"]="application/json",O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},r.data=U(t,r,e),{url:P(o),options:r}},listUsers:async(t,s,l,o,a,r={})=>{const n="/v1.0/users",c=new URL(n,A);let i;e&&(i=e.baseOptions);const d={method:"GET",...i,...r},p={},x={};S(d,e),t!==void 0&&(x.$search=t),s!==void 0&&(x.$filter=s),l&&(x.$orderby=Array.from(l).join(b.csv)),o&&(x.$select=Array.from(o).join(b.csv)),a&&(x.$expand=Array.from(a).join(b.csv)),O(c,x);let I=i&&i.headers?i.headers:{};return d.headers={...p,...I,...r.headers},{url:P(c),options:d}}}},_=function(e){const t=Ue(e);return{async createUser(s,l){var n,c;const o=await t.createUser(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["UsersApi.createUser"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async listUsers(s,l,o,a,r,n){var p,x;const c=await t.listUsers(s,l,o,a,r,n),i=(e==null?void 0:e.serverIndex)??0,d=(x=(p=v["UsersApi.listUsers"])==null?void 0:p[i])==null?void 0:x.url;return(I,Re)=>u(c,m.axios,V,e)(I,d||Re)}}},Ms=function(e,t,s){const l=_(e);return{createUser(o,a){return l.createUser(o,a).then(r=>r(s,t))},listUsers(o,a,r,n,c,i){return l.listUsers(o,a,r,n,c,i).then(d=>d(s,t))}}};class Ls extends y{createUser(t,s){return _(this.configuration).createUser(t,s).then(l=>l(this.axios,this.basePath))}listUsers(t,s,l,o,a,r){return _(this.configuration).listUsers(t,s,l,o,a,r).then(n=>n(this.axios,this.basePath))}}const Gs={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"},Hs={Drive:"drive",Drives:"drives",MemberOf:"memberOf",AppRoleAssignments:"appRoleAssignments"};class $s{constructor(t={}){w(this,"apiKey");w(this,"username");w(this,"password");w(this,"accessToken");w(this,"basePath");w(this,"serverIndex");w(this,"baseOptions");w(this,"formDataCtor");this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions=t.baseOptions,this.formDataCtor=t.formDataCtor}isJsonMime(t){const s=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(s.test(t)||t.toLowerCase()==="application/json-patch+json")}}exports.ActivitiesApi=Ee;exports.ActivitiesApiAxiosParamCreator=f;exports.ActivitiesApiFactory=we;exports.ActivitiesApiFp=Y;exports.ApplicationsApi=Fe;exports.ApplicationsApiAxiosParamCreator=ee;exports.ApplicationsApiFactory=Te;exports.ApplicationsApiFp=Q;exports.Configuration=$s;exports.DriveItemApi=Me;exports.DriveItemApiAxiosParamCreator=se;exports.DriveItemApiFactory=Be;exports.DriveItemApiFp=G;exports.DrivesApi=Ge;exports.DrivesApiAxiosParamCreator=re;exports.DrivesApiFactory=Le;exports.DrivesApiFp=M;exports.DrivesGetDrivesApi=He;exports.DrivesGetDrivesApiAxiosParamCreator=ae;exports.DrivesGetDrivesApiFactory=je;exports.DrivesGetDrivesApiFp=N;exports.DrivesPermissionsApi=qe;exports.DrivesPermissionsApiAxiosParamCreator=te;exports.DrivesPermissionsApiFactory=$e;exports.DrivesPermissionsApiFp=T;exports.DrivesRootApi=ke;exports.DrivesRootApiAxiosParamCreator=oe;exports.DrivesRootApiFactory=Ne;exports.DrivesRootApiFp=D;exports.EducationClassApi=Je;exports.EducationClassApiAxiosParamCreator=le;exports.EducationClassApiFactory=ze;exports.EducationClassApiFp=E;exports.EducationClassClassificationEnum=Ie;exports.EducationClassTeachersApi=Ke;exports.EducationClassTeachersApiAxiosParamCreator=ne;exports.EducationClassTeachersApiFactory=_e;exports.EducationClassTeachersApiFp=j;exports.EducationSchoolApi=Xe;exports.EducationSchoolApiAxiosParamCreator=ce;exports.EducationSchoolApiFactory=Ye;exports.EducationSchoolApiFp=C;exports.EducationUserApi=ge;exports.EducationUserApiAxiosParamCreator=ie;exports.EducationUserApiFactory=Ze;exports.EducationUserApiFp=B;exports.GetEducationUserExpandEnum=fe;exports.GetGroupExpandEnum=os;exports.GetGroupSelectEnum=ts;exports.GetOwnUserExpandEnum=Rs;exports.GetUserExpandEnum=Ts;exports.GetUserSelectEnum=Es;exports.GroupApi=as;exports.GroupApiAxiosParamCreator=de;exports.GroupApiFactory=rs;exports.GroupApiFp=F;exports.GroupsApi=ns;exports.GroupsApiAxiosParamCreator=pe;exports.GroupsApiFactory=ls;exports.GroupsApiFp=k;exports.ListEducationUsersExpandEnum=ss;exports.ListEducationUsersOrderbyEnum=es;exports.ListGroupsExpandEnum=ds;exports.ListGroupsOrderbyEnum=cs;exports.ListGroupsSelectEnum=is;exports.ListPermissionsSelectEnum=Qe;exports.ListPermissionsSpaceRootSelectEnum=We;exports.ListUsersExpandEnum=Hs;exports.ListUsersOrderbyEnum=Gs;exports.ListUsersSelectEnum=js;exports.MeChangepasswordApi=hs;exports.MeChangepasswordApiAxiosParamCreator=he;exports.MeChangepasswordApiFactory=ps;exports.MeChangepasswordApiFp=X;exports.MeDriveApi=Vs;exports.MeDriveApiAxiosParamCreator=me;exports.MeDriveApiFactory=ms;exports.MeDriveApiFp=H;exports.MeDriveRootApi=As;exports.MeDriveRootApiAxiosParamCreator=Ve;exports.MeDriveRootApiFactory=vs;exports.MeDriveRootApiFp=Z;exports.MeDriveRootChildrenApi=Ps;exports.MeDriveRootChildrenApiAxiosParamCreator=ve;exports.MeDriveRootChildrenApiFactory=Os;exports.MeDriveRootChildrenApiFp=g;exports.MeDrivesApi=Ss;exports.MeDrivesApiAxiosParamCreator=Ae;exports.MeDrivesApiFactory=us;exports.MeDrivesApiFp=W;exports.MeUserApi=Us;exports.MeUserApiAxiosParamCreator=Oe;exports.MeUserApiFactory=xs;exports.MeUserApiFp=z;exports.RoleManagementApi=bs;exports.RoleManagementApiAxiosParamCreator=Pe;exports.RoleManagementApiFactory=ys;exports.RoleManagementApiFp=J;exports.SharingLinkType=De;exports.TagsApi=Is;exports.TagsApiAxiosParamCreator=ue;exports.TagsApiFactory=Cs;exports.TagsApiFp=$;exports.UserApi=ws;exports.UserApiAxiosParamCreator=Se;exports.UserApiFactory=Ds;exports.UserApiFp=L;exports.UserAppRoleAssignmentApi=Bs;exports.UserAppRoleAssignmentApiAxiosParamCreator=xe;exports.UserAppRoleAssignmentApiFactory=Fs;exports.UserAppRoleAssignmentApiFp=q;exports.UsersApi=Ls;exports.UsersApiAxiosParamCreator=Ue;exports.UsersApiFactory=Ms;exports.UsersApiFp=_;
|
|
1
|
+
"use strict";var ye=Object.defineProperty;var be=(e,t,s)=>t in e?ye(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var w=(e,t,s)=>be(e,typeof t!="symbol"?t+"":t,s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../../index-DkrrhS4K.cjs"),V="".replace(/\/+$/,""),b={csv:","};class y{constructor(t,s=V,l=m.axios){w(this,"configuration");this.basePath=s,this.axios=l,t&&(this.configuration=t,this.basePath=t.basePath??s)}}class Ce extends Error{constructor(t,s){super(s),this.field=t,this.name="RequiredError"}}const v={},A="https://example.com",h=function(e,t,s){if(s==null)throw new Ce(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},S=function(e,t){t&&(t.username||t.password)&&(e.auth={username:t.username,password:t.password})},R=async function(e,t){if(t&&t.accessToken){const s=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+s}};function K(e,t,s=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(l=>K(e,l,s)):Object.keys(t).forEach(l=>K(e,t[l],`${s}${s!==""?".":""}${l}`)):e.has(s)?e.append(s,t):e.set(s,t))}const O=function(e,...t){const s=new URLSearchParams(e.search);K(s,t),e.search=s.toString()},U=function(e,t,s){const l=typeof e!="string";return(l&&s&&s.isJsonMime?s.isJsonMime(t.headers["Content-Type"]):l)?JSON.stringify(e!==void 0?e:{}):e||""},P=function(e){return e.pathname+e.search+e.hash},u=function(e,t,s,l){return(o=t,a=s)=>{const r={...e.options,url:(o.defaults.baseURL?"":(l==null?void 0:l.basePath)??a)+e.url};return o.request(r)}},Ie={Class:"class",Course:"course"},De={Internal:"internal",View:"view",Upload:"upload",Edit:"edit",CreateOnly:"createOnly",BlocksDownload:"blocksDownload"},f=function(e){return{getActivities:async(t,s={})=>{const l="/v1beta1/extensions/org.libregraph/activities",o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};S(r,e),t!==void 0&&(c.kql=t),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}}}},Y=function(e){const t=f(e);return{async getActivities(s,l){var n,c;const o=await t.getActivities(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["ActivitiesApi.getActivities"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)}}},we=function(e,t,s){const l=Y(e);return{getActivities(o,a){return l.getActivities(o,a).then(r=>r(s,t))}}};class Ee extends y{getActivities(t,s){return Y(this.configuration).getActivities(t,s).then(l=>l(this.axios,this.basePath))}}const ee=function(e){return{getApplication:async(t,s={})=>{h("getApplication","applicationId",t);const l="/v1.0/applications/{application-id}".replace("{application-id}",encodeURIComponent(String(t))),o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};S(r,e),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}},listApplications:async(t={})=>{const s="/v1.0/applications",l=new URL(s,A);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},r={},n={};S(a,e),O(l,n);let c=o&&o.headers?o.headers:{};return a.headers={...r,...c,...t.headers},{url:P(l),options:a}}}},Q=function(e){const t=ee(e);return{async getApplication(s,l){var n,c;const o=await t.getApplication(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["ApplicationsApi.getApplication"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async listApplications(s){var r,n;const l=await t.listApplications(s),o=(e==null?void 0:e.serverIndex)??0,a=(n=(r=v["ApplicationsApi.listApplications"])==null?void 0:r[o])==null?void 0:n.url;return(c,i)=>u(l,m.axios,V,e)(c,a||i)}}},Te=function(e,t,s){const l=Q(e);return{getApplication(o,a){return l.getApplication(o,a).then(r=>r(s,t))},listApplications(o){return l.listApplications(o).then(a=>a(s,t))}}};class Fe extends y{getApplication(t,s){return Q(this.configuration).getApplication(t,s).then(l=>l(this.axios,this.basePath))}listApplications(t){return Q(this.configuration).listApplications(t).then(s=>s(this.axios,this.basePath))}}const se=function(e){return{deleteDriveItem:async(t,s,l={})=>{h("deleteDriveItem","driveId",t),h("deleteDriveItem","itemId",s);const o="/v1beta1/drives/{drive-id}/items/{item-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(s))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"DELETE",...r,...l},c={},i={};S(n,e),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}},getDriveItem:async(t,s,l={})=>{h("getDriveItem","driveId",t),h("getDriveItem","itemId",s);const o="/v1beta1/drives/{drive-id}/items/{item-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(s))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...l},c={},i={};S(n,e),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}},updateDriveItem:async(t,s,l,o={})=>{h("updateDriveItem","driveId",t),h("updateDriveItem","itemId",s),h("updateDriveItem","driveItem",l);const a="/v1beta1/drives/{drive-id}/items/{item-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(s))),r=new URL(a,A);let n;e&&(n=e.baseOptions);const c={method:"PATCH",...n,...o},i={},d={};S(c,e),i["Content-Type"]="application/json",O(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...o.headers},c.data=U(l,c,e),{url:P(r),options:c}}}},G=function(e){const t=se(e);return{async deleteDriveItem(s,l,o){var c,i;const a=await t.deleteDriveItem(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["DriveItemApi.deleteDriveItem"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async getDriveItem(s,l,o){var c,i;const a=await t.getDriveItem(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["DriveItemApi.getDriveItem"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async updateDriveItem(s,l,o,a){var i,d;const r=await t.updateDriveItem(s,l,o,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=v["DriveItemApi.updateDriveItem"])==null?void 0:i[n])==null?void 0:d.url;return(p,x)=>u(r,m.axios,V,e)(p,c||x)}}},Be=function(e,t,s){const l=G(e);return{deleteDriveItem(o,a,r){return l.deleteDriveItem(o,a,r).then(n=>n(s,t))},getDriveItem(o,a,r){return l.getDriveItem(o,a,r).then(n=>n(s,t))},updateDriveItem(o,a,r,n){return l.updateDriveItem(o,a,r,n).then(c=>c(s,t))}}};class Me extends y{deleteDriveItem(t,s,l){return G(this.configuration).deleteDriveItem(t,s,l).then(o=>o(this.axios,this.basePath))}getDriveItem(t,s,l){return G(this.configuration).getDriveItem(t,s,l).then(o=>o(this.axios,this.basePath))}updateDriveItem(t,s,l,o){return G(this.configuration).updateDriveItem(t,s,l,o).then(a=>a(this.axios,this.basePath))}}const re=function(e){return{createDrive:async(t,s={})=>{h("createDrive","drive",t);const l="/v1.0/drives",o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"POST",...a,...s},n={},c={};S(r,e),n["Content-Type"]="application/json",O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},r.data=U(t,r,e),{url:P(o),options:r}},deleteDrive:async(t,s,l={})=>{h("deleteDrive","driveId",t);const o="/v1.0/drives/{drive-id}".replace("{drive-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"DELETE",...r,...l},c={},i={};S(n,e),s!=null&&(c["If-Match"]=String(s)),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}},getDrive:async(t,s={})=>{h("getDrive","driveId",t);const l="/v1.0/drives/{drive-id}".replace("{drive-id}",encodeURIComponent(String(t))),o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};S(r,e),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}},updateDrive:async(t,s,l={})=>{h("updateDrive","driveId",t),h("updateDrive","driveUpdate",s);const o="/v1.0/drives/{drive-id}".replace("{drive-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"PATCH",...r,...l},c={},i={};S(n,e),c["Content-Type"]="application/json",O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=U(s,n,e),{url:P(a),options:n}}}},M=function(e){const t=re(e);return{async createDrive(s,l){var n,c;const o=await t.createDrive(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["DrivesApi.createDrive"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async deleteDrive(s,l,o){var c,i;const a=await t.deleteDrive(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["DrivesApi.deleteDrive"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async getDrive(s,l){var n,c;const o=await t.getDrive(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["DrivesApi.getDrive"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async updateDrive(s,l,o){var c,i;const a=await t.updateDrive(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["DrivesApi.updateDrive"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)}}},Le=function(e,t,s){const l=M(e);return{createDrive(o,a){return l.createDrive(o,a).then(r=>r(s,t))},deleteDrive(o,a,r){return l.deleteDrive(o,a,r).then(n=>n(s,t))},getDrive(o,a){return l.getDrive(o,a).then(r=>r(s,t))},updateDrive(o,a,r){return l.updateDrive(o,a,r).then(n=>n(s,t))}}};class Ge extends y{createDrive(t,s){return M(this.configuration).createDrive(t,s).then(l=>l(this.axios,this.basePath))}deleteDrive(t,s,l){return M(this.configuration).deleteDrive(t,s,l).then(o=>o(this.axios,this.basePath))}getDrive(t,s){return M(this.configuration).getDrive(t,s).then(l=>l(this.axios,this.basePath))}updateDrive(t,s,l){return M(this.configuration).updateDrive(t,s,l).then(o=>o(this.axios,this.basePath))}}const ae=function(e){return{listAllDrives:async(t,s,l={})=>{const o="/v1.0/drives",a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...l},c={},i={};S(n,e),t!==void 0&&(i.$orderby=t),s!==void 0&&(i.$filter=s),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}},listAllDrivesBeta:async(t,s,l={})=>{const o="/v1beta1/drives",a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...l},c={},i={};S(n,e),t!==void 0&&(i.$orderby=t),s!==void 0&&(i.$filter=s),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}}}},N=function(e){const t=ae(e);return{async listAllDrives(s,l,o){var c,i;const a=await t.listAllDrives(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["DrivesGetDrivesApi.listAllDrives"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async listAllDrivesBeta(s,l,o){var c,i;const a=await t.listAllDrivesBeta(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["DrivesGetDrivesApi.listAllDrivesBeta"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)}}},je=function(e,t,s){const l=N(e);return{listAllDrives(o,a,r){return l.listAllDrives(o,a,r).then(n=>n(s,t))},listAllDrivesBeta(o,a,r){return l.listAllDrivesBeta(o,a,r).then(n=>n(s,t))}}};class He extends y{listAllDrives(t,s,l){return N(this.configuration).listAllDrives(t,s,l).then(o=>o(this.axios,this.basePath))}listAllDrivesBeta(t,s,l){return N(this.configuration).listAllDrivesBeta(t,s,l).then(o=>o(this.axios,this.basePath))}}const te=function(e){return{createLink:async(t,s,l,o={})=>{h("createLink","driveId",t),h("createLink","itemId",s);const a="/v1beta1/drives/{drive-id}/items/{item-id}/createLink".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(s))),r=new URL(a,A);let n;e&&(n=e.baseOptions);const c={method:"POST",...n,...o},i={},d={};S(c,e),i["Content-Type"]="application/json",O(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...o.headers},c.data=U(l,c,e),{url:P(r),options:c}},deletePermission:async(t,s,l,o={})=>{h("deletePermission","driveId",t),h("deletePermission","itemId",s),h("deletePermission","permId",l);const a="/v1beta1/drives/{drive-id}/items/{item-id}/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(s))).replace("{perm-id}",encodeURIComponent(String(l))),r=new URL(a,A);let n;e&&(n=e.baseOptions);const c={method:"DELETE",...n,...o},i={},d={};S(c,e),O(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...o.headers},{url:P(r),options:c}},getPermission:async(t,s,l,o={})=>{h("getPermission","driveId",t),h("getPermission","itemId",s),h("getPermission","permId",l);const a="/v1beta1/drives/{drive-id}/items/{item-id}/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(s))).replace("{perm-id}",encodeURIComponent(String(l))),r=new URL(a,A);let n;e&&(n=e.baseOptions);const c={method:"GET",...n,...o},i={},d={};S(c,e),O(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...o.headers},{url:P(r),options:c}},invite:async(t,s,l,o={})=>{h("invite","driveId",t),h("invite","itemId",s);const a="/v1beta1/drives/{drive-id}/items/{item-id}/invite".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(s))),r=new URL(a,A);let n;e&&(n=e.baseOptions);const c={method:"POST",...n,...o},i={},d={};S(c,e),i["Content-Type"]="application/json",O(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...o.headers},c.data=U(l,c,e),{url:P(r),options:c}},listPermissions:async(t,s,l,o,a={})=>{h("listPermissions","driveId",t),h("listPermissions","itemId",s);const r="/v1beta1/drives/{drive-id}/items/{item-id}/permissions".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(s))),n=new URL(r,A);let c;e&&(c=e.baseOptions);const i={method:"GET",...c,...a},d={},p={};S(i,e),l!==void 0&&(p.$filter=l),o&&(p.$select=Array.from(o).join(b.csv)),O(n,p);let x=c&&c.headers?c.headers:{};return i.headers={...d,...x,...a.headers},{url:P(n),options:i}},setPermissionPassword:async(t,s,l,o,a={})=>{h("setPermissionPassword","driveId",t),h("setPermissionPassword","itemId",s),h("setPermissionPassword","permId",l),h("setPermissionPassword","sharingLinkPassword",o);const r="/v1beta1/drives/{drive-id}/items/{item-id}/permissions/{perm-id}/setPassword".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(s))).replace("{perm-id}",encodeURIComponent(String(l))),n=new URL(r,A);let c;e&&(c=e.baseOptions);const i={method:"POST",...c,...a},d={},p={};S(i,e),d["Content-Type"]="application/json",O(n,p);let x=c&&c.headers?c.headers:{};return i.headers={...d,...x,...a.headers},i.data=U(o,i,e),{url:P(n),options:i}},updatePermission:async(t,s,l,o,a={})=>{h("updatePermission","driveId",t),h("updatePermission","itemId",s),h("updatePermission","permId",l),h("updatePermission","permission",o);const r="/v1beta1/drives/{drive-id}/items/{item-id}/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(s))).replace("{perm-id}",encodeURIComponent(String(l))),n=new URL(r,A);let c;e&&(c=e.baseOptions);const i={method:"PATCH",...c,...a},d={},p={};S(i,e),d["Content-Type"]="application/json",O(n,p);let x=c&&c.headers?c.headers:{};return i.headers={...d,...x,...a.headers},i.data=U(o,i,e),{url:P(n),options:i}}}},T=function(e){const t=te(e);return{async createLink(s,l,o,a){var i,d;const r=await t.createLink(s,l,o,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=v["DrivesPermissionsApi.createLink"])==null?void 0:i[n])==null?void 0:d.url;return(p,x)=>u(r,m.axios,V,e)(p,c||x)},async deletePermission(s,l,o,a){var i,d;const r=await t.deletePermission(s,l,o,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=v["DrivesPermissionsApi.deletePermission"])==null?void 0:i[n])==null?void 0:d.url;return(p,x)=>u(r,m.axios,V,e)(p,c||x)},async getPermission(s,l,o,a){var i,d;const r=await t.getPermission(s,l,o,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=v["DrivesPermissionsApi.getPermission"])==null?void 0:i[n])==null?void 0:d.url;return(p,x)=>u(r,m.axios,V,e)(p,c||x)},async invite(s,l,o,a){var i,d;const r=await t.invite(s,l,o,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=v["DrivesPermissionsApi.invite"])==null?void 0:i[n])==null?void 0:d.url;return(p,x)=>u(r,m.axios,V,e)(p,c||x)},async listPermissions(s,l,o,a,r){var d,p;const n=await t.listPermissions(s,l,o,a,r),c=(e==null?void 0:e.serverIndex)??0,i=(p=(d=v["DrivesPermissionsApi.listPermissions"])==null?void 0:d[c])==null?void 0:p.url;return(x,I)=>u(n,m.axios,V,e)(x,i||I)},async setPermissionPassword(s,l,o,a,r){var d,p;const n=await t.setPermissionPassword(s,l,o,a,r),c=(e==null?void 0:e.serverIndex)??0,i=(p=(d=v["DrivesPermissionsApi.setPermissionPassword"])==null?void 0:d[c])==null?void 0:p.url;return(x,I)=>u(n,m.axios,V,e)(x,i||I)},async updatePermission(s,l,o,a,r){var d,p;const n=await t.updatePermission(s,l,o,a,r),c=(e==null?void 0:e.serverIndex)??0,i=(p=(d=v["DrivesPermissionsApi.updatePermission"])==null?void 0:d[c])==null?void 0:p.url;return(x,I)=>u(n,m.axios,V,e)(x,i||I)}}},$e=function(e,t,s){const l=T(e);return{createLink(o,a,r,n){return l.createLink(o,a,r,n).then(c=>c(s,t))},deletePermission(o,a,r,n){return l.deletePermission(o,a,r,n).then(c=>c(s,t))},getPermission(o,a,r,n){return l.getPermission(o,a,r,n).then(c=>c(s,t))},invite(o,a,r,n){return l.invite(o,a,r,n).then(c=>c(s,t))},listPermissions(o,a,r,n,c){return l.listPermissions(o,a,r,n,c).then(i=>i(s,t))},setPermissionPassword(o,a,r,n,c){return l.setPermissionPassword(o,a,r,n,c).then(i=>i(s,t))},updatePermission(o,a,r,n,c){return l.updatePermission(o,a,r,n,c).then(i=>i(s,t))}}};class qe extends y{createLink(t,s,l,o){return T(this.configuration).createLink(t,s,l,o).then(a=>a(this.axios,this.basePath))}deletePermission(t,s,l,o){return T(this.configuration).deletePermission(t,s,l,o).then(a=>a(this.axios,this.basePath))}getPermission(t,s,l,o){return T(this.configuration).getPermission(t,s,l,o).then(a=>a(this.axios,this.basePath))}invite(t,s,l,o){return T(this.configuration).invite(t,s,l,o).then(a=>a(this.axios,this.basePath))}listPermissions(t,s,l,o,a){return T(this.configuration).listPermissions(t,s,l,o,a).then(r=>r(this.axios,this.basePath))}setPermissionPassword(t,s,l,o,a){return T(this.configuration).setPermissionPassword(t,s,l,o,a).then(r=>r(this.axios,this.basePath))}updatePermission(t,s,l,o,a){return T(this.configuration).updatePermission(t,s,l,o,a).then(r=>r(this.axios,this.basePath))}}const Qe={LibreGraphPermissionsActionsAllowedValues:"@libre.graph.permissions.actions.allowedValues",LibreGraphPermissionsRolesAllowedValues:"@libre.graph.permissions.roles.allowedValues",Value:"value"},oe=function(e){return{createDriveItem:async(t,s,l={})=>{h("createDriveItem","driveId",t);const o="/v1beta1/drives/{drive-id}/root/children".replace("{drive-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...l},c={},i={};S(n,e),c["Content-Type"]="application/json",O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=U(s,n,e),{url:P(a),options:n}},createLinkSpaceRoot:async(t,s,l={})=>{h("createLinkSpaceRoot","driveId",t);const o="/v1beta1/drives/{drive-id}/root/createLink".replace("{drive-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...l},c={},i={};S(n,e),c["Content-Type"]="application/json",O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=U(s,n,e),{url:P(a),options:n}},deletePermissionSpaceRoot:async(t,s,l={})=>{h("deletePermissionSpaceRoot","driveId",t),h("deletePermissionSpaceRoot","permId",s);const o="/v1beta1/drives/{drive-id}/root/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{perm-id}",encodeURIComponent(String(s))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"DELETE",...r,...l},c={},i={};S(n,e),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}},getPermissionSpaceRoot:async(t,s,l={})=>{h("getPermissionSpaceRoot","driveId",t),h("getPermissionSpaceRoot","permId",s);const o="/v1beta1/drives/{drive-id}/root/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{perm-id}",encodeURIComponent(String(s))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...l},c={},i={};S(n,e),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}},getRoot:async(t,s={})=>{h("getRoot","driveId",t);const l="/v1.0/drives/{drive-id}/root".replace("{drive-id}",encodeURIComponent(String(t))),o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};S(r,e),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}},inviteSpaceRoot:async(t,s,l={})=>{h("inviteSpaceRoot","driveId",t);const o="/v1beta1/drives/{drive-id}/root/invite".replace("{drive-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...l},c={},i={};S(n,e),c["Content-Type"]="application/json",O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=U(s,n,e),{url:P(a),options:n}},listPermissionsSpaceRoot:async(t,s,l,o={})=>{h("listPermissionsSpaceRoot","driveId",t);const a="/v1beta1/drives/{drive-id}/root/permissions".replace("{drive-id}",encodeURIComponent(String(t))),r=new URL(a,A);let n;e&&(n=e.baseOptions);const c={method:"GET",...n,...o},i={},d={};S(c,e),s!==void 0&&(d.$filter=s),l&&(d.$select=Array.from(l).join(b.csv)),O(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...o.headers},{url:P(r),options:c}},setPermissionPasswordSpaceRoot:async(t,s,l,o={})=>{h("setPermissionPasswordSpaceRoot","driveId",t),h("setPermissionPasswordSpaceRoot","permId",s),h("setPermissionPasswordSpaceRoot","sharingLinkPassword",l);const a="/v1beta1/drives/{drive-id}/root/permissions/{perm-id}/setPassword".replace("{drive-id}",encodeURIComponent(String(t))).replace("{perm-id}",encodeURIComponent(String(s))),r=new URL(a,A);let n;e&&(n=e.baseOptions);const c={method:"POST",...n,...o},i={},d={};S(c,e),i["Content-Type"]="application/json",O(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...o.headers},c.data=U(l,c,e),{url:P(r),options:c}},updatePermissionSpaceRoot:async(t,s,l,o={})=>{h("updatePermissionSpaceRoot","driveId",t),h("updatePermissionSpaceRoot","permId",s),h("updatePermissionSpaceRoot","permission",l);const a="/v1beta1/drives/{drive-id}/root/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{perm-id}",encodeURIComponent(String(s))),r=new URL(a,A);let n;e&&(n=e.baseOptions);const c={method:"PATCH",...n,...o},i={},d={};S(c,e),i["Content-Type"]="application/json",O(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...o.headers},c.data=U(l,c,e),{url:P(r),options:c}}}},D=function(e){const t=oe(e);return{async createDriveItem(s,l,o){var c,i;const a=await t.createDriveItem(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["DrivesRootApi.createDriveItem"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async createLinkSpaceRoot(s,l,o){var c,i;const a=await t.createLinkSpaceRoot(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["DrivesRootApi.createLinkSpaceRoot"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async deletePermissionSpaceRoot(s,l,o){var c,i;const a=await t.deletePermissionSpaceRoot(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["DrivesRootApi.deletePermissionSpaceRoot"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async getPermissionSpaceRoot(s,l,o){var c,i;const a=await t.getPermissionSpaceRoot(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["DrivesRootApi.getPermissionSpaceRoot"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async getRoot(s,l){var n,c;const o=await t.getRoot(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["DrivesRootApi.getRoot"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async inviteSpaceRoot(s,l,o){var c,i;const a=await t.inviteSpaceRoot(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["DrivesRootApi.inviteSpaceRoot"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async listPermissionsSpaceRoot(s,l,o,a){var i,d;const r=await t.listPermissionsSpaceRoot(s,l,o,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=v["DrivesRootApi.listPermissionsSpaceRoot"])==null?void 0:i[n])==null?void 0:d.url;return(p,x)=>u(r,m.axios,V,e)(p,c||x)},async setPermissionPasswordSpaceRoot(s,l,o,a){var i,d;const r=await t.setPermissionPasswordSpaceRoot(s,l,o,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=v["DrivesRootApi.setPermissionPasswordSpaceRoot"])==null?void 0:i[n])==null?void 0:d.url;return(p,x)=>u(r,m.axios,V,e)(p,c||x)},async updatePermissionSpaceRoot(s,l,o,a){var i,d;const r=await t.updatePermissionSpaceRoot(s,l,o,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=v["DrivesRootApi.updatePermissionSpaceRoot"])==null?void 0:i[n])==null?void 0:d.url;return(p,x)=>u(r,m.axios,V,e)(p,c||x)}}},Ne=function(e,t,s){const l=D(e);return{createDriveItem(o,a,r){return l.createDriveItem(o,a,r).then(n=>n(s,t))},createLinkSpaceRoot(o,a,r){return l.createLinkSpaceRoot(o,a,r).then(n=>n(s,t))},deletePermissionSpaceRoot(o,a,r){return l.deletePermissionSpaceRoot(o,a,r).then(n=>n(s,t))},getPermissionSpaceRoot(o,a,r){return l.getPermissionSpaceRoot(o,a,r).then(n=>n(s,t))},getRoot(o,a){return l.getRoot(o,a).then(r=>r(s,t))},inviteSpaceRoot(o,a,r){return l.inviteSpaceRoot(o,a,r).then(n=>n(s,t))},listPermissionsSpaceRoot(o,a,r,n){return l.listPermissionsSpaceRoot(o,a,r,n).then(c=>c(s,t))},setPermissionPasswordSpaceRoot(o,a,r,n){return l.setPermissionPasswordSpaceRoot(o,a,r,n).then(c=>c(s,t))},updatePermissionSpaceRoot(o,a,r,n){return l.updatePermissionSpaceRoot(o,a,r,n).then(c=>c(s,t))}}};class ke extends y{createDriveItem(t,s,l){return D(this.configuration).createDriveItem(t,s,l).then(o=>o(this.axios,this.basePath))}createLinkSpaceRoot(t,s,l){return D(this.configuration).createLinkSpaceRoot(t,s,l).then(o=>o(this.axios,this.basePath))}deletePermissionSpaceRoot(t,s,l){return D(this.configuration).deletePermissionSpaceRoot(t,s,l).then(o=>o(this.axios,this.basePath))}getPermissionSpaceRoot(t,s,l){return D(this.configuration).getPermissionSpaceRoot(t,s,l).then(o=>o(this.axios,this.basePath))}getRoot(t,s){return D(this.configuration).getRoot(t,s).then(l=>l(this.axios,this.basePath))}inviteSpaceRoot(t,s,l){return D(this.configuration).inviteSpaceRoot(t,s,l).then(o=>o(this.axios,this.basePath))}listPermissionsSpaceRoot(t,s,l,o){return D(this.configuration).listPermissionsSpaceRoot(t,s,l,o).then(a=>a(this.axios,this.basePath))}setPermissionPasswordSpaceRoot(t,s,l,o){return D(this.configuration).setPermissionPasswordSpaceRoot(t,s,l,o).then(a=>a(this.axios,this.basePath))}updatePermissionSpaceRoot(t,s,l,o){return D(this.configuration).updatePermissionSpaceRoot(t,s,l,o).then(a=>a(this.axios,this.basePath))}}const We={LibreGraphPermissionsActionsAllowedValues:"@libre.graph.permissions.actions.allowedValues",LibreGraphPermissionsRolesAllowedValues:"@libre.graph.permissions.roles.allowedValues",Value:"value"},le=function(e){return{addUserToClass:async(t,s,l={})=>{h("addUserToClass","classId",t),h("addUserToClass","classMemberReference",s);const o="/v1.0/education/classes/{class-id}/members/$ref".replace("{class-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...l},c={},i={};await R(c,e),c["Content-Type"]="application/json",O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=U(s,n,e),{url:P(a),options:n}},createClass:async(t,s={})=>{h("createClass","educationClass",t);const l="/v1.0/education/classes",o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"POST",...a,...s},n={},c={};await R(n,e),n["Content-Type"]="application/json",O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},r.data=U(t,r,e),{url:P(o),options:r}},deleteClass:async(t,s={})=>{h("deleteClass","classId",t);const l="/v1.0/education/classes/{class-id}".replace("{class-id}",encodeURIComponent(String(t))),o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"DELETE",...a,...s},n={},c={};await R(n,e),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}},deleteUserFromClass:async(t,s,l={})=>{h("deleteUserFromClass","classId",t),h("deleteUserFromClass","userId",s);const o="/v1.0/education/classes/{class-id}/members/{user-id}/$ref".replace("{class-id}",encodeURIComponent(String(t))).replace("{user-id}",encodeURIComponent(String(s))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"DELETE",...r,...l},c={},i={};await R(c,e),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}},getClass:async(t,s={})=>{h("getClass","classId",t);const l="/v1.0/education/classes/{class-id}".replace("{class-id}",encodeURIComponent(String(t))),o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};await R(n,e),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}},listClassMembers:async(t,s={})=>{h("listClassMembers","classId",t);const l="/v1.0/education/classes/{class-id}/members".replace("{class-id}",encodeURIComponent(String(t))),o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};await R(n,e),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}},listClasses:async(t={})=>{const s="/v1.0/education/classes",l=new URL(s,A);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},r={},n={};await R(r,e),O(l,n);let c=o&&o.headers?o.headers:{};return a.headers={...r,...c,...t.headers},{url:P(l),options:a}},updateClass:async(t,s,l={})=>{h("updateClass","classId",t),h("updateClass","educationClass",s);const o="/v1.0/education/classes/{class-id}".replace("{class-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"PATCH",...r,...l},c={},i={};await R(c,e),c["Content-Type"]="application/json",O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=U(s,n,e),{url:P(a),options:n}}}},E=function(e){const t=le(e);return{async addUserToClass(s,l,o){var c,i;const a=await t.addUserToClass(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["EducationClassApi.addUserToClass"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async createClass(s,l){var n,c;const o=await t.createClass(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["EducationClassApi.createClass"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async deleteClass(s,l){var n,c;const o=await t.deleteClass(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["EducationClassApi.deleteClass"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async deleteUserFromClass(s,l,o){var c,i;const a=await t.deleteUserFromClass(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["EducationClassApi.deleteUserFromClass"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async getClass(s,l){var n,c;const o=await t.getClass(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["EducationClassApi.getClass"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async listClassMembers(s,l){var n,c;const o=await t.listClassMembers(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["EducationClassApi.listClassMembers"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async listClasses(s){var r,n;const l=await t.listClasses(s),o=(e==null?void 0:e.serverIndex)??0,a=(n=(r=v["EducationClassApi.listClasses"])==null?void 0:r[o])==null?void 0:n.url;return(c,i)=>u(l,m.axios,V,e)(c,a||i)},async updateClass(s,l,o){var c,i;const a=await t.updateClass(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["EducationClassApi.updateClass"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)}}},ze=function(e,t,s){const l=E(e);return{addUserToClass(o,a,r){return l.addUserToClass(o,a,r).then(n=>n(s,t))},createClass(o,a){return l.createClass(o,a).then(r=>r(s,t))},deleteClass(o,a){return l.deleteClass(o,a).then(r=>r(s,t))},deleteUserFromClass(o,a,r){return l.deleteUserFromClass(o,a,r).then(n=>n(s,t))},getClass(o,a){return l.getClass(o,a).then(r=>r(s,t))},listClassMembers(o,a){return l.listClassMembers(o,a).then(r=>r(s,t))},listClasses(o){return l.listClasses(o).then(a=>a(s,t))},updateClass(o,a,r){return l.updateClass(o,a,r).then(n=>n(s,t))}}};class Je extends y{addUserToClass(t,s,l){return E(this.configuration).addUserToClass(t,s,l).then(o=>o(this.axios,this.basePath))}createClass(t,s){return E(this.configuration).createClass(t,s).then(l=>l(this.axios,this.basePath))}deleteClass(t,s){return E(this.configuration).deleteClass(t,s).then(l=>l(this.axios,this.basePath))}deleteUserFromClass(t,s,l){return E(this.configuration).deleteUserFromClass(t,s,l).then(o=>o(this.axios,this.basePath))}getClass(t,s){return E(this.configuration).getClass(t,s).then(l=>l(this.axios,this.basePath))}listClassMembers(t,s){return E(this.configuration).listClassMembers(t,s).then(l=>l(this.axios,this.basePath))}listClasses(t){return E(this.configuration).listClasses(t).then(s=>s(this.axios,this.basePath))}updateClass(t,s,l){return E(this.configuration).updateClass(t,s,l).then(o=>o(this.axios,this.basePath))}}const ne=function(e){return{addTeacherToClass:async(t,s,l={})=>{h("addTeacherToClass","classId",t),h("addTeacherToClass","classTeacherReference",s);const o="/v1.0/education/classes/{class-id}/teachers/$ref".replace("{class-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...l},c={},i={};await R(c,e),c["Content-Type"]="application/json",O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=U(s,n,e),{url:P(a),options:n}},deleteTeacherFromClass:async(t,s,l={})=>{h("deleteTeacherFromClass","classId",t),h("deleteTeacherFromClass","userId",s);const o="/v1.0/education/classes/{class-id}/teachers/{user-id}/$ref".replace("{class-id}",encodeURIComponent(String(t))).replace("{user-id}",encodeURIComponent(String(s))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"DELETE",...r,...l},c={},i={};await R(c,e),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}},getTeachers:async(t,s={})=>{h("getTeachers","classId",t);const l="/v1.0/education/classes/{class-id}/teachers".replace("{class-id}",encodeURIComponent(String(t))),o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};await R(n,e),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}}}},j=function(e){const t=ne(e);return{async addTeacherToClass(s,l,o){var c,i;const a=await t.addTeacherToClass(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["EducationClassTeachersApi.addTeacherToClass"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async deleteTeacherFromClass(s,l,o){var c,i;const a=await t.deleteTeacherFromClass(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["EducationClassTeachersApi.deleteTeacherFromClass"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async getTeachers(s,l){var n,c;const o=await t.getTeachers(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["EducationClassTeachersApi.getTeachers"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)}}},_e=function(e,t,s){const l=j(e);return{addTeacherToClass(o,a,r){return l.addTeacherToClass(o,a,r).then(n=>n(s,t))},deleteTeacherFromClass(o,a,r){return l.deleteTeacherFromClass(o,a,r).then(n=>n(s,t))},getTeachers(o,a){return l.getTeachers(o,a).then(r=>r(s,t))}}};class Ke extends y{addTeacherToClass(t,s,l){return j(this.configuration).addTeacherToClass(t,s,l).then(o=>o(this.axios,this.basePath))}deleteTeacherFromClass(t,s,l){return j(this.configuration).deleteTeacherFromClass(t,s,l).then(o=>o(this.axios,this.basePath))}getTeachers(t,s){return j(this.configuration).getTeachers(t,s).then(l=>l(this.axios,this.basePath))}}const ce=function(e){return{addClassToSchool:async(t,s,l={})=>{h("addClassToSchool","schoolId",t),h("addClassToSchool","classReference",s);const o="/v1.0/education/schools/{school-id}/classes/$ref".replace("{school-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...l},c={},i={};await R(c,e),c["Content-Type"]="application/json",O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=U(s,n,e),{url:P(a),options:n}},addUserToSchool:async(t,s,l={})=>{h("addUserToSchool","schoolId",t),h("addUserToSchool","educationUserReference",s);const o="/v1.0/education/schools/{school-id}/users/$ref".replace("{school-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...l},c={},i={};await R(c,e),c["Content-Type"]="application/json",O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=U(s,n,e),{url:P(a),options:n}},createSchool:async(t,s={})=>{h("createSchool","educationSchool",t);const l="/v1.0/education/schools",o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"POST",...a,...s},n={},c={};await R(n,e),n["Content-Type"]="application/json",O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},r.data=U(t,r,e),{url:P(o),options:r}},deleteClassFromSchool:async(t,s,l={})=>{h("deleteClassFromSchool","schoolId",t),h("deleteClassFromSchool","classId",s);const o="/v1.0/education/schools/{school-id}/classes/{class-id}/$ref".replace("{school-id}",encodeURIComponent(String(t))).replace("{class-id}",encodeURIComponent(String(s))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"DELETE",...r,...l},c={},i={};await R(c,e),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}},deleteSchool:async(t,s={})=>{h("deleteSchool","schoolId",t);const l="/v1.0/education/schools/{school-id}".replace("{school-id}",encodeURIComponent(String(t))),o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"DELETE",...a,...s},n={},c={};await R(n,e),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}},deleteUserFromSchool:async(t,s,l={})=>{h("deleteUserFromSchool","schoolId",t),h("deleteUserFromSchool","userId",s);const o="/v1.0/education/schools/{school-id}/users/{user-id}/$ref".replace("{school-id}",encodeURIComponent(String(t))).replace("{user-id}",encodeURIComponent(String(s))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"DELETE",...r,...l},c={},i={};await R(c,e),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}},getSchool:async(t,s={})=>{h("getSchool","schoolId",t);const l="/v1.0/education/schools/{school-id}".replace("{school-id}",encodeURIComponent(String(t))),o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};await R(n,e),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}},listSchoolClasses:async(t,s={})=>{h("listSchoolClasses","schoolId",t);const l="/v1.0/education/schools/{school-id}/classes".replace("{school-id}",encodeURIComponent(String(t))),o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};await R(n,e),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}},listSchoolUsers:async(t,s={})=>{h("listSchoolUsers","schoolId",t);const l="/v1.0/education/schools/{school-id}/users".replace("{school-id}",encodeURIComponent(String(t))),o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};await R(n,e),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}},listSchools:async(t={})=>{const s="/v1.0/education/schools",l=new URL(s,A);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},r={},n={};await R(r,e),O(l,n);let c=o&&o.headers?o.headers:{};return a.headers={...r,...c,...t.headers},{url:P(l),options:a}},updateSchool:async(t,s,l={})=>{h("updateSchool","schoolId",t),h("updateSchool","educationSchool",s);const o="/v1.0/education/schools/{school-id}".replace("{school-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"PATCH",...r,...l},c={},i={};await R(c,e),c["Content-Type"]="application/json",O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=U(s,n,e),{url:P(a),options:n}}}},C=function(e){const t=ce(e);return{async addClassToSchool(s,l,o){var c,i;const a=await t.addClassToSchool(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["EducationSchoolApi.addClassToSchool"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async addUserToSchool(s,l,o){var c,i;const a=await t.addUserToSchool(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["EducationSchoolApi.addUserToSchool"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async createSchool(s,l){var n,c;const o=await t.createSchool(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["EducationSchoolApi.createSchool"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async deleteClassFromSchool(s,l,o){var c,i;const a=await t.deleteClassFromSchool(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["EducationSchoolApi.deleteClassFromSchool"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async deleteSchool(s,l){var n,c;const o=await t.deleteSchool(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["EducationSchoolApi.deleteSchool"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async deleteUserFromSchool(s,l,o){var c,i;const a=await t.deleteUserFromSchool(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["EducationSchoolApi.deleteUserFromSchool"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async getSchool(s,l){var n,c;const o=await t.getSchool(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["EducationSchoolApi.getSchool"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async listSchoolClasses(s,l){var n,c;const o=await t.listSchoolClasses(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["EducationSchoolApi.listSchoolClasses"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async listSchoolUsers(s,l){var n,c;const o=await t.listSchoolUsers(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["EducationSchoolApi.listSchoolUsers"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async listSchools(s){var r,n;const l=await t.listSchools(s),o=(e==null?void 0:e.serverIndex)??0,a=(n=(r=v["EducationSchoolApi.listSchools"])==null?void 0:r[o])==null?void 0:n.url;return(c,i)=>u(l,m.axios,V,e)(c,a||i)},async updateSchool(s,l,o){var c,i;const a=await t.updateSchool(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["EducationSchoolApi.updateSchool"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)}}},Ye=function(e,t,s){const l=C(e);return{addClassToSchool(o,a,r){return l.addClassToSchool(o,a,r).then(n=>n(s,t))},addUserToSchool(o,a,r){return l.addUserToSchool(o,a,r).then(n=>n(s,t))},createSchool(o,a){return l.createSchool(o,a).then(r=>r(s,t))},deleteClassFromSchool(o,a,r){return l.deleteClassFromSchool(o,a,r).then(n=>n(s,t))},deleteSchool(o,a){return l.deleteSchool(o,a).then(r=>r(s,t))},deleteUserFromSchool(o,a,r){return l.deleteUserFromSchool(o,a,r).then(n=>n(s,t))},getSchool(o,a){return l.getSchool(o,a).then(r=>r(s,t))},listSchoolClasses(o,a){return l.listSchoolClasses(o,a).then(r=>r(s,t))},listSchoolUsers(o,a){return l.listSchoolUsers(o,a).then(r=>r(s,t))},listSchools(o){return l.listSchools(o).then(a=>a(s,t))},updateSchool(o,a,r){return l.updateSchool(o,a,r).then(n=>n(s,t))}}};class Xe extends y{addClassToSchool(t,s,l){return C(this.configuration).addClassToSchool(t,s,l).then(o=>o(this.axios,this.basePath))}addUserToSchool(t,s,l){return C(this.configuration).addUserToSchool(t,s,l).then(o=>o(this.axios,this.basePath))}createSchool(t,s){return C(this.configuration).createSchool(t,s).then(l=>l(this.axios,this.basePath))}deleteClassFromSchool(t,s,l){return C(this.configuration).deleteClassFromSchool(t,s,l).then(o=>o(this.axios,this.basePath))}deleteSchool(t,s){return C(this.configuration).deleteSchool(t,s).then(l=>l(this.axios,this.basePath))}deleteUserFromSchool(t,s,l){return C(this.configuration).deleteUserFromSchool(t,s,l).then(o=>o(this.axios,this.basePath))}getSchool(t,s){return C(this.configuration).getSchool(t,s).then(l=>l(this.axios,this.basePath))}listSchoolClasses(t,s){return C(this.configuration).listSchoolClasses(t,s).then(l=>l(this.axios,this.basePath))}listSchoolUsers(t,s){return C(this.configuration).listSchoolUsers(t,s).then(l=>l(this.axios,this.basePath))}listSchools(t){return C(this.configuration).listSchools(t).then(s=>s(this.axios,this.basePath))}updateSchool(t,s,l){return C(this.configuration).updateSchool(t,s,l).then(o=>o(this.axios,this.basePath))}}const ie=function(e){return{createEducationUser:async(t,s={})=>{h("createEducationUser","educationUser",t);const l="/v1.0/education/users",o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"POST",...a,...s},n={},c={};await R(n,e),n["Content-Type"]="application/json",O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},r.data=U(t,r,e),{url:P(o),options:r}},deleteEducationUser:async(t,s={})=>{h("deleteEducationUser","userId",t);const l="/v1.0/education/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"DELETE",...a,...s},n={},c={};await R(n,e),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}},getEducationUser:async(t,s,l={})=>{h("getEducationUser","userId",t);const o="/v1.0/education/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...l},c={},i={};await R(c,e),s&&(i.$expand=Array.from(s).join(b.csv)),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}},listEducationUsers:async(t,s,l={})=>{const o="/v1.0/education/users",a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...l},c={},i={};await R(c,e),t&&(i.$orderby=Array.from(t).join(b.csv)),s&&(i.$expand=Array.from(s).join(b.csv)),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}},updateEducationUser:async(t,s,l={})=>{h("updateEducationUser","userId",t),h("updateEducationUser","educationUser",s);const o="/v1.0/education/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"PATCH",...r,...l},c={},i={};await R(c,e),c["Content-Type"]="application/json",O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=U(s,n,e),{url:P(a),options:n}}}},B=function(e){const t=ie(e);return{async createEducationUser(s,l){var n,c;const o=await t.createEducationUser(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["EducationUserApi.createEducationUser"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async deleteEducationUser(s,l){var n,c;const o=await t.deleteEducationUser(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["EducationUserApi.deleteEducationUser"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async getEducationUser(s,l,o){var c,i;const a=await t.getEducationUser(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["EducationUserApi.getEducationUser"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async listEducationUsers(s,l,o){var c,i;const a=await t.listEducationUsers(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["EducationUserApi.listEducationUsers"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async updateEducationUser(s,l,o){var c,i;const a=await t.updateEducationUser(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["EducationUserApi.updateEducationUser"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)}}},Ze=function(e,t,s){const l=B(e);return{createEducationUser(o,a){return l.createEducationUser(o,a).then(r=>r(s,t))},deleteEducationUser(o,a){return l.deleteEducationUser(o,a).then(r=>r(s,t))},getEducationUser(o,a,r){return l.getEducationUser(o,a,r).then(n=>n(s,t))},listEducationUsers(o,a,r){return l.listEducationUsers(o,a,r).then(n=>n(s,t))},updateEducationUser(o,a,r){return l.updateEducationUser(o,a,r).then(n=>n(s,t))}}};class ge extends y{createEducationUser(t,s){return B(this.configuration).createEducationUser(t,s).then(l=>l(this.axios,this.basePath))}deleteEducationUser(t,s){return B(this.configuration).deleteEducationUser(t,s).then(l=>l(this.axios,this.basePath))}getEducationUser(t,s,l){return B(this.configuration).getEducationUser(t,s,l).then(o=>o(this.axios,this.basePath))}listEducationUsers(t,s,l){return B(this.configuration).listEducationUsers(t,s,l).then(o=>o(this.axios,this.basePath))}updateEducationUser(t,s,l){return B(this.configuration).updateEducationUser(t,s,l).then(o=>o(this.axios,this.basePath))}}const fe={MemberOf:"memberOf"},es={DisplayName:"displayName",DisplayNameDesc:"displayName desc",Mail:"mail",MailDesc:"mail desc",OnPremisesSamAccountName:"onPremisesSamAccountName",OnPremisesSamAccountNameDesc:"onPremisesSamAccountName desc"},ss={MemberOf:"memberOf"},de=function(e){return{addMember:async(t,s,l={})=>{h("addMember","groupId",t),h("addMember","memberReference",s);const o="/v1.0/groups/{group-id}/members/$ref".replace("{group-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...l},c={},i={};S(n,e),c["Content-Type"]="application/json",O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=U(s,n,e),{url:P(a),options:n}},deleteGroup:async(t,s,l={})=>{h("deleteGroup","groupId",t);const o="/v1.0/groups/{group-id}".replace("{group-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"DELETE",...r,...l},c={},i={};S(n,e),s!=null&&(c["If-Match"]=String(s)),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}},deleteMember:async(t,s,l,o={})=>{h("deleteMember","groupId",t),h("deleteMember","directoryObjectId",s);const a="/v1.0/groups/{group-id}/members/{directory-object-id}/$ref".replace("{group-id}",encodeURIComponent(String(t))).replace("{directory-object-id}",encodeURIComponent(String(s))),r=new URL(a,A);let n;e&&(n=e.baseOptions);const c={method:"DELETE",...n,...o},i={},d={};S(c,e),l!=null&&(i["If-Match"]=String(l)),O(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...o.headers},{url:P(r),options:c}},getGroup:async(t,s,l,o={})=>{h("getGroup","groupId",t);const a="/v1.0/groups/{group-id}".replace("{group-id}",encodeURIComponent(String(t))),r=new URL(a,A);let n;e&&(n=e.baseOptions);const c={method:"GET",...n,...o},i={},d={};S(c,e),s&&(d.$select=Array.from(s).join(b.csv)),l&&(d.$expand=Array.from(l).join(b.csv)),O(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...o.headers},{url:P(r),options:c}},listMembers:async(t,s={})=>{h("listMembers","groupId",t);const l="/v1.0/groups/{group-id}/members".replace("{group-id}",encodeURIComponent(String(t))),o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};S(r,e),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}},updateGroup:async(t,s,l={})=>{h("updateGroup","groupId",t),h("updateGroup","group",s);const o="/v1.0/groups/{group-id}".replace("{group-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"PATCH",...r,...l},c={},i={};S(n,e),c["Content-Type"]="application/json",O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=U(s,n,e),{url:P(a),options:n}}}},F=function(e){const t=de(e);return{async addMember(s,l,o){var c,i;const a=await t.addMember(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["GroupApi.addMember"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async deleteGroup(s,l,o){var c,i;const a=await t.deleteGroup(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["GroupApi.deleteGroup"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async deleteMember(s,l,o,a){var i,d;const r=await t.deleteMember(s,l,o,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=v["GroupApi.deleteMember"])==null?void 0:i[n])==null?void 0:d.url;return(p,x)=>u(r,m.axios,V,e)(p,c||x)},async getGroup(s,l,o,a){var i,d;const r=await t.getGroup(s,l,o,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=v["GroupApi.getGroup"])==null?void 0:i[n])==null?void 0:d.url;return(p,x)=>u(r,m.axios,V,e)(p,c||x)},async listMembers(s,l){var n,c;const o=await t.listMembers(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["GroupApi.listMembers"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async updateGroup(s,l,o){var c,i;const a=await t.updateGroup(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["GroupApi.updateGroup"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)}}},rs=function(e,t,s){const l=F(e);return{addMember(o,a,r){return l.addMember(o,a,r).then(n=>n(s,t))},deleteGroup(o,a,r){return l.deleteGroup(o,a,r).then(n=>n(s,t))},deleteMember(o,a,r,n){return l.deleteMember(o,a,r,n).then(c=>c(s,t))},getGroup(o,a,r,n){return l.getGroup(o,a,r,n).then(c=>c(s,t))},listMembers(o,a){return l.listMembers(o,a).then(r=>r(s,t))},updateGroup(o,a,r){return l.updateGroup(o,a,r).then(n=>n(s,t))}}};class as extends y{addMember(t,s,l){return F(this.configuration).addMember(t,s,l).then(o=>o(this.axios,this.basePath))}deleteGroup(t,s,l){return F(this.configuration).deleteGroup(t,s,l).then(o=>o(this.axios,this.basePath))}deleteMember(t,s,l,o){return F(this.configuration).deleteMember(t,s,l,o).then(a=>a(this.axios,this.basePath))}getGroup(t,s,l,o){return F(this.configuration).getGroup(t,s,l,o).then(a=>a(this.axios,this.basePath))}listMembers(t,s){return F(this.configuration).listMembers(t,s).then(l=>l(this.axios,this.basePath))}updateGroup(t,s,l){return F(this.configuration).updateGroup(t,s,l).then(o=>o(this.axios,this.basePath))}}const ts={Id:"id",Description:"description",DisplayName:"displayName",Members:"members"},os={Members:"members"},pe=function(e){return{createGroup:async(t,s={})=>{h("createGroup","group",t);const l="/v1.0/groups",o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"POST",...a,...s},n={},c={};S(r,e),n["Content-Type"]="application/json",O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},r.data=U(t,r,e),{url:P(o),options:r}},listGroups:async(t,s,l,o,a={})=>{const r="/v1.0/groups",n=new URL(r,A);let c;e&&(c=e.baseOptions);const i={method:"GET",...c,...a},d={},p={};S(i,e),t!==void 0&&(p.$search=t),s&&(p.$orderby=Array.from(s).join(b.csv)),l&&(p.$select=Array.from(l).join(b.csv)),o&&(p.$expand=Array.from(o).join(b.csv)),O(n,p);let x=c&&c.headers?c.headers:{};return i.headers={...d,...x,...a.headers},{url:P(n),options:i}}}},k=function(e){const t=pe(e);return{async createGroup(s,l){var n,c;const o=await t.createGroup(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["GroupsApi.createGroup"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async listGroups(s,l,o,a,r){var d,p;const n=await t.listGroups(s,l,o,a,r),c=(e==null?void 0:e.serverIndex)??0,i=(p=(d=v["GroupsApi.listGroups"])==null?void 0:d[c])==null?void 0:p.url;return(x,I)=>u(n,m.axios,V,e)(x,i||I)}}},ls=function(e,t,s){const l=k(e);return{createGroup(o,a){return l.createGroup(o,a).then(r=>r(s,t))},listGroups(o,a,r,n,c){return l.listGroups(o,a,r,n,c).then(i=>i(s,t))}}};class ns extends y{createGroup(t,s){return k(this.configuration).createGroup(t,s).then(l=>l(this.axios,this.basePath))}listGroups(t,s,l,o,a){return k(this.configuration).listGroups(t,s,l,o,a).then(r=>r(this.axios,this.basePath))}}const cs={DisplayName:"displayName",DisplayNameDesc:"displayName desc"},is={Id:"id",Description:"description",DisplayName:"displayName",Mail:"mail",Members:"members"},ds={Members:"members"},he=function(e){return{changeOwnPassword:async(t,s={})=>{h("changeOwnPassword","passwordChange",t);const l="/v1.0/me/changePassword",o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"POST",...a,...s},n={},c={};S(r,e),n["Content-Type"]="application/json",O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},r.data=U(t,r,e),{url:P(o),options:r}}}},X=function(e){const t=he(e);return{async changeOwnPassword(s,l){var n,c;const o=await t.changeOwnPassword(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["MeChangepasswordApi.changeOwnPassword"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)}}},ps=function(e,t,s){const l=X(e);return{changeOwnPassword(o,a){return l.changeOwnPassword(o,a).then(r=>r(s,t))}}};class hs extends y{changeOwnPassword(t,s){return X(this.configuration).changeOwnPassword(t,s).then(l=>l(this.axios,this.basePath))}}const me=function(e){return{getHome:async(t={})=>{const s="/v1.0/me/drive",l=new URL(s,A);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},r={},n={};S(a,e),O(l,n);let c=o&&o.headers?o.headers:{};return a.headers={...r,...c,...t.headers},{url:P(l),options:a}},listSharedByMe:async(t={})=>{const s="/v1beta1/me/drive/sharedByMe",l=new URL(s,A);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},r={},n={};S(a,e),O(l,n);let c=o&&o.headers?o.headers:{};return a.headers={...r,...c,...t.headers},{url:P(l),options:a}},listSharedWithMe:async(t={})=>{const s="/v1beta1/me/drive/sharedWithMe",l=new URL(s,A);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},r={},n={};S(a,e),O(l,n);let c=o&&o.headers?o.headers:{};return a.headers={...r,...c,...t.headers},{url:P(l),options:a}}}},H=function(e){const t=me(e);return{async getHome(s){var r,n;const l=await t.getHome(s),o=(e==null?void 0:e.serverIndex)??0,a=(n=(r=v["MeDriveApi.getHome"])==null?void 0:r[o])==null?void 0:n.url;return(c,i)=>u(l,m.axios,V,e)(c,a||i)},async listSharedByMe(s){var r,n;const l=await t.listSharedByMe(s),o=(e==null?void 0:e.serverIndex)??0,a=(n=(r=v["MeDriveApi.listSharedByMe"])==null?void 0:r[o])==null?void 0:n.url;return(c,i)=>u(l,m.axios,V,e)(c,a||i)},async listSharedWithMe(s){var r,n;const l=await t.listSharedWithMe(s),o=(e==null?void 0:e.serverIndex)??0,a=(n=(r=v["MeDriveApi.listSharedWithMe"])==null?void 0:r[o])==null?void 0:n.url;return(c,i)=>u(l,m.axios,V,e)(c,a||i)}}},ms=function(e,t,s){const l=H(e);return{getHome(o){return l.getHome(o).then(a=>a(s,t))},listSharedByMe(o){return l.listSharedByMe(o).then(a=>a(s,t))},listSharedWithMe(o){return l.listSharedWithMe(o).then(a=>a(s,t))}}};class Vs extends y{getHome(t){return H(this.configuration).getHome(t).then(s=>s(this.axios,this.basePath))}listSharedByMe(t){return H(this.configuration).listSharedByMe(t).then(s=>s(this.axios,this.basePath))}listSharedWithMe(t){return H(this.configuration).listSharedWithMe(t).then(s=>s(this.axios,this.basePath))}}const Ve=function(e){return{homeGetRoot:async(t={})=>{const s="/v1.0/me/drive/root",l=new URL(s,A);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},r={},n={};S(a,e),O(l,n);let c=o&&o.headers?o.headers:{};return a.headers={...r,...c,...t.headers},{url:P(l),options:a}}}},Z=function(e){const t=Ve(e);return{async homeGetRoot(s){var r,n;const l=await t.homeGetRoot(s),o=(e==null?void 0:e.serverIndex)??0,a=(n=(r=v["MeDriveRootApi.homeGetRoot"])==null?void 0:r[o])==null?void 0:n.url;return(c,i)=>u(l,m.axios,V,e)(c,a||i)}}},vs=function(e,t,s){const l=Z(e);return{homeGetRoot(o){return l.homeGetRoot(o).then(a=>a(s,t))}}};class As extends y{homeGetRoot(t){return Z(this.configuration).homeGetRoot(t).then(s=>s(this.axios,this.basePath))}}const ve=function(e){return{homeGetChildren:async(t={})=>{const s="/v1.0/me/drive/root/children",l=new URL(s,A);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},r={},n={};S(a,e),O(l,n);let c=o&&o.headers?o.headers:{};return a.headers={...r,...c,...t.headers},{url:P(l),options:a}}}},g=function(e){const t=ve(e);return{async homeGetChildren(s){var r,n;const l=await t.homeGetChildren(s),o=(e==null?void 0:e.serverIndex)??0,a=(n=(r=v["MeDriveRootChildrenApi.homeGetChildren"])==null?void 0:r[o])==null?void 0:n.url;return(c,i)=>u(l,m.axios,V,e)(c,a||i)}}},Os=function(e,t,s){const l=g(e);return{homeGetChildren(o){return l.homeGetChildren(o).then(a=>a(s,t))}}};class Ps extends y{homeGetChildren(t){return g(this.configuration).homeGetChildren(t).then(s=>s(this.axios,this.basePath))}}const Ae=function(e){return{listMyDrives:async(t,s,l={})=>{const o="/v1.0/me/drives",a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...l},c={},i={};S(n,e),t!==void 0&&(i.$orderby=t),s!==void 0&&(i.$filter=s),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}},listMyDrivesBeta:async(t,s,l={})=>{const o="/v1beta1/me/drives",a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...l},c={},i={};S(n,e),t!==void 0&&(i.$orderby=t),s!==void 0&&(i.$filter=s),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}}}},W=function(e){const t=Ae(e);return{async listMyDrives(s,l,o){var c,i;const a=await t.listMyDrives(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["MeDrivesApi.listMyDrives"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async listMyDrivesBeta(s,l,o){var c,i;const a=await t.listMyDrivesBeta(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["MeDrivesApi.listMyDrivesBeta"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)}}},us=function(e,t,s){const l=W(e);return{listMyDrives(o,a,r){return l.listMyDrives(o,a,r).then(n=>n(s,t))},listMyDrivesBeta(o,a,r){return l.listMyDrivesBeta(o,a,r).then(n=>n(s,t))}}};class Ss extends y{listMyDrives(t,s,l){return W(this.configuration).listMyDrives(t,s,l).then(o=>o(this.axios,this.basePath))}listMyDrivesBeta(t,s,l){return W(this.configuration).listMyDrivesBeta(t,s,l).then(o=>o(this.axios,this.basePath))}}const Oe=function(e){return{getOwnUser:async(t,s={})=>{const l="/v1.0/me",o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};S(r,e),t&&(c.$expand=Array.from(t).join(b.csv)),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}},updateOwnUser:async(t,s={})=>{const l="/v1.0/me",o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"PATCH",...a,...s},n={},c={};S(r,e),n["Content-Type"]="application/json",O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},r.data=U(t,r,e),{url:P(o),options:r}}}},z=function(e){const t=Oe(e);return{async getOwnUser(s,l){var n,c;const o=await t.getOwnUser(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["MeUserApi.getOwnUser"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async updateOwnUser(s,l){var n,c;const o=await t.updateOwnUser(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["MeUserApi.updateOwnUser"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)}}},xs=function(e,t,s){const l=z(e);return{getOwnUser(o,a){return l.getOwnUser(o,a).then(r=>r(s,t))},updateOwnUser(o,a){return l.updateOwnUser(o,a).then(r=>r(s,t))}}};class Us extends y{getOwnUser(t,s){return z(this.configuration).getOwnUser(t,s).then(l=>l(this.axios,this.basePath))}updateOwnUser(t,s){return z(this.configuration).updateOwnUser(t,s).then(l=>l(this.axios,this.basePath))}}const Rs={MemberOf:"memberOf"},Pe=function(e){return{getPermissionRoleDefinition:async(t,s={})=>{h("getPermissionRoleDefinition","roleId",t);const l="/v1beta1/roleManagement/permissions/roleDefinitions/{role-id}".replace("{role-id}",encodeURIComponent(String(t))),o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};S(r,e),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}},listPermissionRoleDefinitions:async(t={})=>{const s="/v1beta1/roleManagement/permissions/roleDefinitions",l=new URL(s,A);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},r={},n={};S(a,e),O(l,n);let c=o&&o.headers?o.headers:{};return a.headers={...r,...c,...t.headers},{url:P(l),options:a}}}},J=function(e){const t=Pe(e);return{async getPermissionRoleDefinition(s,l){var n,c;const o=await t.getPermissionRoleDefinition(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["RoleManagementApi.getPermissionRoleDefinition"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async listPermissionRoleDefinitions(s){var r,n;const l=await t.listPermissionRoleDefinitions(s),o=(e==null?void 0:e.serverIndex)??0,a=(n=(r=v["RoleManagementApi.listPermissionRoleDefinitions"])==null?void 0:r[o])==null?void 0:n.url;return(c,i)=>u(l,m.axios,V,e)(c,a||i)}}},ys=function(e,t,s){const l=J(e);return{getPermissionRoleDefinition(o,a){return l.getPermissionRoleDefinition(o,a).then(r=>r(s,t))},listPermissionRoleDefinitions(o){return l.listPermissionRoleDefinitions(o).then(a=>a(s,t))}}};class bs extends y{getPermissionRoleDefinition(t,s){return J(this.configuration).getPermissionRoleDefinition(t,s).then(l=>l(this.axios,this.basePath))}listPermissionRoleDefinitions(t){return J(this.configuration).listPermissionRoleDefinitions(t).then(s=>s(this.axios,this.basePath))}}const ue=function(e){return{assignTags:async(t,s={})=>{const l="/v1.0/extensions/org.libregraph/tags",o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"PUT",...a,...s},n={},c={};S(r,e),n["Content-Type"]="application/json",O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},r.data=U(t,r,e),{url:P(o),options:r}},getTags:async(t={})=>{const s="/v1.0/extensions/org.libregraph/tags",l=new URL(s,A);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},r={},n={};S(a,e),O(l,n);let c=o&&o.headers?o.headers:{};return a.headers={...r,...c,...t.headers},{url:P(l),options:a}},unassignTags:async(t,s={})=>{const l="/v1.0/extensions/org.libregraph/tags",o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"DELETE",...a,...s},n={},c={};S(r,e),n["Content-Type"]="application/json",O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},r.data=U(t,r,e),{url:P(o),options:r}}}},$=function(e){const t=ue(e);return{async assignTags(s,l){var n,c;const o=await t.assignTags(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["TagsApi.assignTags"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async getTags(s){var r,n;const l=await t.getTags(s),o=(e==null?void 0:e.serverIndex)??0,a=(n=(r=v["TagsApi.getTags"])==null?void 0:r[o])==null?void 0:n.url;return(c,i)=>u(l,m.axios,V,e)(c,a||i)},async unassignTags(s,l){var n,c;const o=await t.unassignTags(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["TagsApi.unassignTags"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)}}},Cs=function(e,t,s){const l=$(e);return{assignTags(o,a){return l.assignTags(o,a).then(r=>r(s,t))},getTags(o){return l.getTags(o).then(a=>a(s,t))},unassignTags(o,a){return l.unassignTags(o,a).then(r=>r(s,t))}}};class Is extends y{assignTags(t,s){return $(this.configuration).assignTags(t,s).then(l=>l(this.axios,this.basePath))}getTags(t){return $(this.configuration).getTags(t).then(s=>s(this.axios,this.basePath))}unassignTags(t,s){return $(this.configuration).unassignTags(t,s).then(l=>l(this.axios,this.basePath))}}const Se=function(e){return{deleteUser:async(t,s,l={})=>{h("deleteUser","userId",t);const o="/v1.0/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"DELETE",...r,...l},c={},i={};S(n,e),s!=null&&(c["If-Match"]=String(s)),O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:P(a),options:n}},exportPersonalData:async(t,s,l={})=>{h("exportPersonalData","userId",t);const o="/v1.0/users/{user-id}/exportPersonalData".replace("{user-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...l},c={},i={};S(n,e),c["Content-Type"]="application/json",O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=U(s,n,e),{url:P(a),options:n}},getUser:async(t,s,l,o={})=>{h("getUser","userId",t);const a="/v1.0/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),r=new URL(a,A);let n;e&&(n=e.baseOptions);const c={method:"GET",...n,...o},i={},d={};S(c,e),s&&(d.$select=Array.from(s).join(b.csv)),l&&(d.$expand=Array.from(l).join(b.csv)),O(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...o.headers},{url:P(r),options:c}},updateUser:async(t,s,l={})=>{h("updateUser","userId",t),h("updateUser","userUpdate",s);const o="/v1.0/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"PATCH",...r,...l},c={},i={};S(n,e),c["Content-Type"]="application/json",O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=U(s,n,e),{url:P(a),options:n}}}},L=function(e){const t=Se(e);return{async deleteUser(s,l,o){var c,i;const a=await t.deleteUser(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["UserApi.deleteUser"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async exportPersonalData(s,l,o){var c,i;const a=await t.exportPersonalData(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["UserApi.exportPersonalData"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async getUser(s,l,o,a){var i,d;const r=await t.getUser(s,l,o,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=v["UserApi.getUser"])==null?void 0:i[n])==null?void 0:d.url;return(p,x)=>u(r,m.axios,V,e)(p,c||x)},async updateUser(s,l,o){var c,i;const a=await t.updateUser(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["UserApi.updateUser"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)}}},Ds=function(e,t,s){const l=L(e);return{deleteUser(o,a,r){return l.deleteUser(o,a,r).then(n=>n(s,t))},exportPersonalData(o,a,r){return l.exportPersonalData(o,a,r).then(n=>n(s,t))},getUser(o,a,r,n){return l.getUser(o,a,r,n).then(c=>c(s,t))},updateUser(o,a,r){return l.updateUser(o,a,r).then(n=>n(s,t))}}};class ws extends y{deleteUser(t,s,l){return L(this.configuration).deleteUser(t,s,l).then(o=>o(this.axios,this.basePath))}exportPersonalData(t,s,l){return L(this.configuration).exportPersonalData(t,s,l).then(o=>o(this.axios,this.basePath))}getUser(t,s,l,o){return L(this.configuration).getUser(t,s,l,o).then(a=>a(this.axios,this.basePath))}updateUser(t,s,l){return L(this.configuration).updateUser(t,s,l).then(o=>o(this.axios,this.basePath))}}const Es={Id:"id",DisplayName:"displayName",Drive:"drive",Drives:"drives",Mail:"mail",MemberOf:"memberOf",OnPremisesSamAccountName:"onPremisesSamAccountName",Surname:"surname"},Ts={Drive:"drive",Drives:"drives",MemberOf:"memberOf",AppRoleAssignments:"appRoleAssignments"},xe=function(e){return{userCreateAppRoleAssignments:async(t,s,l={})=>{h("userCreateAppRoleAssignments","userId",t),h("userCreateAppRoleAssignments","appRoleAssignment",s);const o="/v1.0/users/{user-id}/appRoleAssignments".replace("{user-id}",encodeURIComponent(String(t))),a=new URL(o,A);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...l},c={},i={};S(n,e),c["Content-Type"]="application/json",O(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=U(s,n,e),{url:P(a),options:n}},userDeleteAppRoleAssignments:async(t,s,l,o={})=>{h("userDeleteAppRoleAssignments","userId",t),h("userDeleteAppRoleAssignments","appRoleAssignmentId",s);const a="/v1.0/users/{user-id}/appRoleAssignments/{appRoleAssignment-id}".replace("{user-id}",encodeURIComponent(String(t))).replace("{appRoleAssignment-id}",encodeURIComponent(String(s))),r=new URL(a,A);let n;e&&(n=e.baseOptions);const c={method:"DELETE",...n,...o},i={},d={};S(c,e),l!=null&&(i["If-Match"]=String(l)),O(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...o.headers},{url:P(r),options:c}},userListAppRoleAssignments:async(t,s={})=>{h("userListAppRoleAssignments","userId",t);const l="/v1.0/users/{user-id}/appRoleAssignments".replace("{user-id}",encodeURIComponent(String(t))),o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};S(r,e),O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:P(o),options:r}}}},q=function(e){const t=xe(e);return{async userCreateAppRoleAssignments(s,l,o){var c,i;const a=await t.userCreateAppRoleAssignments(s,l,o),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=v["UserAppRoleAssignmentApi.userCreateAppRoleAssignments"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,V,e)(d,n||p)},async userDeleteAppRoleAssignments(s,l,o,a){var i,d;const r=await t.userDeleteAppRoleAssignments(s,l,o,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=v["UserAppRoleAssignmentApi.userDeleteAppRoleAssignments"])==null?void 0:i[n])==null?void 0:d.url;return(p,x)=>u(r,m.axios,V,e)(p,c||x)},async userListAppRoleAssignments(s,l){var n,c;const o=await t.userListAppRoleAssignments(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["UserAppRoleAssignmentApi.userListAppRoleAssignments"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)}}},Fs=function(e,t,s){const l=q(e);return{userCreateAppRoleAssignments(o,a,r){return l.userCreateAppRoleAssignments(o,a,r).then(n=>n(s,t))},userDeleteAppRoleAssignments(o,a,r,n){return l.userDeleteAppRoleAssignments(o,a,r,n).then(c=>c(s,t))},userListAppRoleAssignments(o,a){return l.userListAppRoleAssignments(o,a).then(r=>r(s,t))}}};class Bs extends y{userCreateAppRoleAssignments(t,s,l){return q(this.configuration).userCreateAppRoleAssignments(t,s,l).then(o=>o(this.axios,this.basePath))}userDeleteAppRoleAssignments(t,s,l,o){return q(this.configuration).userDeleteAppRoleAssignments(t,s,l,o).then(a=>a(this.axios,this.basePath))}userListAppRoleAssignments(t,s){return q(this.configuration).userListAppRoleAssignments(t,s).then(l=>l(this.axios,this.basePath))}}const Ue=function(e){return{createUser:async(t,s={})=>{h("createUser","user",t);const l="/v1.0/users",o=new URL(l,A);let a;e&&(a=e.baseOptions);const r={method:"POST",...a,...s},n={},c={};S(r,e),n["Content-Type"]="application/json",O(o,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},r.data=U(t,r,e),{url:P(o),options:r}},listUsers:async(t,s,l,o,a,r={})=>{const n="/v1.0/users",c=new URL(n,A);let i;e&&(i=e.baseOptions);const d={method:"GET",...i,...r},p={},x={};S(d,e),t!==void 0&&(x.$search=t),s!==void 0&&(x.$filter=s),l&&(x.$orderby=Array.from(l).join(b.csv)),o&&(x.$select=Array.from(o).join(b.csv)),a&&(x.$expand=Array.from(a).join(b.csv)),O(c,x);let I=i&&i.headers?i.headers:{};return d.headers={...p,...I,...r.headers},{url:P(c),options:d}}}},_=function(e){const t=Ue(e);return{async createUser(s,l){var n,c;const o=await t.createUser(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=v["UsersApi.createUser"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(o,m.axios,V,e)(i,r||d)},async listUsers(s,l,o,a,r,n){var p,x;const c=await t.listUsers(s,l,o,a,r,n),i=(e==null?void 0:e.serverIndex)??0,d=(x=(p=v["UsersApi.listUsers"])==null?void 0:p[i])==null?void 0:x.url;return(I,Re)=>u(c,m.axios,V,e)(I,d||Re)}}},Ms=function(e,t,s){const l=_(e);return{createUser(o,a){return l.createUser(o,a).then(r=>r(s,t))},listUsers(o,a,r,n,c,i){return l.listUsers(o,a,r,n,c,i).then(d=>d(s,t))}}};class Ls extends y{createUser(t,s){return _(this.configuration).createUser(t,s).then(l=>l(this.axios,this.basePath))}listUsers(t,s,l,o,a,r){return _(this.configuration).listUsers(t,s,l,o,a,r).then(n=>n(this.axios,this.basePath))}}const Gs={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"},Hs={Drive:"drive",Drives:"drives",MemberOf:"memberOf",AppRoleAssignments:"appRoleAssignments"};class $s{constructor(t={}){w(this,"apiKey");w(this,"username");w(this,"password");w(this,"accessToken");w(this,"basePath");w(this,"serverIndex");w(this,"baseOptions");w(this,"formDataCtor");this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions=t.baseOptions,this.formDataCtor=t.formDataCtor}isJsonMime(t){const s=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(s.test(t)||t.toLowerCase()==="application/json-patch+json")}}exports.ActivitiesApi=Ee;exports.ActivitiesApiAxiosParamCreator=f;exports.ActivitiesApiFactory=we;exports.ActivitiesApiFp=Y;exports.ApplicationsApi=Fe;exports.ApplicationsApiAxiosParamCreator=ee;exports.ApplicationsApiFactory=Te;exports.ApplicationsApiFp=Q;exports.Configuration=$s;exports.DriveItemApi=Me;exports.DriveItemApiAxiosParamCreator=se;exports.DriveItemApiFactory=Be;exports.DriveItemApiFp=G;exports.DrivesApi=Ge;exports.DrivesApiAxiosParamCreator=re;exports.DrivesApiFactory=Le;exports.DrivesApiFp=M;exports.DrivesGetDrivesApi=He;exports.DrivesGetDrivesApiAxiosParamCreator=ae;exports.DrivesGetDrivesApiFactory=je;exports.DrivesGetDrivesApiFp=N;exports.DrivesPermissionsApi=qe;exports.DrivesPermissionsApiAxiosParamCreator=te;exports.DrivesPermissionsApiFactory=$e;exports.DrivesPermissionsApiFp=T;exports.DrivesRootApi=ke;exports.DrivesRootApiAxiosParamCreator=oe;exports.DrivesRootApiFactory=Ne;exports.DrivesRootApiFp=D;exports.EducationClassApi=Je;exports.EducationClassApiAxiosParamCreator=le;exports.EducationClassApiFactory=ze;exports.EducationClassApiFp=E;exports.EducationClassClassificationEnum=Ie;exports.EducationClassTeachersApi=Ke;exports.EducationClassTeachersApiAxiosParamCreator=ne;exports.EducationClassTeachersApiFactory=_e;exports.EducationClassTeachersApiFp=j;exports.EducationSchoolApi=Xe;exports.EducationSchoolApiAxiosParamCreator=ce;exports.EducationSchoolApiFactory=Ye;exports.EducationSchoolApiFp=C;exports.EducationUserApi=ge;exports.EducationUserApiAxiosParamCreator=ie;exports.EducationUserApiFactory=Ze;exports.EducationUserApiFp=B;exports.GetEducationUserExpandEnum=fe;exports.GetGroupExpandEnum=os;exports.GetGroupSelectEnum=ts;exports.GetOwnUserExpandEnum=Rs;exports.GetUserExpandEnum=Ts;exports.GetUserSelectEnum=Es;exports.GroupApi=as;exports.GroupApiAxiosParamCreator=de;exports.GroupApiFactory=rs;exports.GroupApiFp=F;exports.GroupsApi=ns;exports.GroupsApiAxiosParamCreator=pe;exports.GroupsApiFactory=ls;exports.GroupsApiFp=k;exports.ListEducationUsersExpandEnum=ss;exports.ListEducationUsersOrderbyEnum=es;exports.ListGroupsExpandEnum=ds;exports.ListGroupsOrderbyEnum=cs;exports.ListGroupsSelectEnum=is;exports.ListPermissionsSelectEnum=Qe;exports.ListPermissionsSpaceRootSelectEnum=We;exports.ListUsersExpandEnum=Hs;exports.ListUsersOrderbyEnum=Gs;exports.ListUsersSelectEnum=js;exports.MeChangepasswordApi=hs;exports.MeChangepasswordApiAxiosParamCreator=he;exports.MeChangepasswordApiFactory=ps;exports.MeChangepasswordApiFp=X;exports.MeDriveApi=Vs;exports.MeDriveApiAxiosParamCreator=me;exports.MeDriveApiFactory=ms;exports.MeDriveApiFp=H;exports.MeDriveRootApi=As;exports.MeDriveRootApiAxiosParamCreator=Ve;exports.MeDriveRootApiFactory=vs;exports.MeDriveRootApiFp=Z;exports.MeDriveRootChildrenApi=Ps;exports.MeDriveRootChildrenApiAxiosParamCreator=ve;exports.MeDriveRootChildrenApiFactory=Os;exports.MeDriveRootChildrenApiFp=g;exports.MeDrivesApi=Ss;exports.MeDrivesApiAxiosParamCreator=Ae;exports.MeDrivesApiFactory=us;exports.MeDrivesApiFp=W;exports.MeUserApi=Us;exports.MeUserApiAxiosParamCreator=Oe;exports.MeUserApiFactory=xs;exports.MeUserApiFp=z;exports.RoleManagementApi=bs;exports.RoleManagementApiAxiosParamCreator=Pe;exports.RoleManagementApiFactory=ys;exports.RoleManagementApiFp=J;exports.SharingLinkType=De;exports.TagsApi=Is;exports.TagsApiAxiosParamCreator=ue;exports.TagsApiFactory=Cs;exports.TagsApiFp=$;exports.UserApi=ws;exports.UserApiAxiosParamCreator=Se;exports.UserApiFactory=Ds;exports.UserApiFp=L;exports.UserAppRoleAssignmentApi=Bs;exports.UserAppRoleAssignmentApiAxiosParamCreator=xe;exports.UserAppRoleAssignmentApiFactory=Fs;exports.UserAppRoleAssignmentApiFp=q;exports.UsersApi=Ls;exports.UsersApiAxiosParamCreator=Ue;exports.UsersApiFactory=Ms;exports.UsersApiFp=_;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var ee = Object.defineProperty;
|
|
2
2
|
var se = (e, t, s) => t in e ? ee(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
|
|
3
3
|
var w = (e, t, s) => se(e, typeof t != "symbol" ? t + "" : t, s);
|
|
4
|
-
import { a as m } from "../../index-
|
|
4
|
+
import { a as m } from "../../index-DaH-cMzr.js";
|
|
5
5
|
const V = "".replace(/\/+$/, ""), x = {
|
|
6
6
|
csv: ","
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./graph/generated.cjs");const e=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./graph/generated.cjs");const e=require("../index-Do5mZY6J.cjs");exports.graph=e.graph;
|
package/dist/web-client/graph.js
CHANGED