@opencloud-eu/web-client 4.0.0 → 4.2.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-Bp-DjU7_.cjs +1 -0
- package/dist/{functions-DnZZKUk0.js → functions-DK4H9weO.js} +290 -284
- package/dist/{index-BIL0cW_q.js → index-2zDycGQj.js} +136 -118
- package/dist/index-B21Ll1ii.cjs +1 -0
- package/dist/{index-CiqYiARd.js → index-BMRpHyp4.js} +28 -30
- package/dist/{index-bmR3iLuG.js → index-BZHg3VRz.js} +11 -8
- package/dist/{index-YVg9jNP5.cjs → index-CAp89HBO.cjs} +1 -1
- package/dist/{index-DAa_DzDf.cjs → index-w54SVXTg.cjs} +5 -5
- package/dist/src/graph/drives/types.d.ts +0 -3
- package/dist/src/helpers/resource/types.d.ts +0 -1
- package/dist/src/helpers/share/types.d.ts +1 -1
- package/dist/src/helpers/space/functions.d.ts +2 -1
- package/dist/src/ocs/capabilities.d.ts +1 -0
- package/dist/src/webdav/getFileUrl.d.ts +2 -0
- package/dist/src/webdav/types.d.ts +1 -1
- 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 -1
- 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 +25 -24
- package/package.json +1 -1
- package/dist/functions-DP8s29Wg.cjs +0 -1
- package/dist/index-CcmRJ1qB.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../../index-DAa_DzDf.cjs"),m="https://localhost:9200/graph".replace(/\/+$/,""),b={csv:","};class y{constructor(t,e=m,o=h.axios){this.basePath=e,this.axios=o,t&&(this.configuration=t,this.basePath=t.basePath??e)}configuration}class we extends Error{constructor(t,e){super(e),this.field=t,this.name="RequiredError"}}const u={},P="https://example.com",p=function(n,t,e){if(e==null)throw new we(t,`Required parameter ${t} was null or undefined when calling ${n}.`)},U=function(n,t){t&&(t.username||t.password)&&(n.auth={username:t.username,password:t.password})},R=async function(n,t){if(t&&t.accessToken){const e=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;n.Authorization="Bearer "+e}};function _(n,t,e=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(o=>_(n,o,e)):Object.keys(t).forEach(o=>_(n,t[o],`${e}${e!==""?".":""}${o}`)):n.has(e)?n.append(e,t):n.set(e,t))}const V=function(n,...t){const e=new URLSearchParams(n.search);_(e,t),n.search=e.toString()},S=function(n,t,e){const o=typeof n!="string";return(o&&e&&e.isJsonMime?e.isJsonMime(t.headers["Content-Type"]):o)?JSON.stringify(n!==void 0?n:{}):n||""},v=function(n){return n.pathname+n.search+n.hash},A=function(n,t,e,o){return(a=t,s=e)=>{const r={...n.options,url:(a.defaults.baseURL?"":o?.basePath??s)+n.url};return a.request(r)}},Ie={Class:"class",Course:"course"},De={Internal:"internal",View:"view",Upload:"upload",Edit:"edit",CreateOnly:"createOnly",BlocksDownload:"blocksDownload"},ee=function(n){return{getActivities:async(t,e={})=>{const o="/v1beta1/extensions/org.libregraph/activities",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),t!==void 0&&(i.kql=t),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}}}},K=function(n){const t=ee(n);return{async getActivities(e,o){const a=await t.getActivities(e,o),s=n?.serverIndex??0,r=u["ActivitiesApi.getActivities"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},Ee=function(n,t,e){const o=K(n);return{getActivities(a,s){return o.getActivities(a,s).then(r=>r(e,t))}}};class Te extends y{getActivities(t,e){return K(this.configuration).getActivities(t,e).then(o=>o(this.axios,this.basePath))}}const se=function(n){return{getApplication:async(t,e={})=>{p("getApplication","applicationId",t);const o="/v1.0/applications/{application-id}".replace("{application-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},listApplications:async(t={})=>{const e="/v1.0/applications",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};U(s,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}}}},q=function(n){const t=se(n);return{async getApplication(e,o){const a=await t.getApplication(e,o),s=n?.serverIndex??0,r=u["ApplicationsApi.getApplication"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listApplications(e){const o=await t.listApplications(e),a=n?.serverIndex??0,s=u["ApplicationsApi.listApplications"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)}}},Fe=function(n,t,e){const o=q(n);return{getApplication(a,s){return o.getApplication(a,s).then(r=>r(e,t))},listApplications(a){return o.listApplications(a).then(s=>s(e,t))}}};class Be extends y{getApplication(t,e){return q(this.configuration).getApplication(t,e).then(o=>o(this.axios,this.basePath))}listApplications(t){return q(this.configuration).listApplications(t).then(e=>e(this.axios,this.basePath))}}const re=function(n){return{deleteDriveItem:async(t,e,o={})=>{p("deleteDriveItem","driveId",t),p("deleteDriveItem","itemId",e);const a="/v1beta1/drives/{drive-id}/items/{item-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};U(l,n),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},getDriveItem:async(t,e,o={})=>{p("getDriveItem","driveId",t),p("getDriveItem","itemId",e);const a="/v1beta1/drives/{drive-id}/items/{item-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"GET",...r,...o},i={},c={};U(l,n),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},updateDriveItem:async(t,e,o,a={})=>{p("updateDriveItem","driveId",t),p("updateDriveItem","itemId",e),p("updateDriveItem","driveItem",o);const s="/v1beta1/drives/{drive-id}/items/{item-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"PATCH",...l,...a},c={},d={};U(i,n),c["Content-Type"]="application/json",V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},i.data=S(o,i,n),{url:v(r),options:i}}}},G=function(n){const t=re(n);return{async deleteDriveItem(e,o,a){const s=await t.deleteDriveItem(e,o,a),r=n?.serverIndex??0,l=u["DriveItemApi.deleteDriveItem"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async getDriveItem(e,o,a){const s=await t.getDriveItem(e,o,a),r=n?.serverIndex??0,l=u["DriveItemApi.getDriveItem"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async updateDriveItem(e,o,a,s){const r=await t.updateDriveItem(e,o,a,s),l=n?.serverIndex??0,i=u["DriveItemApi.updateDriveItem"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)}}},Me=function(n,t,e){const o=G(n);return{deleteDriveItem(a,s,r){return o.deleteDriveItem(a,s,r).then(l=>l(e,t))},getDriveItem(a,s,r){return o.getDriveItem(a,s,r).then(l=>l(e,t))},updateDriveItem(a,s,r,l){return o.updateDriveItem(a,s,r,l).then(i=>i(e,t))}}};class Le extends y{deleteDriveItem(t,e,o){return G(this.configuration).deleteDriveItem(t,e,o).then(a=>a(this.axios,this.basePath))}getDriveItem(t,e,o){return G(this.configuration).getDriveItem(t,e,o).then(a=>a(this.axios,this.basePath))}updateDriveItem(t,e,o,a){return G(this.configuration).updateDriveItem(t,e,o,a).then(s=>s(this.axios,this.basePath))}}const ae=function(n){return{createDrive:async(t,e={})=>{p("createDrive","drive",t);const o="/v1.0/drives",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"POST",...s,...e},l={},i={};U(r,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}},deleteDrive:async(t,e,o={})=>{p("deleteDrive","driveId",t);const a="/v1.0/drives/{drive-id}".replace("{drive-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};U(l,n),e!=null&&(i["If-Match"]=String(e)),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},getDrive:async(t,e,o={})=>{p("getDrive","driveId",t);const a="/v1.0/drives/{drive-id}".replace("{drive-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"GET",...r,...o},i={},c={};U(l,n),e&&(c.$select=Array.from(e).join(b.csv)),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},updateDrive:async(t,e,o={})=>{p("updateDrive","driveId",t),p("updateDrive","driveUpdate",e);const a="/v1.0/drives/{drive-id}".replace("{drive-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"PATCH",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}}}},B=function(n){const t=ae(n);return{async createDrive(e,o){const a=await t.createDrive(e,o),s=n?.serverIndex??0,r=u["DrivesApi.createDrive"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async deleteDrive(e,o,a){const s=await t.deleteDrive(e,o,a),r=n?.serverIndex??0,l=u["DrivesApi.deleteDrive"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async getDrive(e,o,a){const s=await t.getDrive(e,o,a),r=n?.serverIndex??0,l=u["DrivesApi.getDrive"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async updateDrive(e,o,a){const s=await t.updateDrive(e,o,a),r=n?.serverIndex??0,l=u["DrivesApi.updateDrive"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)}}},Ge=function(n,t,e){const o=B(n);return{createDrive(a,s){return o.createDrive(a,s).then(r=>r(e,t))},deleteDrive(a,s,r){return o.deleteDrive(a,s,r).then(l=>l(e,t))},getDrive(a,s,r){return o.getDrive(a,s,r).then(l=>l(e,t))},updateDrive(a,s,r){return o.updateDrive(a,s,r).then(l=>l(e,t))}}};class je extends y{createDrive(t,e){return B(this.configuration).createDrive(t,e).then(o=>o(this.axios,this.basePath))}deleteDrive(t,e,o){return B(this.configuration).deleteDrive(t,e,o).then(a=>a(this.axios,this.basePath))}getDrive(t,e,o){return B(this.configuration).getDrive(t,e,o).then(a=>a(this.axios,this.basePath))}updateDrive(t,e,o){return B(this.configuration).updateDrive(t,e,o).then(a=>a(this.axios,this.basePath))}}const ge={LibreGraphHasTrashedItems:"@libre.graph.hasTrashedItems"},te=function(n){return{listAllDrives:async(t,e,o={})=>{const a="/v1.0/drives",s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"GET",...r,...o},i={},c={};U(l,n),t!==void 0&&(c.$orderby=t),e!==void 0&&(c.$filter=e),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},listAllDrivesBeta:async(t,e,o,a,s={})=>{const r="/v1beta1/drives",l=new URL(r,P);let i;n&&(i=n.baseOptions);const c={method:"GET",...i,...s},d={},O={};U(c,n),t!==void 0&&(O.$orderby=t),e!==void 0&&(O.$filter=e),o!==void 0&&(O.$expand=o),a&&(O.$select=Array.from(a).join(b.csv)),V(l,O);let x=i&&i.headers?i.headers:{};return c.headers={...d,...x,...s.headers},{url:v(l),options:c}}}},Q=function(n){const t=te(n);return{async listAllDrives(e,o,a){const s=await t.listAllDrives(e,o,a),r=n?.serverIndex??0,l=u["DrivesGetDrivesApi.listAllDrives"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async listAllDrivesBeta(e,o,a,s,r){const l=await t.listAllDrivesBeta(e,o,a,s,r),i=n?.serverIndex??0,c=u["DrivesGetDrivesApi.listAllDrivesBeta"]?.[i]?.url;return(d,O)=>A(l,h.axios,m,n)(d,c||O)}}},He=function(n,t,e){const o=Q(n);return{listAllDrives(a,s,r){return o.listAllDrives(a,s,r).then(l=>l(e,t))},listAllDrivesBeta(a,s,r,l,i){return o.listAllDrivesBeta(a,s,r,l,i).then(c=>c(e,t))}}};class $e extends y{listAllDrives(t,e,o){return Q(this.configuration).listAllDrives(t,e,o).then(a=>a(this.axios,this.basePath))}listAllDrivesBeta(t,e,o,a,s){return Q(this.configuration).listAllDrivesBeta(t,e,o,a,s).then(r=>r(this.axios,this.basePath))}}const qe={LibreGraphHasTrashedItems:"@libre.graph.hasTrashedItems"},oe=function(n){return{createLink:async(t,e,o,a={})=>{p("createLink","driveId",t),p("createLink","itemId",e);const s="/v1beta1/drives/{drive-id}/items/{item-id}/createLink".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"POST",...l,...a},c={},d={};U(i,n),c["Content-Type"]="application/json",V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},i.data=S(o,i,n),{url:v(r),options:i}},deletePermission:async(t,e,o,a={})=>{p("deletePermission","driveId",t),p("deletePermission","itemId",e),p("deletePermission","permId",o);const s="/v1beta1/drives/{drive-id}/items/{item-id}/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))).replace("{perm-id}",encodeURIComponent(String(o))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"DELETE",...l,...a},c={},d={};U(i,n),V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},{url:v(r),options:i}},getPermission:async(t,e,o,a={})=>{p("getPermission","driveId",t),p("getPermission","itemId",e),p("getPermission","permId",o);const s="/v1beta1/drives/{drive-id}/items/{item-id}/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))).replace("{perm-id}",encodeURIComponent(String(o))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"GET",...l,...a},c={},d={};U(i,n),V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},{url:v(r),options:i}},invite:async(t,e,o,a={})=>{p("invite","driveId",t),p("invite","itemId",e);const s="/v1beta1/drives/{drive-id}/items/{item-id}/invite".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"POST",...l,...a},c={},d={};U(i,n),c["Content-Type"]="application/json",V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},i.data=S(o,i,n),{url:v(r),options:i}},listPermissions:async(t,e,o,a,s,r,l={})=>{p("listPermissions","driveId",t),p("listPermissions","itemId",e);const i="/v1beta1/drives/{drive-id}/items/{item-id}/permissions".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))),c=new URL(i,P);let d;n&&(d=n.baseOptions);const O={method:"GET",...d,...l},x={},w={};U(O,n),o!==void 0&&(w.$filter=o),a&&(w.$select=Array.from(a).join(b.csv)),s!==void 0&&(w.$count=s),r!==void 0&&(w.$top=r),V(c,w);let Ce=d&&d.headers?d.headers:{};return O.headers={...x,...Ce,...l.headers},{url:v(c),options:O}},setPermissionPassword:async(t,e,o,a,s={})=>{p("setPermissionPassword","driveId",t),p("setPermissionPassword","itemId",e),p("setPermissionPassword","permId",o),p("setPermissionPassword","sharingLinkPassword",a);const r="/v1beta1/drives/{drive-id}/items/{item-id}/permissions/{perm-id}/setPassword".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))).replace("{perm-id}",encodeURIComponent(String(o))),l=new URL(r,P);let i;n&&(i=n.baseOptions);const c={method:"POST",...i,...s},d={},O={};U(c,n),d["Content-Type"]="application/json",V(l,O);let x=i&&i.headers?i.headers:{};return c.headers={...d,...x,...s.headers},c.data=S(a,c,n),{url:v(l),options:c}},updatePermission:async(t,e,o,a,s={})=>{p("updatePermission","driveId",t),p("updatePermission","itemId",e),p("updatePermission","permId",o),p("updatePermission","permission",a);const r="/v1beta1/drives/{drive-id}/items/{item-id}/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))).replace("{perm-id}",encodeURIComponent(String(o))),l=new URL(r,P);let i;n&&(i=n.baseOptions);const c={method:"PATCH",...i,...s},d={},O={};U(c,n),d["Content-Type"]="application/json",V(l,O);let x=i&&i.headers?i.headers:{};return c.headers={...d,...x,...s.headers},c.data=S(a,c,n),{url:v(l),options:c}}}},E=function(n){const t=oe(n);return{async createLink(e,o,a,s){const r=await t.createLink(e,o,a,s),l=n?.serverIndex??0,i=u["DrivesPermissionsApi.createLink"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async deletePermission(e,o,a,s){const r=await t.deletePermission(e,o,a,s),l=n?.serverIndex??0,i=u["DrivesPermissionsApi.deletePermission"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async getPermission(e,o,a,s){const r=await t.getPermission(e,o,a,s),l=n?.serverIndex??0,i=u["DrivesPermissionsApi.getPermission"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async invite(e,o,a,s){const r=await t.invite(e,o,a,s),l=n?.serverIndex??0,i=u["DrivesPermissionsApi.invite"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async listPermissions(e,o,a,s,r,l,i){const c=await t.listPermissions(e,o,a,s,r,l,i),d=n?.serverIndex??0,O=u["DrivesPermissionsApi.listPermissions"]?.[d]?.url;return(x,w)=>A(c,h.axios,m,n)(x,O||w)},async setPermissionPassword(e,o,a,s,r){const l=await t.setPermissionPassword(e,o,a,s,r),i=n?.serverIndex??0,c=u["DrivesPermissionsApi.setPermissionPassword"]?.[i]?.url;return(d,O)=>A(l,h.axios,m,n)(d,c||O)},async updatePermission(e,o,a,s,r){const l=await t.updatePermission(e,o,a,s,r),i=n?.serverIndex??0,c=u["DrivesPermissionsApi.updatePermission"]?.[i]?.url;return(d,O)=>A(l,h.axios,m,n)(d,c||O)}}},Qe=function(n,t,e){const o=E(n);return{createLink(a,s,r,l){return o.createLink(a,s,r,l).then(i=>i(e,t))},deletePermission(a,s,r,l){return o.deletePermission(a,s,r,l).then(i=>i(e,t))},getPermission(a,s,r,l){return o.getPermission(a,s,r,l).then(i=>i(e,t))},invite(a,s,r,l){return o.invite(a,s,r,l).then(i=>i(e,t))},listPermissions(a,s,r,l,i,c,d){return o.listPermissions(a,s,r,l,i,c,d).then(O=>O(e,t))},setPermissionPassword(a,s,r,l,i){return o.setPermissionPassword(a,s,r,l,i).then(c=>c(e,t))},updatePermission(a,s,r,l,i){return o.updatePermission(a,s,r,l,i).then(c=>c(e,t))}}};class Ne extends y{createLink(t,e,o,a){return E(this.configuration).createLink(t,e,o,a).then(s=>s(this.axios,this.basePath))}deletePermission(t,e,o,a){return E(this.configuration).deletePermission(t,e,o,a).then(s=>s(this.axios,this.basePath))}getPermission(t,e,o,a){return E(this.configuration).getPermission(t,e,o,a).then(s=>s(this.axios,this.basePath))}invite(t,e,o,a){return E(this.configuration).invite(t,e,o,a).then(s=>s(this.axios,this.basePath))}listPermissions(t,e,o,a,s,r,l){return E(this.configuration).listPermissions(t,e,o,a,s,r,l).then(i=>i(this.axios,this.basePath))}setPermissionPassword(t,e,o,a,s){return E(this.configuration).setPermissionPassword(t,e,o,a,s).then(r=>r(this.axios,this.basePath))}updatePermission(t,e,o,a,s){return E(this.configuration).updatePermission(t,e,o,a,s).then(r=>r(this.axios,this.basePath))}}const ke={LibreGraphPermissionsActionsAllowedValues:"@libre.graph.permissions.actions.allowedValues",LibreGraphPermissionsRolesAllowedValues:"@libre.graph.permissions.roles.allowedValues",Value:"value"},ne=function(n){return{createDriveItem:async(t,e,o={})=>{p("createDriveItem","driveId",t);const a="/v1beta1/drives/{drive-id}/root/children".replace("{drive-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},createLinkSpaceRoot:async(t,e,o={})=>{p("createLinkSpaceRoot","driveId",t);const a="/v1beta1/drives/{drive-id}/root/createLink".replace("{drive-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},deletePermissionSpaceRoot:async(t,e,o={})=>{p("deletePermissionSpaceRoot","driveId",t),p("deletePermissionSpaceRoot","permId",e);const a="/v1beta1/drives/{drive-id}/root/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{perm-id}",encodeURIComponent(String(e))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};U(l,n),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},getPermissionSpaceRoot:async(t,e,o={})=>{p("getPermissionSpaceRoot","driveId",t),p("getPermissionSpaceRoot","permId",e);const a="/v1beta1/drives/{drive-id}/root/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{perm-id}",encodeURIComponent(String(e))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"GET",...r,...o},i={},c={};U(l,n),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},getRoot:async(t,e={})=>{p("getRoot","driveId",t);const o="/v1.0/drives/{drive-id}/root".replace("{drive-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},inviteSpaceRoot:async(t,e,o={})=>{p("inviteSpaceRoot","driveId",t);const a="/v1beta1/drives/{drive-id}/root/invite".replace("{drive-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},listPermissionsSpaceRoot:async(t,e,o,a,s,r={})=>{p("listPermissionsSpaceRoot","driveId",t);const l="/v1beta1/drives/{drive-id}/root/permissions".replace("{drive-id}",encodeURIComponent(String(t))),i=new URL(l,P);let c;n&&(c=n.baseOptions);const d={method:"GET",...c,...r},O={},x={};U(d,n),e!==void 0&&(x.$filter=e),o&&(x.$select=Array.from(o).join(b.csv)),a!==void 0&&(x.$count=a),s!==void 0&&(x.$top=s),V(i,x);let w=c&&c.headers?c.headers:{};return d.headers={...O,...w,...r.headers},{url:v(i),options:d}},setPermissionPasswordSpaceRoot:async(t,e,o,a={})=>{p("setPermissionPasswordSpaceRoot","driveId",t),p("setPermissionPasswordSpaceRoot","permId",e),p("setPermissionPasswordSpaceRoot","sharingLinkPassword",o);const s="/v1beta1/drives/{drive-id}/root/permissions/{perm-id}/setPassword".replace("{drive-id}",encodeURIComponent(String(t))).replace("{perm-id}",encodeURIComponent(String(e))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"POST",...l,...a},c={},d={};U(i,n),c["Content-Type"]="application/json",V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},i.data=S(o,i,n),{url:v(r),options:i}},updatePermissionSpaceRoot:async(t,e,o,a={})=>{p("updatePermissionSpaceRoot","driveId",t),p("updatePermissionSpaceRoot","permId",e),p("updatePermissionSpaceRoot","permission",o);const s="/v1beta1/drives/{drive-id}/root/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{perm-id}",encodeURIComponent(String(e))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"PATCH",...l,...a},c={},d={};U(i,n),c["Content-Type"]="application/json",V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},i.data=S(o,i,n),{url:v(r),options:i}}}},I=function(n){const t=ne(n);return{async createDriveItem(e,o,a){const s=await t.createDriveItem(e,o,a),r=n?.serverIndex??0,l=u["DrivesRootApi.createDriveItem"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async createLinkSpaceRoot(e,o,a){const s=await t.createLinkSpaceRoot(e,o,a),r=n?.serverIndex??0,l=u["DrivesRootApi.createLinkSpaceRoot"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async deletePermissionSpaceRoot(e,o,a){const s=await t.deletePermissionSpaceRoot(e,o,a),r=n?.serverIndex??0,l=u["DrivesRootApi.deletePermissionSpaceRoot"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async getPermissionSpaceRoot(e,o,a){const s=await t.getPermissionSpaceRoot(e,o,a),r=n?.serverIndex??0,l=u["DrivesRootApi.getPermissionSpaceRoot"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async getRoot(e,o){const a=await t.getRoot(e,o),s=n?.serverIndex??0,r=u["DrivesRootApi.getRoot"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async inviteSpaceRoot(e,o,a){const s=await t.inviteSpaceRoot(e,o,a),r=n?.serverIndex??0,l=u["DrivesRootApi.inviteSpaceRoot"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async listPermissionsSpaceRoot(e,o,a,s,r,l){const i=await t.listPermissionsSpaceRoot(e,o,a,s,r,l),c=n?.serverIndex??0,d=u["DrivesRootApi.listPermissionsSpaceRoot"]?.[c]?.url;return(O,x)=>A(i,h.axios,m,n)(O,d||x)},async setPermissionPasswordSpaceRoot(e,o,a,s){const r=await t.setPermissionPasswordSpaceRoot(e,o,a,s),l=n?.serverIndex??0,i=u["DrivesRootApi.setPermissionPasswordSpaceRoot"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async updatePermissionSpaceRoot(e,o,a,s){const r=await t.updatePermissionSpaceRoot(e,o,a,s),l=n?.serverIndex??0,i=u["DrivesRootApi.updatePermissionSpaceRoot"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)}}},We=function(n,t,e){const o=I(n);return{createDriveItem(a,s,r){return o.createDriveItem(a,s,r).then(l=>l(e,t))},createLinkSpaceRoot(a,s,r){return o.createLinkSpaceRoot(a,s,r).then(l=>l(e,t))},deletePermissionSpaceRoot(a,s,r){return o.deletePermissionSpaceRoot(a,s,r).then(l=>l(e,t))},getPermissionSpaceRoot(a,s,r){return o.getPermissionSpaceRoot(a,s,r).then(l=>l(e,t))},getRoot(a,s){return o.getRoot(a,s).then(r=>r(e,t))},inviteSpaceRoot(a,s,r){return o.inviteSpaceRoot(a,s,r).then(l=>l(e,t))},listPermissionsSpaceRoot(a,s,r,l,i,c){return o.listPermissionsSpaceRoot(a,s,r,l,i,c).then(d=>d(e,t))},setPermissionPasswordSpaceRoot(a,s,r,l){return o.setPermissionPasswordSpaceRoot(a,s,r,l).then(i=>i(e,t))},updatePermissionSpaceRoot(a,s,r,l){return o.updatePermissionSpaceRoot(a,s,r,l).then(i=>i(e,t))}}};class ze extends y{createDriveItem(t,e,o){return I(this.configuration).createDriveItem(t,e,o).then(a=>a(this.axios,this.basePath))}createLinkSpaceRoot(t,e,o){return I(this.configuration).createLinkSpaceRoot(t,e,o).then(a=>a(this.axios,this.basePath))}deletePermissionSpaceRoot(t,e,o){return I(this.configuration).deletePermissionSpaceRoot(t,e,o).then(a=>a(this.axios,this.basePath))}getPermissionSpaceRoot(t,e,o){return I(this.configuration).getPermissionSpaceRoot(t,e,o).then(a=>a(this.axios,this.basePath))}getRoot(t,e){return I(this.configuration).getRoot(t,e).then(o=>o(this.axios,this.basePath))}inviteSpaceRoot(t,e,o){return I(this.configuration).inviteSpaceRoot(t,e,o).then(a=>a(this.axios,this.basePath))}listPermissionsSpaceRoot(t,e,o,a,s,r){return I(this.configuration).listPermissionsSpaceRoot(t,e,o,a,s,r).then(l=>l(this.axios,this.basePath))}setPermissionPasswordSpaceRoot(t,e,o,a){return I(this.configuration).setPermissionPasswordSpaceRoot(t,e,o,a).then(s=>s(this.axios,this.basePath))}updatePermissionSpaceRoot(t,e,o,a){return I(this.configuration).updatePermissionSpaceRoot(t,e,o,a).then(s=>s(this.axios,this.basePath))}}const Je={LibreGraphPermissionsActionsAllowedValues:"@libre.graph.permissions.actions.allowedValues",LibreGraphPermissionsRolesAllowedValues:"@libre.graph.permissions.roles.allowedValues",Value:"value"},le=function(n){return{addUserToClass:async(t,e,o={})=>{p("addUserToClass","classId",t),p("addUserToClass","classMemberReference",e);const a="/v1.0/education/classes/{class-id}/members/$ref".replace("{class-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};await R(i,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},createClass:async(t,e={})=>{p("createClass","educationClass",t);const o="/v1.0/education/classes",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"POST",...s,...e},l={},i={};await R(l,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}},deleteClass:async(t,e={})=>{p("deleteClass","classId",t);const o="/v1.0/education/classes/{class-id}".replace("{class-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"DELETE",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},deleteUserFromClass:async(t,e,o={})=>{p("deleteUserFromClass","classId",t),p("deleteUserFromClass","userId",e);const a="/v1.0/education/classes/{class-id}/members/{user-id}/$ref".replace("{class-id}",encodeURIComponent(String(t))).replace("{user-id}",encodeURIComponent(String(e))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};await R(i,n),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},getClass:async(t,e={})=>{p("getClass","classId",t);const o="/v1.0/education/classes/{class-id}".replace("{class-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},listClassMembers:async(t,e={})=>{p("listClassMembers","classId",t);const o="/v1.0/education/classes/{class-id}/members".replace("{class-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},listClasses:async(t={})=>{const e="/v1.0/education/classes",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};await R(r,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}},updateClass:async(t,e,o={})=>{p("updateClass","classId",t),p("updateClass","educationClass",e);const a="/v1.0/education/classes/{class-id}".replace("{class-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"PATCH",...r,...o},i={},c={};await R(i,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}}}},D=function(n){const t=le(n);return{async addUserToClass(e,o,a){const s=await t.addUserToClass(e,o,a),r=n?.serverIndex??0,l=u["EducationClassApi.addUserToClass"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async createClass(e,o){const a=await t.createClass(e,o),s=n?.serverIndex??0,r=u["EducationClassApi.createClass"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async deleteClass(e,o){const a=await t.deleteClass(e,o),s=n?.serverIndex??0,r=u["EducationClassApi.deleteClass"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async deleteUserFromClass(e,o,a){const s=await t.deleteUserFromClass(e,o,a),r=n?.serverIndex??0,l=u["EducationClassApi.deleteUserFromClass"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async getClass(e,o){const a=await t.getClass(e,o),s=n?.serverIndex??0,r=u["EducationClassApi.getClass"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listClassMembers(e,o){const a=await t.listClassMembers(e,o),s=n?.serverIndex??0,r=u["EducationClassApi.listClassMembers"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listClasses(e){const o=await t.listClasses(e),a=n?.serverIndex??0,s=u["EducationClassApi.listClasses"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)},async updateClass(e,o,a){const s=await t.updateClass(e,o,a),r=n?.serverIndex??0,l=u["EducationClassApi.updateClass"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)}}},_e=function(n,t,e){const o=D(n);return{addUserToClass(a,s,r){return o.addUserToClass(a,s,r).then(l=>l(e,t))},createClass(a,s){return o.createClass(a,s).then(r=>r(e,t))},deleteClass(a,s){return o.deleteClass(a,s).then(r=>r(e,t))},deleteUserFromClass(a,s,r){return o.deleteUserFromClass(a,s,r).then(l=>l(e,t))},getClass(a,s){return o.getClass(a,s).then(r=>r(e,t))},listClassMembers(a,s){return o.listClassMembers(a,s).then(r=>r(e,t))},listClasses(a){return o.listClasses(a).then(s=>s(e,t))},updateClass(a,s,r){return o.updateClass(a,s,r).then(l=>l(e,t))}}};class Ke extends y{addUserToClass(t,e,o){return D(this.configuration).addUserToClass(t,e,o).then(a=>a(this.axios,this.basePath))}createClass(t,e){return D(this.configuration).createClass(t,e).then(o=>o(this.axios,this.basePath))}deleteClass(t,e){return D(this.configuration).deleteClass(t,e).then(o=>o(this.axios,this.basePath))}deleteUserFromClass(t,e,o){return D(this.configuration).deleteUserFromClass(t,e,o).then(a=>a(this.axios,this.basePath))}getClass(t,e){return D(this.configuration).getClass(t,e).then(o=>o(this.axios,this.basePath))}listClassMembers(t,e){return D(this.configuration).listClassMembers(t,e).then(o=>o(this.axios,this.basePath))}listClasses(t){return D(this.configuration).listClasses(t).then(e=>e(this.axios,this.basePath))}updateClass(t,e,o){return D(this.configuration).updateClass(t,e,o).then(a=>a(this.axios,this.basePath))}}const ie=function(n){return{addTeacherToClass:async(t,e,o={})=>{p("addTeacherToClass","classId",t),p("addTeacherToClass","classTeacherReference",e);const a="/v1.0/education/classes/{class-id}/teachers/$ref".replace("{class-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};await R(i,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},deleteTeacherFromClass:async(t,e,o={})=>{p("deleteTeacherFromClass","classId",t),p("deleteTeacherFromClass","userId",e);const a="/v1.0/education/classes/{class-id}/teachers/{user-id}/$ref".replace("{class-id}",encodeURIComponent(String(t))).replace("{user-id}",encodeURIComponent(String(e))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};await R(i,n),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},getTeachers:async(t,e={})=>{p("getTeachers","classId",t);const o="/v1.0/education/classes/{class-id}/teachers".replace("{class-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}}}},j=function(n){const t=ie(n);return{async addTeacherToClass(e,o,a){const s=await t.addTeacherToClass(e,o,a),r=n?.serverIndex??0,l=u["EducationClassTeachersApi.addTeacherToClass"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async deleteTeacherFromClass(e,o,a){const s=await t.deleteTeacherFromClass(e,o,a),r=n?.serverIndex??0,l=u["EducationClassTeachersApi.deleteTeacherFromClass"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async getTeachers(e,o){const a=await t.getTeachers(e,o),s=n?.serverIndex??0,r=u["EducationClassTeachersApi.getTeachers"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},Ye=function(n,t,e){const o=j(n);return{addTeacherToClass(a,s,r){return o.addTeacherToClass(a,s,r).then(l=>l(e,t))},deleteTeacherFromClass(a,s,r){return o.deleteTeacherFromClass(a,s,r).then(l=>l(e,t))},getTeachers(a,s){return o.getTeachers(a,s).then(r=>r(e,t))}}};class Xe extends y{addTeacherToClass(t,e,o){return j(this.configuration).addTeacherToClass(t,e,o).then(a=>a(this.axios,this.basePath))}deleteTeacherFromClass(t,e,o){return j(this.configuration).deleteTeacherFromClass(t,e,o).then(a=>a(this.axios,this.basePath))}getTeachers(t,e){return j(this.configuration).getTeachers(t,e).then(o=>o(this.axios,this.basePath))}}const ce=function(n){return{addClassToSchool:async(t,e,o={})=>{p("addClassToSchool","schoolId",t),p("addClassToSchool","classReference",e);const a="/v1.0/education/schools/{school-id}/classes/$ref".replace("{school-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};await R(i,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},addUserToSchool:async(t,e,o={})=>{p("addUserToSchool","schoolId",t),p("addUserToSchool","educationUserReference",e);const a="/v1.0/education/schools/{school-id}/users/$ref".replace("{school-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};await R(i,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},createSchool:async(t,e={})=>{p("createSchool","educationSchool",t);const o="/v1.0/education/schools",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"POST",...s,...e},l={},i={};await R(l,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}},deleteClassFromSchool:async(t,e,o={})=>{p("deleteClassFromSchool","schoolId",t),p("deleteClassFromSchool","classId",e);const a="/v1.0/education/schools/{school-id}/classes/{class-id}/$ref".replace("{school-id}",encodeURIComponent(String(t))).replace("{class-id}",encodeURIComponent(String(e))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};await R(i,n),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},deleteSchool:async(t,e={})=>{p("deleteSchool","schoolId",t);const o="/v1.0/education/schools/{school-id}".replace("{school-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"DELETE",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},deleteUserFromSchool:async(t,e,o={})=>{p("deleteUserFromSchool","schoolId",t),p("deleteUserFromSchool","userId",e);const a="/v1.0/education/schools/{school-id}/users/{user-id}/$ref".replace("{school-id}",encodeURIComponent(String(t))).replace("{user-id}",encodeURIComponent(String(e))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};await R(i,n),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},getSchool:async(t,e={})=>{p("getSchool","schoolId",t);const o="/v1.0/education/schools/{school-id}".replace("{school-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},listSchoolClasses:async(t,e={})=>{p("listSchoolClasses","schoolId",t);const o="/v1.0/education/schools/{school-id}/classes".replace("{school-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},listSchoolUsers:async(t,e={})=>{p("listSchoolUsers","schoolId",t);const o="/v1.0/education/schools/{school-id}/users".replace("{school-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},listSchools:async(t={})=>{const e="/v1.0/education/schools",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};await R(r,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}},updateSchool:async(t,e,o={})=>{p("updateSchool","schoolId",t),p("updateSchool","educationSchool",e);const a="/v1.0/education/schools/{school-id}".replace("{school-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"PATCH",...r,...o},i={},c={};await R(i,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}}}},C=function(n){const t=ce(n);return{async addClassToSchool(e,o,a){const s=await t.addClassToSchool(e,o,a),r=n?.serverIndex??0,l=u["EducationSchoolApi.addClassToSchool"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async addUserToSchool(e,o,a){const s=await t.addUserToSchool(e,o,a),r=n?.serverIndex??0,l=u["EducationSchoolApi.addUserToSchool"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async createSchool(e,o){const a=await t.createSchool(e,o),s=n?.serverIndex??0,r=u["EducationSchoolApi.createSchool"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async deleteClassFromSchool(e,o,a){const s=await t.deleteClassFromSchool(e,o,a),r=n?.serverIndex??0,l=u["EducationSchoolApi.deleteClassFromSchool"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async deleteSchool(e,o){const a=await t.deleteSchool(e,o),s=n?.serverIndex??0,r=u["EducationSchoolApi.deleteSchool"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async deleteUserFromSchool(e,o,a){const s=await t.deleteUserFromSchool(e,o,a),r=n?.serverIndex??0,l=u["EducationSchoolApi.deleteUserFromSchool"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async getSchool(e,o){const a=await t.getSchool(e,o),s=n?.serverIndex??0,r=u["EducationSchoolApi.getSchool"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listSchoolClasses(e,o){const a=await t.listSchoolClasses(e,o),s=n?.serverIndex??0,r=u["EducationSchoolApi.listSchoolClasses"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listSchoolUsers(e,o){const a=await t.listSchoolUsers(e,o),s=n?.serverIndex??0,r=u["EducationSchoolApi.listSchoolUsers"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listSchools(e){const o=await t.listSchools(e),a=n?.serverIndex??0,s=u["EducationSchoolApi.listSchools"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)},async updateSchool(e,o,a){const s=await t.updateSchool(e,o,a),r=n?.serverIndex??0,l=u["EducationSchoolApi.updateSchool"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)}}},Ze=function(n,t,e){const o=C(n);return{addClassToSchool(a,s,r){return o.addClassToSchool(a,s,r).then(l=>l(e,t))},addUserToSchool(a,s,r){return o.addUserToSchool(a,s,r).then(l=>l(e,t))},createSchool(a,s){return o.createSchool(a,s).then(r=>r(e,t))},deleteClassFromSchool(a,s,r){return o.deleteClassFromSchool(a,s,r).then(l=>l(e,t))},deleteSchool(a,s){return o.deleteSchool(a,s).then(r=>r(e,t))},deleteUserFromSchool(a,s,r){return o.deleteUserFromSchool(a,s,r).then(l=>l(e,t))},getSchool(a,s){return o.getSchool(a,s).then(r=>r(e,t))},listSchoolClasses(a,s){return o.listSchoolClasses(a,s).then(r=>r(e,t))},listSchoolUsers(a,s){return o.listSchoolUsers(a,s).then(r=>r(e,t))},listSchools(a){return o.listSchools(a).then(s=>s(e,t))},updateSchool(a,s,r){return o.updateSchool(a,s,r).then(l=>l(e,t))}}};class fe extends y{addClassToSchool(t,e,o){return C(this.configuration).addClassToSchool(t,e,o).then(a=>a(this.axios,this.basePath))}addUserToSchool(t,e,o){return C(this.configuration).addUserToSchool(t,e,o).then(a=>a(this.axios,this.basePath))}createSchool(t,e){return C(this.configuration).createSchool(t,e).then(o=>o(this.axios,this.basePath))}deleteClassFromSchool(t,e,o){return C(this.configuration).deleteClassFromSchool(t,e,o).then(a=>a(this.axios,this.basePath))}deleteSchool(t,e){return C(this.configuration).deleteSchool(t,e).then(o=>o(this.axios,this.basePath))}deleteUserFromSchool(t,e,o){return C(this.configuration).deleteUserFromSchool(t,e,o).then(a=>a(this.axios,this.basePath))}getSchool(t,e){return C(this.configuration).getSchool(t,e).then(o=>o(this.axios,this.basePath))}listSchoolClasses(t,e){return C(this.configuration).listSchoolClasses(t,e).then(o=>o(this.axios,this.basePath))}listSchoolUsers(t,e){return C(this.configuration).listSchoolUsers(t,e).then(o=>o(this.axios,this.basePath))}listSchools(t){return C(this.configuration).listSchools(t).then(e=>e(this.axios,this.basePath))}updateSchool(t,e,o){return C(this.configuration).updateSchool(t,e,o).then(a=>a(this.axios,this.basePath))}}const de=function(n){return{createEducationUser:async(t,e={})=>{p("createEducationUser","educationUser",t);const o="/v1.0/education/users",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"POST",...s,...e},l={},i={};await R(l,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}},deleteEducationUser:async(t,e={})=>{p("deleteEducationUser","userId",t);const o="/v1.0/education/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"DELETE",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},getEducationUser:async(t,e,o={})=>{p("getEducationUser","userId",t);const a="/v1.0/education/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"GET",...r,...o},i={},c={};await R(i,n),e&&(c.$expand=Array.from(e).join(b.csv)),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},listEducationUsers:async(t,e,o={})=>{const a="/v1.0/education/users",s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"GET",...r,...o},i={},c={};await R(i,n),t&&(c.$orderby=Array.from(t).join(b.csv)),e&&(c.$expand=Array.from(e).join(b.csv)),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},updateEducationUser:async(t,e,o={})=>{p("updateEducationUser","userId",t),p("updateEducationUser","educationUser",e);const a="/v1.0/education/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"PATCH",...r,...o},i={},c={};await R(i,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}}}},F=function(n){const t=de(n);return{async createEducationUser(e,o){const a=await t.createEducationUser(e,o),s=n?.serverIndex??0,r=u["EducationUserApi.createEducationUser"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async deleteEducationUser(e,o){const a=await t.deleteEducationUser(e,o),s=n?.serverIndex??0,r=u["EducationUserApi.deleteEducationUser"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async getEducationUser(e,o,a){const s=await t.getEducationUser(e,o,a),r=n?.serverIndex??0,l=u["EducationUserApi.getEducationUser"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async listEducationUsers(e,o,a){const s=await t.listEducationUsers(e,o,a),r=n?.serverIndex??0,l=u["EducationUserApi.listEducationUsers"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async updateEducationUser(e,o,a){const s=await t.updateEducationUser(e,o,a),r=n?.serverIndex??0,l=u["EducationUserApi.updateEducationUser"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)}}},es=function(n,t,e){const o=F(n);return{createEducationUser(a,s){return o.createEducationUser(a,s).then(r=>r(e,t))},deleteEducationUser(a,s){return o.deleteEducationUser(a,s).then(r=>r(e,t))},getEducationUser(a,s,r){return o.getEducationUser(a,s,r).then(l=>l(e,t))},listEducationUsers(a,s,r){return o.listEducationUsers(a,s,r).then(l=>l(e,t))},updateEducationUser(a,s,r){return o.updateEducationUser(a,s,r).then(l=>l(e,t))}}};class ss extends y{createEducationUser(t,e){return F(this.configuration).createEducationUser(t,e).then(o=>o(this.axios,this.basePath))}deleteEducationUser(t,e){return F(this.configuration).deleteEducationUser(t,e).then(o=>o(this.axios,this.basePath))}getEducationUser(t,e,o){return F(this.configuration).getEducationUser(t,e,o).then(a=>a(this.axios,this.basePath))}listEducationUsers(t,e,o){return F(this.configuration).listEducationUsers(t,e,o).then(a=>a(this.axios,this.basePath))}updateEducationUser(t,e,o){return F(this.configuration).updateEducationUser(t,e,o).then(a=>a(this.axios,this.basePath))}}const rs={MemberOf:"memberOf"},as={DisplayName:"displayName",DisplayNameDesc:"displayName desc",Mail:"mail",MailDesc:"mail desc",OnPremisesSamAccountName:"onPremisesSamAccountName",OnPremisesSamAccountNameDesc:"onPremisesSamAccountName desc"},ts={MemberOf:"memberOf"},pe=function(n){return{addMember:async(t,e,o={})=>{p("addMember","groupId",t),p("addMember","memberReference",e);const a="/v1.0/groups/{group-id}/members/$ref".replace("{group-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},deleteGroup:async(t,e,o={})=>{p("deleteGroup","groupId",t);const a="/v1.0/groups/{group-id}".replace("{group-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};U(l,n),e!=null&&(i["If-Match"]=String(e)),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},deleteMember:async(t,e,o,a={})=>{p("deleteMember","groupId",t),p("deleteMember","directoryObjectId",e);const s="/v1.0/groups/{group-id}/members/{directory-object-id}/$ref".replace("{group-id}",encodeURIComponent(String(t))).replace("{directory-object-id}",encodeURIComponent(String(e))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"DELETE",...l,...a},c={},d={};U(i,n),o!=null&&(c["If-Match"]=String(o)),V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},{url:v(r),options:i}},getGroup:async(t,e,o,a={})=>{p("getGroup","groupId",t);const s="/v1.0/groups/{group-id}".replace("{group-id}",encodeURIComponent(String(t))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"GET",...l,...a},c={},d={};U(i,n),e&&(d.$select=Array.from(e).join(b.csv)),o&&(d.$expand=Array.from(o).join(b.csv)),V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},{url:v(r),options:i}},listMembers:async(t,e={})=>{p("listMembers","groupId",t);const o="/v1.0/groups/{group-id}/members".replace("{group-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},updateGroup:async(t,e,o={})=>{p("updateGroup","groupId",t),p("updateGroup","group",e);const a="/v1.0/groups/{group-id}".replace("{group-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"PATCH",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}}}},T=function(n){const t=pe(n);return{async addMember(e,o,a){const s=await t.addMember(e,o,a),r=n?.serverIndex??0,l=u["GroupApi.addMember"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async deleteGroup(e,o,a){const s=await t.deleteGroup(e,o,a),r=n?.serverIndex??0,l=u["GroupApi.deleteGroup"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async deleteMember(e,o,a,s){const r=await t.deleteMember(e,o,a,s),l=n?.serverIndex??0,i=u["GroupApi.deleteMember"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async getGroup(e,o,a,s){const r=await t.getGroup(e,o,a,s),l=n?.serverIndex??0,i=u["GroupApi.getGroup"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async listMembers(e,o){const a=await t.listMembers(e,o),s=n?.serverIndex??0,r=u["GroupApi.listMembers"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async updateGroup(e,o,a){const s=await t.updateGroup(e,o,a),r=n?.serverIndex??0,l=u["GroupApi.updateGroup"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)}}},os=function(n,t,e){const o=T(n);return{addMember(a,s,r){return o.addMember(a,s,r).then(l=>l(e,t))},deleteGroup(a,s,r){return o.deleteGroup(a,s,r).then(l=>l(e,t))},deleteMember(a,s,r,l){return o.deleteMember(a,s,r,l).then(i=>i(e,t))},getGroup(a,s,r,l){return o.getGroup(a,s,r,l).then(i=>i(e,t))},listMembers(a,s){return o.listMembers(a,s).then(r=>r(e,t))},updateGroup(a,s,r){return o.updateGroup(a,s,r).then(l=>l(e,t))}}};class ns extends y{addMember(t,e,o){return T(this.configuration).addMember(t,e,o).then(a=>a(this.axios,this.basePath))}deleteGroup(t,e,o){return T(this.configuration).deleteGroup(t,e,o).then(a=>a(this.axios,this.basePath))}deleteMember(t,e,o,a){return T(this.configuration).deleteMember(t,e,o,a).then(s=>s(this.axios,this.basePath))}getGroup(t,e,o,a){return T(this.configuration).getGroup(t,e,o,a).then(s=>s(this.axios,this.basePath))}listMembers(t,e){return T(this.configuration).listMembers(t,e).then(o=>o(this.axios,this.basePath))}updateGroup(t,e,o){return T(this.configuration).updateGroup(t,e,o).then(a=>a(this.axios,this.basePath))}}const ls={Id:"id",Description:"description",DisplayName:"displayName",Members:"members"},is={Members:"members"},he=function(n){return{createGroup:async(t,e={})=>{p("createGroup","group",t);const o="/v1.0/groups",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"POST",...s,...e},l={},i={};U(r,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}},listGroups:async(t,e,o,a,s={})=>{const r="/v1.0/groups",l=new URL(r,P);let i;n&&(i=n.baseOptions);const c={method:"GET",...i,...s},d={},O={};U(c,n),t!==void 0&&(O.$search=t),e&&(O.$orderby=Array.from(e).join(b.csv)),o&&(O.$select=Array.from(o).join(b.csv)),a&&(O.$expand=Array.from(a).join(b.csv)),V(l,O);let x=i&&i.headers?i.headers:{};return c.headers={...d,...x,...s.headers},{url:v(l),options:c}}}},N=function(n){const t=he(n);return{async createGroup(e,o){const a=await t.createGroup(e,o),s=n?.serverIndex??0,r=u["GroupsApi.createGroup"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listGroups(e,o,a,s,r){const l=await t.listGroups(e,o,a,s,r),i=n?.serverIndex??0,c=u["GroupsApi.listGroups"]?.[i]?.url;return(d,O)=>A(l,h.axios,m,n)(d,c||O)}}},cs=function(n,t,e){const o=N(n);return{createGroup(a,s){return o.createGroup(a,s).then(r=>r(e,t))},listGroups(a,s,r,l,i){return o.listGroups(a,s,r,l,i).then(c=>c(e,t))}}};class ds extends y{createGroup(t,e){return N(this.configuration).createGroup(t,e).then(o=>o(this.axios,this.basePath))}listGroups(t,e,o,a,s){return N(this.configuration).listGroups(t,e,o,a,s).then(r=>r(this.axios,this.basePath))}}const ps={DisplayName:"displayName",DisplayNameDesc:"displayName desc"},hs={Id:"id",Description:"description",DisplayName:"displayName",Mail:"mail",Members:"members"},ms={Members:"members"},me=function(n){return{changeOwnPassword:async(t,e={})=>{p("changeOwnPassword","passwordChange",t);const o="/v1.0/me/changePassword",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"POST",...s,...e},l={},i={};U(r,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}}}},Y=function(n){const t=me(n);return{async changeOwnPassword(e,o){const a=await t.changeOwnPassword(e,o),s=n?.serverIndex??0,r=u["MeChangepasswordApi.changeOwnPassword"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},us=function(n,t,e){const o=Y(n);return{changeOwnPassword(a,s){return o.changeOwnPassword(a,s).then(r=>r(e,t))}}};class Ps extends y{changeOwnPassword(t,e){return Y(this.configuration).changeOwnPassword(t,e).then(o=>o(this.axios,this.basePath))}}const ue=function(n){return{getHome:async(t={})=>{const e="/v1.0/me/drive",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};U(s,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}},listSharedByMe:async(t,e={})=>{const o="/v1beta1/me/drive/sharedByMe",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),t&&(i.$expand=Array.from(t).join(b.csv)),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},listSharedWithMe:async(t,e={})=>{const o="/v1beta1/me/drive/sharedWithMe",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),t&&(i.$expand=Array.from(t).join(b.csv)),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}}}},g=function(n){const t=ue(n);return{async getHome(e){const o=await t.getHome(e),a=n?.serverIndex??0,s=u["MeDriveApi.getHome"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)},async listSharedByMe(e,o){const a=await t.listSharedByMe(e,o),s=n?.serverIndex??0,r=u["MeDriveApi.listSharedByMe"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listSharedWithMe(e,o){const a=await t.listSharedWithMe(e,o),s=n?.serverIndex??0,r=u["MeDriveApi.listSharedWithMe"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},Vs=function(n,t,e){const o=g(n);return{getHome(a){return o.getHome(a).then(s=>s(e,t))},listSharedByMe(a,s){return o.listSharedByMe(a,s).then(r=>r(e,t))},listSharedWithMe(a,s){return o.listSharedWithMe(a,s).then(r=>r(e,t))}}};class vs extends y{getHome(t){return g(this.configuration).getHome(t).then(e=>e(this.axios,this.basePath))}listSharedByMe(t,e){return g(this.configuration).listSharedByMe(t,e).then(o=>o(this.axios,this.basePath))}listSharedWithMe(t,e){return g(this.configuration).listSharedWithMe(t,e).then(o=>o(this.axios,this.basePath))}}const As={Thumbnails:"thumbnails"},Os={Thumbnails:"thumbnails"},Pe=function(n){return{homeGetRoot:async(t={})=>{const e="/v1.0/me/drive/root",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};U(s,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}}}},X=function(n){const t=Pe(n);return{async homeGetRoot(e){const o=await t.homeGetRoot(e),a=n?.serverIndex??0,s=u["MeDriveRootApi.homeGetRoot"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)}}},Us=function(n,t,e){const o=X(n);return{homeGetRoot(a){return o.homeGetRoot(a).then(s=>s(e,t))}}};class Ss extends y{homeGetRoot(t){return X(this.configuration).homeGetRoot(t).then(e=>e(this.axios,this.basePath))}}const Ve=function(n){return{homeGetChildren:async(t={})=>{const e="/v1.0/me/drive/root/children",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};U(s,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}}}},Z=function(n){const t=Ve(n);return{async homeGetChildren(e){const o=await t.homeGetChildren(e),a=n?.serverIndex??0,s=u["MeDriveRootChildrenApi.homeGetChildren"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)}}},xs=function(n,t,e){const o=Z(n);return{homeGetChildren(a){return o.homeGetChildren(a).then(s=>s(e,t))}}};class Rs extends y{homeGetChildren(t){return Z(this.configuration).homeGetChildren(t).then(e=>e(this.axios,this.basePath))}}const ve=function(n){return{listMyDrives:async(t,e,o={})=>{const a="/v1.0/me/drives",s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"GET",...r,...o},i={},c={};U(l,n),t!==void 0&&(c.$orderby=t),e!==void 0&&(c.$filter=e),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},listMyDrivesBeta:async(t,e,o,a,s={})=>{const r="/v1beta1/me/drives",l=new URL(r,P);let i;n&&(i=n.baseOptions);const c={method:"GET",...i,...s},d={},O={};U(c,n),t!==void 0&&(O.$orderby=t),e!==void 0&&(O.$filter=e),o!==void 0&&(O.$expand=o),a&&(O.$select=Array.from(a).join(b.csv)),V(l,O);let x=i&&i.headers?i.headers:{};return c.headers={...d,...x,...s.headers},{url:v(l),options:c}}}},k=function(n){const t=ve(n);return{async listMyDrives(e,o,a){const s=await t.listMyDrives(e,o,a),r=n?.serverIndex??0,l=u["MeDrivesApi.listMyDrives"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async listMyDrivesBeta(e,o,a,s,r){const l=await t.listMyDrivesBeta(e,o,a,s,r),i=n?.serverIndex??0,c=u["MeDrivesApi.listMyDrivesBeta"]?.[i]?.url;return(d,O)=>A(l,h.axios,m,n)(d,c||O)}}},ys=function(n,t,e){const o=k(n);return{listMyDrives(a,s,r){return o.listMyDrives(a,s,r).then(l=>l(e,t))},listMyDrivesBeta(a,s,r,l,i){return o.listMyDrivesBeta(a,s,r,l,i).then(c=>c(e,t))}}};class bs extends y{listMyDrives(t,e,o){return k(this.configuration).listMyDrives(t,e,o).then(a=>a(this.axios,this.basePath))}listMyDrivesBeta(t,e,o,a,s){return k(this.configuration).listMyDrivesBeta(t,e,o,a,s).then(r=>r(this.axios,this.basePath))}}const Cs={LibreGraphHasTrashedItems:"@libre.graph.hasTrashedItems"},Ae=function(n){return{deleteOwnUserPhoto:async(t={})=>{const e="/v1.0/me/photo/$value",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"DELETE",...a,...t},r={},l={};U(s,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}},getOwnUserPhoto:async(t={})=>{const e="/v1.0/me/photo/$value",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};U(s,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}},updateOwnUserPhotoPatch:async(t,e={})=>{const o="/v1.0/me/photo/$value",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"PATCH",...s,...e},l={},i={};U(r,n),l["Content-Type"]="image/jpeg",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}},updateOwnUserPhotoPut:async(t,e={})=>{const o="/v1.0/me/photo/$value",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"PUT",...s,...e},l={},i={};U(r,n),l["Content-Type"]="image/jpeg",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}}}},M=function(n){const t=Ae(n);return{async deleteOwnUserPhoto(e){const o=await t.deleteOwnUserPhoto(e),a=n?.serverIndex??0,s=u["MePhotoApi.deleteOwnUserPhoto"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)},async getOwnUserPhoto(e){const o=await t.getOwnUserPhoto(e),a=n?.serverIndex??0,s=u["MePhotoApi.getOwnUserPhoto"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)},async updateOwnUserPhotoPatch(e,o){const a=await t.updateOwnUserPhotoPatch(e,o),s=n?.serverIndex??0,r=u["MePhotoApi.updateOwnUserPhotoPatch"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async updateOwnUserPhotoPut(e,o){const a=await t.updateOwnUserPhotoPut(e,o),s=n?.serverIndex??0,r=u["MePhotoApi.updateOwnUserPhotoPut"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},ws=function(n,t,e){const o=M(n);return{deleteOwnUserPhoto(a){return o.deleteOwnUserPhoto(a).then(s=>s(e,t))},getOwnUserPhoto(a){return o.getOwnUserPhoto(a).then(s=>s(e,t))},updateOwnUserPhotoPatch(a,s){return o.updateOwnUserPhotoPatch(a,s).then(r=>r(e,t))},updateOwnUserPhotoPut(a,s){return o.updateOwnUserPhotoPut(a,s).then(r=>r(e,t))}}};class Is extends y{deleteOwnUserPhoto(t){return M(this.configuration).deleteOwnUserPhoto(t).then(e=>e(this.axios,this.basePath))}getOwnUserPhoto(t){return M(this.configuration).getOwnUserPhoto(t).then(e=>e(this.axios,this.basePath))}updateOwnUserPhotoPatch(t,e){return M(this.configuration).updateOwnUserPhotoPatch(t,e).then(o=>o(this.axios,this.basePath))}updateOwnUserPhotoPut(t,e){return M(this.configuration).updateOwnUserPhotoPut(t,e).then(o=>o(this.axios,this.basePath))}}const Oe=function(n){return{getOwnUser:async(t,e={})=>{const o="/v1.0/me",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),t&&(i.$expand=Array.from(t).join(b.csv)),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},updateOwnUser:async(t,e={})=>{const o="/v1.0/me",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"PATCH",...s,...e},l={},i={};U(r,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}}}},W=function(n){const t=Oe(n);return{async getOwnUser(e,o){const a=await t.getOwnUser(e,o),s=n?.serverIndex??0,r=u["MeUserApi.getOwnUser"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async updateOwnUser(e,o){const a=await t.updateOwnUser(e,o),s=n?.serverIndex??0,r=u["MeUserApi.updateOwnUser"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},Ds=function(n,t,e){const o=W(n);return{getOwnUser(a,s){return o.getOwnUser(a,s).then(r=>r(e,t))},updateOwnUser(a,s){return o.updateOwnUser(a,s).then(r=>r(e,t))}}};class Es extends y{getOwnUser(t,e){return W(this.configuration).getOwnUser(t,e).then(o=>o(this.axios,this.basePath))}updateOwnUser(t,e){return W(this.configuration).updateOwnUser(t,e).then(o=>o(this.axios,this.basePath))}}const Ts={MemberOf:"memberOf"},Ue=function(n){return{getPermissionRoleDefinition:async(t,e={})=>{p("getPermissionRoleDefinition","roleId",t);const o="/v1beta1/roleManagement/permissions/roleDefinitions/{role-id}".replace("{role-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},listPermissionRoleDefinitions:async(t={})=>{const e="/v1beta1/roleManagement/permissions/roleDefinitions",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};U(s,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}}}},z=function(n){const t=Ue(n);return{async getPermissionRoleDefinition(e,o){const a=await t.getPermissionRoleDefinition(e,o),s=n?.serverIndex??0,r=u["RoleManagementApi.getPermissionRoleDefinition"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listPermissionRoleDefinitions(e){const o=await t.listPermissionRoleDefinitions(e),a=n?.serverIndex??0,s=u["RoleManagementApi.listPermissionRoleDefinitions"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)}}},Fs=function(n,t,e){const o=z(n);return{getPermissionRoleDefinition(a,s){return o.getPermissionRoleDefinition(a,s).then(r=>r(e,t))},listPermissionRoleDefinitions(a){return o.listPermissionRoleDefinitions(a).then(s=>s(e,t))}}};class Bs extends y{getPermissionRoleDefinition(t,e){return z(this.configuration).getPermissionRoleDefinition(t,e).then(o=>o(this.axios,this.basePath))}listPermissionRoleDefinitions(t){return z(this.configuration).listPermissionRoleDefinitions(t).then(e=>e(this.axios,this.basePath))}}const Se=function(n){return{assignTags:async(t,e={})=>{const o="/v1.0/extensions/org.libregraph/tags",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"PUT",...s,...e},l={},i={};U(r,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}},getTags:async(t={})=>{const e="/v1.0/extensions/org.libregraph/tags",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};U(s,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}},unassignTags:async(t,e={})=>{const o="/v1.0/extensions/org.libregraph/tags",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"DELETE",...s,...e},l={},i={};U(r,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}}}},H=function(n){const t=Se(n);return{async assignTags(e,o){const a=await t.assignTags(e,o),s=n?.serverIndex??0,r=u["TagsApi.assignTags"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async getTags(e){const o=await t.getTags(e),a=n?.serverIndex??0,s=u["TagsApi.getTags"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)},async unassignTags(e,o){const a=await t.unassignTags(e,o),s=n?.serverIndex??0,r=u["TagsApi.unassignTags"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},Ms=function(n,t,e){const o=H(n);return{assignTags(a,s){return o.assignTags(a,s).then(r=>r(e,t))},getTags(a){return o.getTags(a).then(s=>s(e,t))},unassignTags(a,s){return o.unassignTags(a,s).then(r=>r(e,t))}}};class Ls extends y{assignTags(t,e){return H(this.configuration).assignTags(t,e).then(o=>o(this.axios,this.basePath))}getTags(t){return H(this.configuration).getTags(t).then(e=>e(this.axios,this.basePath))}unassignTags(t,e){return H(this.configuration).unassignTags(t,e).then(o=>o(this.axios,this.basePath))}}const xe=function(n){return{deleteUser:async(t,e,o={})=>{p("deleteUser","userId",t);const a="/v1.0/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};U(l,n),e!=null&&(i["If-Match"]=String(e)),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},exportPersonalData:async(t,e,o={})=>{p("exportPersonalData","userId",t);const a="/v1.0/users/{user-id}/exportPersonalData".replace("{user-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},getUser:async(t,e,o,a={})=>{p("getUser","userId",t);const s="/v1.0/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"GET",...l,...a},c={},d={};U(i,n),e&&(d.$select=Array.from(e).join(b.csv)),o&&(d.$expand=Array.from(o).join(b.csv)),V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},{url:v(r),options:i}},updateUser:async(t,e,o={})=>{p("updateUser","userId",t),p("updateUser","userUpdate",e);const a="/v1.0/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"PATCH",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}}}},L=function(n){const t=xe(n);return{async deleteUser(e,o,a){const s=await t.deleteUser(e,o,a),r=n?.serverIndex??0,l=u["UserApi.deleteUser"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async exportPersonalData(e,o,a){const s=await t.exportPersonalData(e,o,a),r=n?.serverIndex??0,l=u["UserApi.exportPersonalData"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async getUser(e,o,a,s){const r=await t.getUser(e,o,a,s),l=n?.serverIndex??0,i=u["UserApi.getUser"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async updateUser(e,o,a){const s=await t.updateUser(e,o,a),r=n?.serverIndex??0,l=u["UserApi.updateUser"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)}}},Gs=function(n,t,e){const o=L(n);return{deleteUser(a,s,r){return o.deleteUser(a,s,r).then(l=>l(e,t))},exportPersonalData(a,s,r){return o.exportPersonalData(a,s,r).then(l=>l(e,t))},getUser(a,s,r,l){return o.getUser(a,s,r,l).then(i=>i(e,t))},updateUser(a,s,r){return o.updateUser(a,s,r).then(l=>l(e,t))}}};class js extends y{deleteUser(t,e,o){return L(this.configuration).deleteUser(t,e,o).then(a=>a(this.axios,this.basePath))}exportPersonalData(t,e,o){return L(this.configuration).exportPersonalData(t,e,o).then(a=>a(this.axios,this.basePath))}getUser(t,e,o,a){return L(this.configuration).getUser(t,e,o,a).then(s=>s(this.axios,this.basePath))}updateUser(t,e,o){return L(this.configuration).updateUser(t,e,o).then(a=>a(this.axios,this.basePath))}}const gs={Id:"id",DisplayName:"displayName",Drive:"drive",Drives:"drives",Mail:"mail",MemberOf:"memberOf",OnPremisesSamAccountName:"onPremisesSamAccountName",Surname:"surname"},Hs={Drive:"drive",Drives:"drives",MemberOf:"memberOf",AppRoleAssignments:"appRoleAssignments"},Re=function(n){return{userCreateAppRoleAssignments:async(t,e,o={})=>{p("userCreateAppRoleAssignments","userId",t),p("userCreateAppRoleAssignments","appRoleAssignment",e);const a="/v1.0/users/{user-id}/appRoleAssignments".replace("{user-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},userDeleteAppRoleAssignments:async(t,e,o,a={})=>{p("userDeleteAppRoleAssignments","userId",t),p("userDeleteAppRoleAssignments","appRoleAssignmentId",e);const s="/v1.0/users/{user-id}/appRoleAssignments/{appRoleAssignment-id}".replace("{user-id}",encodeURIComponent(String(t))).replace("{appRoleAssignment-id}",encodeURIComponent(String(e))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"DELETE",...l,...a},c={},d={};U(i,n),o!=null&&(c["If-Match"]=String(o)),V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},{url:v(r),options:i}},userListAppRoleAssignments:async(t,e={})=>{p("userListAppRoleAssignments","userId",t);const o="/v1.0/users/{user-id}/appRoleAssignments".replace("{user-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}}}},$=function(n){const t=Re(n);return{async userCreateAppRoleAssignments(e,o,a){const s=await t.userCreateAppRoleAssignments(e,o,a),r=n?.serverIndex??0,l=u["UserAppRoleAssignmentApi.userCreateAppRoleAssignments"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async userDeleteAppRoleAssignments(e,o,a,s){const r=await t.userDeleteAppRoleAssignments(e,o,a,s),l=n?.serverIndex??0,i=u["UserAppRoleAssignmentApi.userDeleteAppRoleAssignments"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async userListAppRoleAssignments(e,o){const a=await t.userListAppRoleAssignments(e,o),s=n?.serverIndex??0,r=u["UserAppRoleAssignmentApi.userListAppRoleAssignments"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},$s=function(n,t,e){const o=$(n);return{userCreateAppRoleAssignments(a,s,r){return o.userCreateAppRoleAssignments(a,s,r).then(l=>l(e,t))},userDeleteAppRoleAssignments(a,s,r,l){return o.userDeleteAppRoleAssignments(a,s,r,l).then(i=>i(e,t))},userListAppRoleAssignments(a,s){return o.userListAppRoleAssignments(a,s).then(r=>r(e,t))}}};class qs extends y{userCreateAppRoleAssignments(t,e,o){return $(this.configuration).userCreateAppRoleAssignments(t,e,o).then(a=>a(this.axios,this.basePath))}userDeleteAppRoleAssignments(t,e,o,a){return $(this.configuration).userDeleteAppRoleAssignments(t,e,o,a).then(s=>s(this.axios,this.basePath))}userListAppRoleAssignments(t,e){return $(this.configuration).userListAppRoleAssignments(t,e).then(o=>o(this.axios,this.basePath))}}const ye=function(n){return{getUserPhoto:async(t,e={})=>{p("getUserPhoto","userId",t);const o="/v1.0/users/{user-id}/photo/$value".replace("{user-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}}}},f=function(n){const t=ye(n);return{async getUserPhoto(e,o){const a=await t.getUserPhoto(e,o),s=n?.serverIndex??0,r=u["UserPhotoApi.getUserPhoto"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},Qs=function(n,t,e){const o=f(n);return{getUserPhoto(a,s){return o.getUserPhoto(a,s).then(r=>r(e,t))}}};class Ns extends y{getUserPhoto(t,e){return f(this.configuration).getUserPhoto(t,e).then(o=>o(this.axios,this.basePath))}}const be=function(n){return{createUser:async(t,e={})=>{p("createUser","user",t);const o="/v1.0/users",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"POST",...s,...e},l={},i={};U(r,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}},listUsers:async(t,e,o,a,s,r={})=>{const l="/v1.0/users",i=new URL(l,P);let c;n&&(c=n.baseOptions);const d={method:"GET",...c,...r},O={},x={};U(d,n),t!==void 0&&(x.$search=t),e!==void 0&&(x.$filter=e),o&&(x.$orderby=Array.from(o).join(b.csv)),a&&(x.$select=Array.from(a).join(b.csv)),s&&(x.$expand=Array.from(s).join(b.csv)),V(i,x);let w=c&&c.headers?c.headers:{};return d.headers={...O,...w,...r.headers},{url:v(i),options:d}}}},J=function(n){const t=be(n);return{async createUser(e,o){const a=await t.createUser(e,o),s=n?.serverIndex??0,r=u["UsersApi.createUser"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listUsers(e,o,a,s,r,l){const i=await t.listUsers(e,o,a,s,r,l),c=n?.serverIndex??0,d=u["UsersApi.listUsers"]?.[c]?.url;return(O,x)=>A(i,h.axios,m,n)(O,d||x)}}},ks=function(n,t,e){const o=J(n);return{createUser(a,s){return o.createUser(a,s).then(r=>r(e,t))},listUsers(a,s,r,l,i,c){return o.listUsers(a,s,r,l,i,c).then(d=>d(e,t))}}};class Ws extends y{createUser(t,e){return J(this.configuration).createUser(t,e).then(o=>o(this.axios,this.basePath))}listUsers(t,e,o,a,s,r){return J(this.configuration).listUsers(t,e,o,a,s,r).then(l=>l(this.axios,this.basePath))}}const zs={DisplayName:"displayName",DisplayNameDesc:"displayName desc",Mail:"mail",MailDesc:"mail desc",OnPremisesSamAccountName:"onPremisesSamAccountName",OnPremisesSamAccountNameDesc:"onPremisesSamAccountName desc"},Js={Id:"id",DisplayName:"displayName",Mail:"mail",MemberOf:"memberOf",OnPremisesSamAccountName:"onPremisesSamAccountName",Surname:"surname"},_s={Drive:"drive",Drives:"drives",MemberOf:"memberOf",AppRoleAssignments:"appRoleAssignments"};class Ks{apiKey;username;password;accessToken;basePath;serverIndex;baseOptions;formDataCtor;constructor(t={}){this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions={...t.baseOptions,headers:{...t.baseOptions?.headers}},this.formDataCtor=t.formDataCtor}isJsonMime(t){const e=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(e.test(t)||t.toLowerCase()==="application/json-patch+json")}}exports.ActivitiesApi=Te;exports.ActivitiesApiAxiosParamCreator=ee;exports.ActivitiesApiFactory=Ee;exports.ActivitiesApiFp=K;exports.ApplicationsApi=Be;exports.ApplicationsApiAxiosParamCreator=se;exports.ApplicationsApiFactory=Fe;exports.ApplicationsApiFp=q;exports.Configuration=Ks;exports.DriveItemApi=Le;exports.DriveItemApiAxiosParamCreator=re;exports.DriveItemApiFactory=Me;exports.DriveItemApiFp=G;exports.DrivesApi=je;exports.DrivesApiAxiosParamCreator=ae;exports.DrivesApiFactory=Ge;exports.DrivesApiFp=B;exports.DrivesGetDrivesApi=$e;exports.DrivesGetDrivesApiAxiosParamCreator=te;exports.DrivesGetDrivesApiFactory=He;exports.DrivesGetDrivesApiFp=Q;exports.DrivesPermissionsApi=Ne;exports.DrivesPermissionsApiAxiosParamCreator=oe;exports.DrivesPermissionsApiFactory=Qe;exports.DrivesPermissionsApiFp=E;exports.DrivesRootApi=ze;exports.DrivesRootApiAxiosParamCreator=ne;exports.DrivesRootApiFactory=We;exports.DrivesRootApiFp=I;exports.EducationClassApi=Ke;exports.EducationClassApiAxiosParamCreator=le;exports.EducationClassApiFactory=_e;exports.EducationClassApiFp=D;exports.EducationClassClassificationEnum=Ie;exports.EducationClassTeachersApi=Xe;exports.EducationClassTeachersApiAxiosParamCreator=ie;exports.EducationClassTeachersApiFactory=Ye;exports.EducationClassTeachersApiFp=j;exports.EducationSchoolApi=fe;exports.EducationSchoolApiAxiosParamCreator=ce;exports.EducationSchoolApiFactory=Ze;exports.EducationSchoolApiFp=C;exports.EducationUserApi=ss;exports.EducationUserApiAxiosParamCreator=de;exports.EducationUserApiFactory=es;exports.EducationUserApiFp=F;exports.GetDriveSelectEnum=ge;exports.GetEducationUserExpandEnum=rs;exports.GetGroupExpandEnum=is;exports.GetGroupSelectEnum=ls;exports.GetOwnUserExpandEnum=Ts;exports.GetUserExpandEnum=Hs;exports.GetUserSelectEnum=gs;exports.GroupApi=ns;exports.GroupApiAxiosParamCreator=pe;exports.GroupApiFactory=os;exports.GroupApiFp=T;exports.GroupsApi=ds;exports.GroupsApiAxiosParamCreator=he;exports.GroupsApiFactory=cs;exports.GroupsApiFp=N;exports.ListAllDrivesBetaSelectEnum=qe;exports.ListEducationUsersExpandEnum=ts;exports.ListEducationUsersOrderbyEnum=as;exports.ListGroupsExpandEnum=ms;exports.ListGroupsOrderbyEnum=ps;exports.ListGroupsSelectEnum=hs;exports.ListMyDrivesBetaSelectEnum=Cs;exports.ListPermissionsSelectEnum=ke;exports.ListPermissionsSpaceRootSelectEnum=Je;exports.ListSharedByMeExpandEnum=As;exports.ListSharedWithMeExpandEnum=Os;exports.ListUsersExpandEnum=_s;exports.ListUsersOrderbyEnum=zs;exports.ListUsersSelectEnum=Js;exports.MeChangepasswordApi=Ps;exports.MeChangepasswordApiAxiosParamCreator=me;exports.MeChangepasswordApiFactory=us;exports.MeChangepasswordApiFp=Y;exports.MeDriveApi=vs;exports.MeDriveApiAxiosParamCreator=ue;exports.MeDriveApiFactory=Vs;exports.MeDriveApiFp=g;exports.MeDriveRootApi=Ss;exports.MeDriveRootApiAxiosParamCreator=Pe;exports.MeDriveRootApiFactory=Us;exports.MeDriveRootApiFp=X;exports.MeDriveRootChildrenApi=Rs;exports.MeDriveRootChildrenApiAxiosParamCreator=Ve;exports.MeDriveRootChildrenApiFactory=xs;exports.MeDriveRootChildrenApiFp=Z;exports.MeDrivesApi=bs;exports.MeDrivesApiAxiosParamCreator=ve;exports.MeDrivesApiFactory=ys;exports.MeDrivesApiFp=k;exports.MePhotoApi=Is;exports.MePhotoApiAxiosParamCreator=Ae;exports.MePhotoApiFactory=ws;exports.MePhotoApiFp=M;exports.MeUserApi=Es;exports.MeUserApiAxiosParamCreator=Oe;exports.MeUserApiFactory=Ds;exports.MeUserApiFp=W;exports.RoleManagementApi=Bs;exports.RoleManagementApiAxiosParamCreator=Ue;exports.RoleManagementApiFactory=Fs;exports.RoleManagementApiFp=z;exports.SharingLinkType=De;exports.TagsApi=Ls;exports.TagsApiAxiosParamCreator=Se;exports.TagsApiFactory=Ms;exports.TagsApiFp=H;exports.UserApi=js;exports.UserApiAxiosParamCreator=xe;exports.UserApiFactory=Gs;exports.UserApiFp=L;exports.UserAppRoleAssignmentApi=qs;exports.UserAppRoleAssignmentApiAxiosParamCreator=Re;exports.UserAppRoleAssignmentApiFactory=$s;exports.UserAppRoleAssignmentApiFp=$;exports.UserPhotoApi=Ns;exports.UserPhotoApiAxiosParamCreator=ye;exports.UserPhotoApiFactory=Qs;exports.UserPhotoApiFp=f;exports.UsersApi=Ws;exports.UsersApiAxiosParamCreator=be;exports.UsersApiFactory=ks;exports.UsersApiFp=J;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../../index-w54SVXTg.cjs"),m="https://localhost:9200/graph".replace(/\/+$/,""),b={csv:","};class y{constructor(t,e=m,o=h.axios){this.basePath=e,this.axios=o,t&&(this.configuration=t,this.basePath=t.basePath??e)}configuration}class we extends Error{constructor(t,e){super(e),this.field=t,this.name="RequiredError"}}const u={},P="https://example.com",p=function(n,t,e){if(e==null)throw new we(t,`Required parameter ${t} was null or undefined when calling ${n}.`)},U=function(n,t){t&&(t.username||t.password)&&(n.auth={username:t.username,password:t.password})},R=async function(n,t){if(t&&t.accessToken){const e=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;n.Authorization="Bearer "+e}};function _(n,t,e=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(o=>_(n,o,e)):Object.keys(t).forEach(o=>_(n,t[o],`${e}${e!==""?".":""}${o}`)):n.has(e)?n.append(e,t):n.set(e,t))}const V=function(n,...t){const e=new URLSearchParams(n.search);_(e,t),n.search=e.toString()},S=function(n,t,e){const o=typeof n!="string";return(o&&e&&e.isJsonMime?e.isJsonMime(t.headers["Content-Type"]):o)?JSON.stringify(n!==void 0?n:{}):n||""},v=function(n){return n.pathname+n.search+n.hash},A=function(n,t,e,o){return(a=t,s=e)=>{const r={...n.options,url:(a.defaults.baseURL?"":o?.basePath??s)+n.url};return a.request(r)}},Ie={Class:"class",Course:"course"},De={Internal:"internal",View:"view",Upload:"upload",Edit:"edit",CreateOnly:"createOnly",BlocksDownload:"blocksDownload"},ee=function(n){return{getActivities:async(t,e={})=>{const o="/v1beta1/extensions/org.libregraph/activities",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),t!==void 0&&(i.kql=t),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}}}},K=function(n){const t=ee(n);return{async getActivities(e,o){const a=await t.getActivities(e,o),s=n?.serverIndex??0,r=u["ActivitiesApi.getActivities"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},Ee=function(n,t,e){const o=K(n);return{getActivities(a,s){return o.getActivities(a,s).then(r=>r(e,t))}}};class Te extends y{getActivities(t,e){return K(this.configuration).getActivities(t,e).then(o=>o(this.axios,this.basePath))}}const se=function(n){return{getApplication:async(t,e={})=>{p("getApplication","applicationId",t);const o="/v1.0/applications/{application-id}".replace("{application-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},listApplications:async(t={})=>{const e="/v1.0/applications",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};U(s,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}}}},q=function(n){const t=se(n);return{async getApplication(e,o){const a=await t.getApplication(e,o),s=n?.serverIndex??0,r=u["ApplicationsApi.getApplication"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listApplications(e){const o=await t.listApplications(e),a=n?.serverIndex??0,s=u["ApplicationsApi.listApplications"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)}}},Fe=function(n,t,e){const o=q(n);return{getApplication(a,s){return o.getApplication(a,s).then(r=>r(e,t))},listApplications(a){return o.listApplications(a).then(s=>s(e,t))}}};class Be extends y{getApplication(t,e){return q(this.configuration).getApplication(t,e).then(o=>o(this.axios,this.basePath))}listApplications(t){return q(this.configuration).listApplications(t).then(e=>e(this.axios,this.basePath))}}const re=function(n){return{deleteDriveItem:async(t,e,o={})=>{p("deleteDriveItem","driveId",t),p("deleteDriveItem","itemId",e);const a="/v1beta1/drives/{drive-id}/items/{item-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};U(l,n),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},getDriveItem:async(t,e,o={})=>{p("getDriveItem","driveId",t),p("getDriveItem","itemId",e);const a="/v1beta1/drives/{drive-id}/items/{item-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"GET",...r,...o},i={},c={};U(l,n),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},updateDriveItem:async(t,e,o,a={})=>{p("updateDriveItem","driveId",t),p("updateDriveItem","itemId",e),p("updateDriveItem","driveItem",o);const s="/v1beta1/drives/{drive-id}/items/{item-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"PATCH",...l,...a},c={},d={};U(i,n),c["Content-Type"]="application/json",V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},i.data=S(o,i,n),{url:v(r),options:i}}}},G=function(n){const t=re(n);return{async deleteDriveItem(e,o,a){const s=await t.deleteDriveItem(e,o,a),r=n?.serverIndex??0,l=u["DriveItemApi.deleteDriveItem"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async getDriveItem(e,o,a){const s=await t.getDriveItem(e,o,a),r=n?.serverIndex??0,l=u["DriveItemApi.getDriveItem"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async updateDriveItem(e,o,a,s){const r=await t.updateDriveItem(e,o,a,s),l=n?.serverIndex??0,i=u["DriveItemApi.updateDriveItem"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)}}},Me=function(n,t,e){const o=G(n);return{deleteDriveItem(a,s,r){return o.deleteDriveItem(a,s,r).then(l=>l(e,t))},getDriveItem(a,s,r){return o.getDriveItem(a,s,r).then(l=>l(e,t))},updateDriveItem(a,s,r,l){return o.updateDriveItem(a,s,r,l).then(i=>i(e,t))}}};class Le extends y{deleteDriveItem(t,e,o){return G(this.configuration).deleteDriveItem(t,e,o).then(a=>a(this.axios,this.basePath))}getDriveItem(t,e,o){return G(this.configuration).getDriveItem(t,e,o).then(a=>a(this.axios,this.basePath))}updateDriveItem(t,e,o,a){return G(this.configuration).updateDriveItem(t,e,o,a).then(s=>s(this.axios,this.basePath))}}const ae=function(n){return{createDrive:async(t,e={})=>{p("createDrive","drive",t);const o="/v1.0/drives",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"POST",...s,...e},l={},i={};U(r,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}},deleteDrive:async(t,e,o={})=>{p("deleteDrive","driveId",t);const a="/v1.0/drives/{drive-id}".replace("{drive-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};U(l,n),e!=null&&(i["If-Match"]=String(e)),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},getDrive:async(t,e,o={})=>{p("getDrive","driveId",t);const a="/v1.0/drives/{drive-id}".replace("{drive-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"GET",...r,...o},i={},c={};U(l,n),e&&(c.$select=Array.from(e).join(b.csv)),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},updateDrive:async(t,e,o={})=>{p("updateDrive","driveId",t),p("updateDrive","driveUpdate",e);const a="/v1.0/drives/{drive-id}".replace("{drive-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"PATCH",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}}}},B=function(n){const t=ae(n);return{async createDrive(e,o){const a=await t.createDrive(e,o),s=n?.serverIndex??0,r=u["DrivesApi.createDrive"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async deleteDrive(e,o,a){const s=await t.deleteDrive(e,o,a),r=n?.serverIndex??0,l=u["DrivesApi.deleteDrive"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async getDrive(e,o,a){const s=await t.getDrive(e,o,a),r=n?.serverIndex??0,l=u["DrivesApi.getDrive"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async updateDrive(e,o,a){const s=await t.updateDrive(e,o,a),r=n?.serverIndex??0,l=u["DrivesApi.updateDrive"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)}}},Ge=function(n,t,e){const o=B(n);return{createDrive(a,s){return o.createDrive(a,s).then(r=>r(e,t))},deleteDrive(a,s,r){return o.deleteDrive(a,s,r).then(l=>l(e,t))},getDrive(a,s,r){return o.getDrive(a,s,r).then(l=>l(e,t))},updateDrive(a,s,r){return o.updateDrive(a,s,r).then(l=>l(e,t))}}};class je extends y{createDrive(t,e){return B(this.configuration).createDrive(t,e).then(o=>o(this.axios,this.basePath))}deleteDrive(t,e,o){return B(this.configuration).deleteDrive(t,e,o).then(a=>a(this.axios,this.basePath))}getDrive(t,e,o){return B(this.configuration).getDrive(t,e,o).then(a=>a(this.axios,this.basePath))}updateDrive(t,e,o){return B(this.configuration).updateDrive(t,e,o).then(a=>a(this.axios,this.basePath))}}const ge={LibreGraphHasTrashedItems:"@libre.graph.hasTrashedItems"},te=function(n){return{listAllDrives:async(t,e,o={})=>{const a="/v1.0/drives",s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"GET",...r,...o},i={},c={};U(l,n),t!==void 0&&(c.$orderby=t),e!==void 0&&(c.$filter=e),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},listAllDrivesBeta:async(t,e,o,a,s={})=>{const r="/v1beta1/drives",l=new URL(r,P);let i;n&&(i=n.baseOptions);const c={method:"GET",...i,...s},d={},O={};U(c,n),t!==void 0&&(O.$orderby=t),e!==void 0&&(O.$filter=e),o!==void 0&&(O.$expand=o),a&&(O.$select=Array.from(a).join(b.csv)),V(l,O);let x=i&&i.headers?i.headers:{};return c.headers={...d,...x,...s.headers},{url:v(l),options:c}}}},Q=function(n){const t=te(n);return{async listAllDrives(e,o,a){const s=await t.listAllDrives(e,o,a),r=n?.serverIndex??0,l=u["DrivesGetDrivesApi.listAllDrives"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async listAllDrivesBeta(e,o,a,s,r){const l=await t.listAllDrivesBeta(e,o,a,s,r),i=n?.serverIndex??0,c=u["DrivesGetDrivesApi.listAllDrivesBeta"]?.[i]?.url;return(d,O)=>A(l,h.axios,m,n)(d,c||O)}}},He=function(n,t,e){const o=Q(n);return{listAllDrives(a,s,r){return o.listAllDrives(a,s,r).then(l=>l(e,t))},listAllDrivesBeta(a,s,r,l,i){return o.listAllDrivesBeta(a,s,r,l,i).then(c=>c(e,t))}}};class $e extends y{listAllDrives(t,e,o){return Q(this.configuration).listAllDrives(t,e,o).then(a=>a(this.axios,this.basePath))}listAllDrivesBeta(t,e,o,a,s){return Q(this.configuration).listAllDrivesBeta(t,e,o,a,s).then(r=>r(this.axios,this.basePath))}}const qe={LibreGraphHasTrashedItems:"@libre.graph.hasTrashedItems"},oe=function(n){return{createLink:async(t,e,o,a={})=>{p("createLink","driveId",t),p("createLink","itemId",e);const s="/v1beta1/drives/{drive-id}/items/{item-id}/createLink".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"POST",...l,...a},c={},d={};U(i,n),c["Content-Type"]="application/json",V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},i.data=S(o,i,n),{url:v(r),options:i}},deletePermission:async(t,e,o,a={})=>{p("deletePermission","driveId",t),p("deletePermission","itemId",e),p("deletePermission","permId",o);const s="/v1beta1/drives/{drive-id}/items/{item-id}/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))).replace("{perm-id}",encodeURIComponent(String(o))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"DELETE",...l,...a},c={},d={};U(i,n),V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},{url:v(r),options:i}},getPermission:async(t,e,o,a={})=>{p("getPermission","driveId",t),p("getPermission","itemId",e),p("getPermission","permId",o);const s="/v1beta1/drives/{drive-id}/items/{item-id}/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))).replace("{perm-id}",encodeURIComponent(String(o))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"GET",...l,...a},c={},d={};U(i,n),V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},{url:v(r),options:i}},invite:async(t,e,o,a={})=>{p("invite","driveId",t),p("invite","itemId",e);const s="/v1beta1/drives/{drive-id}/items/{item-id}/invite".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"POST",...l,...a},c={},d={};U(i,n),c["Content-Type"]="application/json",V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},i.data=S(o,i,n),{url:v(r),options:i}},listPermissions:async(t,e,o,a,s,r,l={})=>{p("listPermissions","driveId",t),p("listPermissions","itemId",e);const i="/v1beta1/drives/{drive-id}/items/{item-id}/permissions".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))),c=new URL(i,P);let d;n&&(d=n.baseOptions);const O={method:"GET",...d,...l},x={},w={};U(O,n),o!==void 0&&(w.$filter=o),a&&(w.$select=Array.from(a).join(b.csv)),s!==void 0&&(w.$count=s),r!==void 0&&(w.$top=r),V(c,w);let Ce=d&&d.headers?d.headers:{};return O.headers={...x,...Ce,...l.headers},{url:v(c),options:O}},setPermissionPassword:async(t,e,o,a,s={})=>{p("setPermissionPassword","driveId",t),p("setPermissionPassword","itemId",e),p("setPermissionPassword","permId",o),p("setPermissionPassword","sharingLinkPassword",a);const r="/v1beta1/drives/{drive-id}/items/{item-id}/permissions/{perm-id}/setPassword".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))).replace("{perm-id}",encodeURIComponent(String(o))),l=new URL(r,P);let i;n&&(i=n.baseOptions);const c={method:"POST",...i,...s},d={},O={};U(c,n),d["Content-Type"]="application/json",V(l,O);let x=i&&i.headers?i.headers:{};return c.headers={...d,...x,...s.headers},c.data=S(a,c,n),{url:v(l),options:c}},updatePermission:async(t,e,o,a,s={})=>{p("updatePermission","driveId",t),p("updatePermission","itemId",e),p("updatePermission","permId",o),p("updatePermission","permission",a);const r="/v1beta1/drives/{drive-id}/items/{item-id}/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{item-id}",encodeURIComponent(String(e))).replace("{perm-id}",encodeURIComponent(String(o))),l=new URL(r,P);let i;n&&(i=n.baseOptions);const c={method:"PATCH",...i,...s},d={},O={};U(c,n),d["Content-Type"]="application/json",V(l,O);let x=i&&i.headers?i.headers:{};return c.headers={...d,...x,...s.headers},c.data=S(a,c,n),{url:v(l),options:c}}}},E=function(n){const t=oe(n);return{async createLink(e,o,a,s){const r=await t.createLink(e,o,a,s),l=n?.serverIndex??0,i=u["DrivesPermissionsApi.createLink"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async deletePermission(e,o,a,s){const r=await t.deletePermission(e,o,a,s),l=n?.serverIndex??0,i=u["DrivesPermissionsApi.deletePermission"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async getPermission(e,o,a,s){const r=await t.getPermission(e,o,a,s),l=n?.serverIndex??0,i=u["DrivesPermissionsApi.getPermission"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async invite(e,o,a,s){const r=await t.invite(e,o,a,s),l=n?.serverIndex??0,i=u["DrivesPermissionsApi.invite"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async listPermissions(e,o,a,s,r,l,i){const c=await t.listPermissions(e,o,a,s,r,l,i),d=n?.serverIndex??0,O=u["DrivesPermissionsApi.listPermissions"]?.[d]?.url;return(x,w)=>A(c,h.axios,m,n)(x,O||w)},async setPermissionPassword(e,o,a,s,r){const l=await t.setPermissionPassword(e,o,a,s,r),i=n?.serverIndex??0,c=u["DrivesPermissionsApi.setPermissionPassword"]?.[i]?.url;return(d,O)=>A(l,h.axios,m,n)(d,c||O)},async updatePermission(e,o,a,s,r){const l=await t.updatePermission(e,o,a,s,r),i=n?.serverIndex??0,c=u["DrivesPermissionsApi.updatePermission"]?.[i]?.url;return(d,O)=>A(l,h.axios,m,n)(d,c||O)}}},Qe=function(n,t,e){const o=E(n);return{createLink(a,s,r,l){return o.createLink(a,s,r,l).then(i=>i(e,t))},deletePermission(a,s,r,l){return o.deletePermission(a,s,r,l).then(i=>i(e,t))},getPermission(a,s,r,l){return o.getPermission(a,s,r,l).then(i=>i(e,t))},invite(a,s,r,l){return o.invite(a,s,r,l).then(i=>i(e,t))},listPermissions(a,s,r,l,i,c,d){return o.listPermissions(a,s,r,l,i,c,d).then(O=>O(e,t))},setPermissionPassword(a,s,r,l,i){return o.setPermissionPassword(a,s,r,l,i).then(c=>c(e,t))},updatePermission(a,s,r,l,i){return o.updatePermission(a,s,r,l,i).then(c=>c(e,t))}}};class Ne extends y{createLink(t,e,o,a){return E(this.configuration).createLink(t,e,o,a).then(s=>s(this.axios,this.basePath))}deletePermission(t,e,o,a){return E(this.configuration).deletePermission(t,e,o,a).then(s=>s(this.axios,this.basePath))}getPermission(t,e,o,a){return E(this.configuration).getPermission(t,e,o,a).then(s=>s(this.axios,this.basePath))}invite(t,e,o,a){return E(this.configuration).invite(t,e,o,a).then(s=>s(this.axios,this.basePath))}listPermissions(t,e,o,a,s,r,l){return E(this.configuration).listPermissions(t,e,o,a,s,r,l).then(i=>i(this.axios,this.basePath))}setPermissionPassword(t,e,o,a,s){return E(this.configuration).setPermissionPassword(t,e,o,a,s).then(r=>r(this.axios,this.basePath))}updatePermission(t,e,o,a,s){return E(this.configuration).updatePermission(t,e,o,a,s).then(r=>r(this.axios,this.basePath))}}const ke={LibreGraphPermissionsActionsAllowedValues:"@libre.graph.permissions.actions.allowedValues",LibreGraphPermissionsRolesAllowedValues:"@libre.graph.permissions.roles.allowedValues",Value:"value"},ne=function(n){return{createDriveItem:async(t,e,o={})=>{p("createDriveItem","driveId",t);const a="/v1beta1/drives/{drive-id}/root/children".replace("{drive-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},createLinkSpaceRoot:async(t,e,o={})=>{p("createLinkSpaceRoot","driveId",t);const a="/v1beta1/drives/{drive-id}/root/createLink".replace("{drive-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},deletePermissionSpaceRoot:async(t,e,o={})=>{p("deletePermissionSpaceRoot","driveId",t),p("deletePermissionSpaceRoot","permId",e);const a="/v1beta1/drives/{drive-id}/root/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{perm-id}",encodeURIComponent(String(e))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};U(l,n),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},getPermissionSpaceRoot:async(t,e,o={})=>{p("getPermissionSpaceRoot","driveId",t),p("getPermissionSpaceRoot","permId",e);const a="/v1beta1/drives/{drive-id}/root/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{perm-id}",encodeURIComponent(String(e))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"GET",...r,...o},i={},c={};U(l,n),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},getRoot:async(t,e={})=>{p("getRoot","driveId",t);const o="/v1.0/drives/{drive-id}/root".replace("{drive-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},inviteSpaceRoot:async(t,e,o={})=>{p("inviteSpaceRoot","driveId",t);const a="/v1beta1/drives/{drive-id}/root/invite".replace("{drive-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},listPermissionsSpaceRoot:async(t,e,o,a,s,r={})=>{p("listPermissionsSpaceRoot","driveId",t);const l="/v1beta1/drives/{drive-id}/root/permissions".replace("{drive-id}",encodeURIComponent(String(t))),i=new URL(l,P);let c;n&&(c=n.baseOptions);const d={method:"GET",...c,...r},O={},x={};U(d,n),e!==void 0&&(x.$filter=e),o&&(x.$select=Array.from(o).join(b.csv)),a!==void 0&&(x.$count=a),s!==void 0&&(x.$top=s),V(i,x);let w=c&&c.headers?c.headers:{};return d.headers={...O,...w,...r.headers},{url:v(i),options:d}},setPermissionPasswordSpaceRoot:async(t,e,o,a={})=>{p("setPermissionPasswordSpaceRoot","driveId",t),p("setPermissionPasswordSpaceRoot","permId",e),p("setPermissionPasswordSpaceRoot","sharingLinkPassword",o);const s="/v1beta1/drives/{drive-id}/root/permissions/{perm-id}/setPassword".replace("{drive-id}",encodeURIComponent(String(t))).replace("{perm-id}",encodeURIComponent(String(e))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"POST",...l,...a},c={},d={};U(i,n),c["Content-Type"]="application/json",V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},i.data=S(o,i,n),{url:v(r),options:i}},updatePermissionSpaceRoot:async(t,e,o,a={})=>{p("updatePermissionSpaceRoot","driveId",t),p("updatePermissionSpaceRoot","permId",e),p("updatePermissionSpaceRoot","permission",o);const s="/v1beta1/drives/{drive-id}/root/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(t))).replace("{perm-id}",encodeURIComponent(String(e))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"PATCH",...l,...a},c={},d={};U(i,n),c["Content-Type"]="application/json",V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},i.data=S(o,i,n),{url:v(r),options:i}}}},I=function(n){const t=ne(n);return{async createDriveItem(e,o,a){const s=await t.createDriveItem(e,o,a),r=n?.serverIndex??0,l=u["DrivesRootApi.createDriveItem"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async createLinkSpaceRoot(e,o,a){const s=await t.createLinkSpaceRoot(e,o,a),r=n?.serverIndex??0,l=u["DrivesRootApi.createLinkSpaceRoot"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async deletePermissionSpaceRoot(e,o,a){const s=await t.deletePermissionSpaceRoot(e,o,a),r=n?.serverIndex??0,l=u["DrivesRootApi.deletePermissionSpaceRoot"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async getPermissionSpaceRoot(e,o,a){const s=await t.getPermissionSpaceRoot(e,o,a),r=n?.serverIndex??0,l=u["DrivesRootApi.getPermissionSpaceRoot"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async getRoot(e,o){const a=await t.getRoot(e,o),s=n?.serverIndex??0,r=u["DrivesRootApi.getRoot"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async inviteSpaceRoot(e,o,a){const s=await t.inviteSpaceRoot(e,o,a),r=n?.serverIndex??0,l=u["DrivesRootApi.inviteSpaceRoot"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async listPermissionsSpaceRoot(e,o,a,s,r,l){const i=await t.listPermissionsSpaceRoot(e,o,a,s,r,l),c=n?.serverIndex??0,d=u["DrivesRootApi.listPermissionsSpaceRoot"]?.[c]?.url;return(O,x)=>A(i,h.axios,m,n)(O,d||x)},async setPermissionPasswordSpaceRoot(e,o,a,s){const r=await t.setPermissionPasswordSpaceRoot(e,o,a,s),l=n?.serverIndex??0,i=u["DrivesRootApi.setPermissionPasswordSpaceRoot"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async updatePermissionSpaceRoot(e,o,a,s){const r=await t.updatePermissionSpaceRoot(e,o,a,s),l=n?.serverIndex??0,i=u["DrivesRootApi.updatePermissionSpaceRoot"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)}}},We=function(n,t,e){const o=I(n);return{createDriveItem(a,s,r){return o.createDriveItem(a,s,r).then(l=>l(e,t))},createLinkSpaceRoot(a,s,r){return o.createLinkSpaceRoot(a,s,r).then(l=>l(e,t))},deletePermissionSpaceRoot(a,s,r){return o.deletePermissionSpaceRoot(a,s,r).then(l=>l(e,t))},getPermissionSpaceRoot(a,s,r){return o.getPermissionSpaceRoot(a,s,r).then(l=>l(e,t))},getRoot(a,s){return o.getRoot(a,s).then(r=>r(e,t))},inviteSpaceRoot(a,s,r){return o.inviteSpaceRoot(a,s,r).then(l=>l(e,t))},listPermissionsSpaceRoot(a,s,r,l,i,c){return o.listPermissionsSpaceRoot(a,s,r,l,i,c).then(d=>d(e,t))},setPermissionPasswordSpaceRoot(a,s,r,l){return o.setPermissionPasswordSpaceRoot(a,s,r,l).then(i=>i(e,t))},updatePermissionSpaceRoot(a,s,r,l){return o.updatePermissionSpaceRoot(a,s,r,l).then(i=>i(e,t))}}};class ze extends y{createDriveItem(t,e,o){return I(this.configuration).createDriveItem(t,e,o).then(a=>a(this.axios,this.basePath))}createLinkSpaceRoot(t,e,o){return I(this.configuration).createLinkSpaceRoot(t,e,o).then(a=>a(this.axios,this.basePath))}deletePermissionSpaceRoot(t,e,o){return I(this.configuration).deletePermissionSpaceRoot(t,e,o).then(a=>a(this.axios,this.basePath))}getPermissionSpaceRoot(t,e,o){return I(this.configuration).getPermissionSpaceRoot(t,e,o).then(a=>a(this.axios,this.basePath))}getRoot(t,e){return I(this.configuration).getRoot(t,e).then(o=>o(this.axios,this.basePath))}inviteSpaceRoot(t,e,o){return I(this.configuration).inviteSpaceRoot(t,e,o).then(a=>a(this.axios,this.basePath))}listPermissionsSpaceRoot(t,e,o,a,s,r){return I(this.configuration).listPermissionsSpaceRoot(t,e,o,a,s,r).then(l=>l(this.axios,this.basePath))}setPermissionPasswordSpaceRoot(t,e,o,a){return I(this.configuration).setPermissionPasswordSpaceRoot(t,e,o,a).then(s=>s(this.axios,this.basePath))}updatePermissionSpaceRoot(t,e,o,a){return I(this.configuration).updatePermissionSpaceRoot(t,e,o,a).then(s=>s(this.axios,this.basePath))}}const Je={LibreGraphPermissionsActionsAllowedValues:"@libre.graph.permissions.actions.allowedValues",LibreGraphPermissionsRolesAllowedValues:"@libre.graph.permissions.roles.allowedValues",Value:"value"},le=function(n){return{addUserToClass:async(t,e,o={})=>{p("addUserToClass","classId",t),p("addUserToClass","classMemberReference",e);const a="/v1.0/education/classes/{class-id}/members/$ref".replace("{class-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};await R(i,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},createClass:async(t,e={})=>{p("createClass","educationClass",t);const o="/v1.0/education/classes",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"POST",...s,...e},l={},i={};await R(l,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}},deleteClass:async(t,e={})=>{p("deleteClass","classId",t);const o="/v1.0/education/classes/{class-id}".replace("{class-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"DELETE",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},deleteUserFromClass:async(t,e,o={})=>{p("deleteUserFromClass","classId",t),p("deleteUserFromClass","userId",e);const a="/v1.0/education/classes/{class-id}/members/{user-id}/$ref".replace("{class-id}",encodeURIComponent(String(t))).replace("{user-id}",encodeURIComponent(String(e))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};await R(i,n),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},getClass:async(t,e={})=>{p("getClass","classId",t);const o="/v1.0/education/classes/{class-id}".replace("{class-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},listClassMembers:async(t,e={})=>{p("listClassMembers","classId",t);const o="/v1.0/education/classes/{class-id}/members".replace("{class-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},listClasses:async(t={})=>{const e="/v1.0/education/classes",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};await R(r,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}},updateClass:async(t,e,o={})=>{p("updateClass","classId",t),p("updateClass","educationClass",e);const a="/v1.0/education/classes/{class-id}".replace("{class-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"PATCH",...r,...o},i={},c={};await R(i,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}}}},D=function(n){const t=le(n);return{async addUserToClass(e,o,a){const s=await t.addUserToClass(e,o,a),r=n?.serverIndex??0,l=u["EducationClassApi.addUserToClass"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async createClass(e,o){const a=await t.createClass(e,o),s=n?.serverIndex??0,r=u["EducationClassApi.createClass"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async deleteClass(e,o){const a=await t.deleteClass(e,o),s=n?.serverIndex??0,r=u["EducationClassApi.deleteClass"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async deleteUserFromClass(e,o,a){const s=await t.deleteUserFromClass(e,o,a),r=n?.serverIndex??0,l=u["EducationClassApi.deleteUserFromClass"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async getClass(e,o){const a=await t.getClass(e,o),s=n?.serverIndex??0,r=u["EducationClassApi.getClass"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listClassMembers(e,o){const a=await t.listClassMembers(e,o),s=n?.serverIndex??0,r=u["EducationClassApi.listClassMembers"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listClasses(e){const o=await t.listClasses(e),a=n?.serverIndex??0,s=u["EducationClassApi.listClasses"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)},async updateClass(e,o,a){const s=await t.updateClass(e,o,a),r=n?.serverIndex??0,l=u["EducationClassApi.updateClass"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)}}},_e=function(n,t,e){const o=D(n);return{addUserToClass(a,s,r){return o.addUserToClass(a,s,r).then(l=>l(e,t))},createClass(a,s){return o.createClass(a,s).then(r=>r(e,t))},deleteClass(a,s){return o.deleteClass(a,s).then(r=>r(e,t))},deleteUserFromClass(a,s,r){return o.deleteUserFromClass(a,s,r).then(l=>l(e,t))},getClass(a,s){return o.getClass(a,s).then(r=>r(e,t))},listClassMembers(a,s){return o.listClassMembers(a,s).then(r=>r(e,t))},listClasses(a){return o.listClasses(a).then(s=>s(e,t))},updateClass(a,s,r){return o.updateClass(a,s,r).then(l=>l(e,t))}}};class Ke extends y{addUserToClass(t,e,o){return D(this.configuration).addUserToClass(t,e,o).then(a=>a(this.axios,this.basePath))}createClass(t,e){return D(this.configuration).createClass(t,e).then(o=>o(this.axios,this.basePath))}deleteClass(t,e){return D(this.configuration).deleteClass(t,e).then(o=>o(this.axios,this.basePath))}deleteUserFromClass(t,e,o){return D(this.configuration).deleteUserFromClass(t,e,o).then(a=>a(this.axios,this.basePath))}getClass(t,e){return D(this.configuration).getClass(t,e).then(o=>o(this.axios,this.basePath))}listClassMembers(t,e){return D(this.configuration).listClassMembers(t,e).then(o=>o(this.axios,this.basePath))}listClasses(t){return D(this.configuration).listClasses(t).then(e=>e(this.axios,this.basePath))}updateClass(t,e,o){return D(this.configuration).updateClass(t,e,o).then(a=>a(this.axios,this.basePath))}}const ie=function(n){return{addTeacherToClass:async(t,e,o={})=>{p("addTeacherToClass","classId",t),p("addTeacherToClass","classTeacherReference",e);const a="/v1.0/education/classes/{class-id}/teachers/$ref".replace("{class-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};await R(i,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},deleteTeacherFromClass:async(t,e,o={})=>{p("deleteTeacherFromClass","classId",t),p("deleteTeacherFromClass","userId",e);const a="/v1.0/education/classes/{class-id}/teachers/{user-id}/$ref".replace("{class-id}",encodeURIComponent(String(t))).replace("{user-id}",encodeURIComponent(String(e))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};await R(i,n),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},getTeachers:async(t,e={})=>{p("getTeachers","classId",t);const o="/v1.0/education/classes/{class-id}/teachers".replace("{class-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}}}},j=function(n){const t=ie(n);return{async addTeacherToClass(e,o,a){const s=await t.addTeacherToClass(e,o,a),r=n?.serverIndex??0,l=u["EducationClassTeachersApi.addTeacherToClass"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async deleteTeacherFromClass(e,o,a){const s=await t.deleteTeacherFromClass(e,o,a),r=n?.serverIndex??0,l=u["EducationClassTeachersApi.deleteTeacherFromClass"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async getTeachers(e,o){const a=await t.getTeachers(e,o),s=n?.serverIndex??0,r=u["EducationClassTeachersApi.getTeachers"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},Ye=function(n,t,e){const o=j(n);return{addTeacherToClass(a,s,r){return o.addTeacherToClass(a,s,r).then(l=>l(e,t))},deleteTeacherFromClass(a,s,r){return o.deleteTeacherFromClass(a,s,r).then(l=>l(e,t))},getTeachers(a,s){return o.getTeachers(a,s).then(r=>r(e,t))}}};class Xe extends y{addTeacherToClass(t,e,o){return j(this.configuration).addTeacherToClass(t,e,o).then(a=>a(this.axios,this.basePath))}deleteTeacherFromClass(t,e,o){return j(this.configuration).deleteTeacherFromClass(t,e,o).then(a=>a(this.axios,this.basePath))}getTeachers(t,e){return j(this.configuration).getTeachers(t,e).then(o=>o(this.axios,this.basePath))}}const ce=function(n){return{addClassToSchool:async(t,e,o={})=>{p("addClassToSchool","schoolId",t),p("addClassToSchool","classReference",e);const a="/v1.0/education/schools/{school-id}/classes/$ref".replace("{school-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};await R(i,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},addUserToSchool:async(t,e,o={})=>{p("addUserToSchool","schoolId",t),p("addUserToSchool","educationUserReference",e);const a="/v1.0/education/schools/{school-id}/users/$ref".replace("{school-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};await R(i,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},createSchool:async(t,e={})=>{p("createSchool","educationSchool",t);const o="/v1.0/education/schools",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"POST",...s,...e},l={},i={};await R(l,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}},deleteClassFromSchool:async(t,e,o={})=>{p("deleteClassFromSchool","schoolId",t),p("deleteClassFromSchool","classId",e);const a="/v1.0/education/schools/{school-id}/classes/{class-id}/$ref".replace("{school-id}",encodeURIComponent(String(t))).replace("{class-id}",encodeURIComponent(String(e))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};await R(i,n),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},deleteSchool:async(t,e={})=>{p("deleteSchool","schoolId",t);const o="/v1.0/education/schools/{school-id}".replace("{school-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"DELETE",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},deleteUserFromSchool:async(t,e,o={})=>{p("deleteUserFromSchool","schoolId",t),p("deleteUserFromSchool","userId",e);const a="/v1.0/education/schools/{school-id}/users/{user-id}/$ref".replace("{school-id}",encodeURIComponent(String(t))).replace("{user-id}",encodeURIComponent(String(e))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};await R(i,n),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},getSchool:async(t,e={})=>{p("getSchool","schoolId",t);const o="/v1.0/education/schools/{school-id}".replace("{school-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},listSchoolClasses:async(t,e={})=>{p("listSchoolClasses","schoolId",t);const o="/v1.0/education/schools/{school-id}/classes".replace("{school-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},listSchoolUsers:async(t,e={})=>{p("listSchoolUsers","schoolId",t);const o="/v1.0/education/schools/{school-id}/users".replace("{school-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},listSchools:async(t={})=>{const e="/v1.0/education/schools",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};await R(r,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}},updateSchool:async(t,e,o={})=>{p("updateSchool","schoolId",t),p("updateSchool","educationSchool",e);const a="/v1.0/education/schools/{school-id}".replace("{school-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"PATCH",...r,...o},i={},c={};await R(i,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}}}},C=function(n){const t=ce(n);return{async addClassToSchool(e,o,a){const s=await t.addClassToSchool(e,o,a),r=n?.serverIndex??0,l=u["EducationSchoolApi.addClassToSchool"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async addUserToSchool(e,o,a){const s=await t.addUserToSchool(e,o,a),r=n?.serverIndex??0,l=u["EducationSchoolApi.addUserToSchool"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async createSchool(e,o){const a=await t.createSchool(e,o),s=n?.serverIndex??0,r=u["EducationSchoolApi.createSchool"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async deleteClassFromSchool(e,o,a){const s=await t.deleteClassFromSchool(e,o,a),r=n?.serverIndex??0,l=u["EducationSchoolApi.deleteClassFromSchool"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async deleteSchool(e,o){const a=await t.deleteSchool(e,o),s=n?.serverIndex??0,r=u["EducationSchoolApi.deleteSchool"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async deleteUserFromSchool(e,o,a){const s=await t.deleteUserFromSchool(e,o,a),r=n?.serverIndex??0,l=u["EducationSchoolApi.deleteUserFromSchool"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async getSchool(e,o){const a=await t.getSchool(e,o),s=n?.serverIndex??0,r=u["EducationSchoolApi.getSchool"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listSchoolClasses(e,o){const a=await t.listSchoolClasses(e,o),s=n?.serverIndex??0,r=u["EducationSchoolApi.listSchoolClasses"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listSchoolUsers(e,o){const a=await t.listSchoolUsers(e,o),s=n?.serverIndex??0,r=u["EducationSchoolApi.listSchoolUsers"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listSchools(e){const o=await t.listSchools(e),a=n?.serverIndex??0,s=u["EducationSchoolApi.listSchools"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)},async updateSchool(e,o,a){const s=await t.updateSchool(e,o,a),r=n?.serverIndex??0,l=u["EducationSchoolApi.updateSchool"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)}}},Ze=function(n,t,e){const o=C(n);return{addClassToSchool(a,s,r){return o.addClassToSchool(a,s,r).then(l=>l(e,t))},addUserToSchool(a,s,r){return o.addUserToSchool(a,s,r).then(l=>l(e,t))},createSchool(a,s){return o.createSchool(a,s).then(r=>r(e,t))},deleteClassFromSchool(a,s,r){return o.deleteClassFromSchool(a,s,r).then(l=>l(e,t))},deleteSchool(a,s){return o.deleteSchool(a,s).then(r=>r(e,t))},deleteUserFromSchool(a,s,r){return o.deleteUserFromSchool(a,s,r).then(l=>l(e,t))},getSchool(a,s){return o.getSchool(a,s).then(r=>r(e,t))},listSchoolClasses(a,s){return o.listSchoolClasses(a,s).then(r=>r(e,t))},listSchoolUsers(a,s){return o.listSchoolUsers(a,s).then(r=>r(e,t))},listSchools(a){return o.listSchools(a).then(s=>s(e,t))},updateSchool(a,s,r){return o.updateSchool(a,s,r).then(l=>l(e,t))}}};class fe extends y{addClassToSchool(t,e,o){return C(this.configuration).addClassToSchool(t,e,o).then(a=>a(this.axios,this.basePath))}addUserToSchool(t,e,o){return C(this.configuration).addUserToSchool(t,e,o).then(a=>a(this.axios,this.basePath))}createSchool(t,e){return C(this.configuration).createSchool(t,e).then(o=>o(this.axios,this.basePath))}deleteClassFromSchool(t,e,o){return C(this.configuration).deleteClassFromSchool(t,e,o).then(a=>a(this.axios,this.basePath))}deleteSchool(t,e){return C(this.configuration).deleteSchool(t,e).then(o=>o(this.axios,this.basePath))}deleteUserFromSchool(t,e,o){return C(this.configuration).deleteUserFromSchool(t,e,o).then(a=>a(this.axios,this.basePath))}getSchool(t,e){return C(this.configuration).getSchool(t,e).then(o=>o(this.axios,this.basePath))}listSchoolClasses(t,e){return C(this.configuration).listSchoolClasses(t,e).then(o=>o(this.axios,this.basePath))}listSchoolUsers(t,e){return C(this.configuration).listSchoolUsers(t,e).then(o=>o(this.axios,this.basePath))}listSchools(t){return C(this.configuration).listSchools(t).then(e=>e(this.axios,this.basePath))}updateSchool(t,e,o){return C(this.configuration).updateSchool(t,e,o).then(a=>a(this.axios,this.basePath))}}const de=function(n){return{createEducationUser:async(t,e={})=>{p("createEducationUser","educationUser",t);const o="/v1.0/education/users",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"POST",...s,...e},l={},i={};await R(l,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}},deleteEducationUser:async(t,e={})=>{p("deleteEducationUser","userId",t);const o="/v1.0/education/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"DELETE",...s,...e},l={},i={};await R(l,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},getEducationUser:async(t,e,o={})=>{p("getEducationUser","userId",t);const a="/v1.0/education/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"GET",...r,...o},i={},c={};await R(i,n),e&&(c.$expand=Array.from(e).join(b.csv)),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},listEducationUsers:async(t,e,o={})=>{const a="/v1.0/education/users",s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"GET",...r,...o},i={},c={};await R(i,n),t&&(c.$orderby=Array.from(t).join(b.csv)),e&&(c.$expand=Array.from(e).join(b.csv)),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},updateEducationUser:async(t,e,o={})=>{p("updateEducationUser","userId",t),p("updateEducationUser","educationUser",e);const a="/v1.0/education/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"PATCH",...r,...o},i={},c={};await R(i,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}}}},F=function(n){const t=de(n);return{async createEducationUser(e,o){const a=await t.createEducationUser(e,o),s=n?.serverIndex??0,r=u["EducationUserApi.createEducationUser"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async deleteEducationUser(e,o){const a=await t.deleteEducationUser(e,o),s=n?.serverIndex??0,r=u["EducationUserApi.deleteEducationUser"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async getEducationUser(e,o,a){const s=await t.getEducationUser(e,o,a),r=n?.serverIndex??0,l=u["EducationUserApi.getEducationUser"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async listEducationUsers(e,o,a){const s=await t.listEducationUsers(e,o,a),r=n?.serverIndex??0,l=u["EducationUserApi.listEducationUsers"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async updateEducationUser(e,o,a){const s=await t.updateEducationUser(e,o,a),r=n?.serverIndex??0,l=u["EducationUserApi.updateEducationUser"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)}}},es=function(n,t,e){const o=F(n);return{createEducationUser(a,s){return o.createEducationUser(a,s).then(r=>r(e,t))},deleteEducationUser(a,s){return o.deleteEducationUser(a,s).then(r=>r(e,t))},getEducationUser(a,s,r){return o.getEducationUser(a,s,r).then(l=>l(e,t))},listEducationUsers(a,s,r){return o.listEducationUsers(a,s,r).then(l=>l(e,t))},updateEducationUser(a,s,r){return o.updateEducationUser(a,s,r).then(l=>l(e,t))}}};class ss extends y{createEducationUser(t,e){return F(this.configuration).createEducationUser(t,e).then(o=>o(this.axios,this.basePath))}deleteEducationUser(t,e){return F(this.configuration).deleteEducationUser(t,e).then(o=>o(this.axios,this.basePath))}getEducationUser(t,e,o){return F(this.configuration).getEducationUser(t,e,o).then(a=>a(this.axios,this.basePath))}listEducationUsers(t,e,o){return F(this.configuration).listEducationUsers(t,e,o).then(a=>a(this.axios,this.basePath))}updateEducationUser(t,e,o){return F(this.configuration).updateEducationUser(t,e,o).then(a=>a(this.axios,this.basePath))}}const rs={MemberOf:"memberOf"},as={DisplayName:"displayName",DisplayNameDesc:"displayName desc",Mail:"mail",MailDesc:"mail desc",OnPremisesSamAccountName:"onPremisesSamAccountName",OnPremisesSamAccountNameDesc:"onPremisesSamAccountName desc"},ts={MemberOf:"memberOf"},pe=function(n){return{addMember:async(t,e,o={})=>{p("addMember","groupId",t),p("addMember","memberReference",e);const a="/v1.0/groups/{group-id}/members/$ref".replace("{group-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},deleteGroup:async(t,e,o={})=>{p("deleteGroup","groupId",t);const a="/v1.0/groups/{group-id}".replace("{group-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};U(l,n),e!=null&&(i["If-Match"]=String(e)),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},deleteMember:async(t,e,o,a={})=>{p("deleteMember","groupId",t),p("deleteMember","directoryObjectId",e);const s="/v1.0/groups/{group-id}/members/{directory-object-id}/$ref".replace("{group-id}",encodeURIComponent(String(t))).replace("{directory-object-id}",encodeURIComponent(String(e))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"DELETE",...l,...a},c={},d={};U(i,n),o!=null&&(c["If-Match"]=String(o)),V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},{url:v(r),options:i}},getGroup:async(t,e,o,a={})=>{p("getGroup","groupId",t);const s="/v1.0/groups/{group-id}".replace("{group-id}",encodeURIComponent(String(t))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"GET",...l,...a},c={},d={};U(i,n),e&&(d.$select=Array.from(e).join(b.csv)),o&&(d.$expand=Array.from(o).join(b.csv)),V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},{url:v(r),options:i}},listMembers:async(t,e={})=>{p("listMembers","groupId",t);const o="/v1.0/groups/{group-id}/members".replace("{group-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},updateGroup:async(t,e,o={})=>{p("updateGroup","groupId",t),p("updateGroup","group",e);const a="/v1.0/groups/{group-id}".replace("{group-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"PATCH",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}}}},T=function(n){const t=pe(n);return{async addMember(e,o,a){const s=await t.addMember(e,o,a),r=n?.serverIndex??0,l=u["GroupApi.addMember"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async deleteGroup(e,o,a){const s=await t.deleteGroup(e,o,a),r=n?.serverIndex??0,l=u["GroupApi.deleteGroup"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async deleteMember(e,o,a,s){const r=await t.deleteMember(e,o,a,s),l=n?.serverIndex??0,i=u["GroupApi.deleteMember"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async getGroup(e,o,a,s){const r=await t.getGroup(e,o,a,s),l=n?.serverIndex??0,i=u["GroupApi.getGroup"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async listMembers(e,o){const a=await t.listMembers(e,o),s=n?.serverIndex??0,r=u["GroupApi.listMembers"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async updateGroup(e,o,a){const s=await t.updateGroup(e,o,a),r=n?.serverIndex??0,l=u["GroupApi.updateGroup"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)}}},os=function(n,t,e){const o=T(n);return{addMember(a,s,r){return o.addMember(a,s,r).then(l=>l(e,t))},deleteGroup(a,s,r){return o.deleteGroup(a,s,r).then(l=>l(e,t))},deleteMember(a,s,r,l){return o.deleteMember(a,s,r,l).then(i=>i(e,t))},getGroup(a,s,r,l){return o.getGroup(a,s,r,l).then(i=>i(e,t))},listMembers(a,s){return o.listMembers(a,s).then(r=>r(e,t))},updateGroup(a,s,r){return o.updateGroup(a,s,r).then(l=>l(e,t))}}};class ns extends y{addMember(t,e,o){return T(this.configuration).addMember(t,e,o).then(a=>a(this.axios,this.basePath))}deleteGroup(t,e,o){return T(this.configuration).deleteGroup(t,e,o).then(a=>a(this.axios,this.basePath))}deleteMember(t,e,o,a){return T(this.configuration).deleteMember(t,e,o,a).then(s=>s(this.axios,this.basePath))}getGroup(t,e,o,a){return T(this.configuration).getGroup(t,e,o,a).then(s=>s(this.axios,this.basePath))}listMembers(t,e){return T(this.configuration).listMembers(t,e).then(o=>o(this.axios,this.basePath))}updateGroup(t,e,o){return T(this.configuration).updateGroup(t,e,o).then(a=>a(this.axios,this.basePath))}}const ls={Id:"id",Description:"description",DisplayName:"displayName",Members:"members"},is={Members:"members"},he=function(n){return{createGroup:async(t,e={})=>{p("createGroup","group",t);const o="/v1.0/groups",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"POST",...s,...e},l={},i={};U(r,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}},listGroups:async(t,e,o,a,s={})=>{const r="/v1.0/groups",l=new URL(r,P);let i;n&&(i=n.baseOptions);const c={method:"GET",...i,...s},d={},O={};U(c,n),t!==void 0&&(O.$search=t),e&&(O.$orderby=Array.from(e).join(b.csv)),o&&(O.$select=Array.from(o).join(b.csv)),a&&(O.$expand=Array.from(a).join(b.csv)),V(l,O);let x=i&&i.headers?i.headers:{};return c.headers={...d,...x,...s.headers},{url:v(l),options:c}}}},N=function(n){const t=he(n);return{async createGroup(e,o){const a=await t.createGroup(e,o),s=n?.serverIndex??0,r=u["GroupsApi.createGroup"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listGroups(e,o,a,s,r){const l=await t.listGroups(e,o,a,s,r),i=n?.serverIndex??0,c=u["GroupsApi.listGroups"]?.[i]?.url;return(d,O)=>A(l,h.axios,m,n)(d,c||O)}}},cs=function(n,t,e){const o=N(n);return{createGroup(a,s){return o.createGroup(a,s).then(r=>r(e,t))},listGroups(a,s,r,l,i){return o.listGroups(a,s,r,l,i).then(c=>c(e,t))}}};class ds extends y{createGroup(t,e){return N(this.configuration).createGroup(t,e).then(o=>o(this.axios,this.basePath))}listGroups(t,e,o,a,s){return N(this.configuration).listGroups(t,e,o,a,s).then(r=>r(this.axios,this.basePath))}}const ps={DisplayName:"displayName",DisplayNameDesc:"displayName desc"},hs={Id:"id",Description:"description",DisplayName:"displayName",Mail:"mail",Members:"members"},ms={Members:"members"},me=function(n){return{changeOwnPassword:async(t,e={})=>{p("changeOwnPassword","passwordChange",t);const o="/v1.0/me/changePassword",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"POST",...s,...e},l={},i={};U(r,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}}}},Y=function(n){const t=me(n);return{async changeOwnPassword(e,o){const a=await t.changeOwnPassword(e,o),s=n?.serverIndex??0,r=u["MeChangepasswordApi.changeOwnPassword"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},us=function(n,t,e){const o=Y(n);return{changeOwnPassword(a,s){return o.changeOwnPassword(a,s).then(r=>r(e,t))}}};class Ps extends y{changeOwnPassword(t,e){return Y(this.configuration).changeOwnPassword(t,e).then(o=>o(this.axios,this.basePath))}}const ue=function(n){return{getHome:async(t={})=>{const e="/v1.0/me/drive",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};U(s,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}},listSharedByMe:async(t,e={})=>{const o="/v1beta1/me/drive/sharedByMe",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),t&&(i.$expand=Array.from(t).join(b.csv)),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},listSharedWithMe:async(t,e={})=>{const o="/v1beta1/me/drive/sharedWithMe",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),t&&(i.$expand=Array.from(t).join(b.csv)),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}}}},g=function(n){const t=ue(n);return{async getHome(e){const o=await t.getHome(e),a=n?.serverIndex??0,s=u["MeDriveApi.getHome"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)},async listSharedByMe(e,o){const a=await t.listSharedByMe(e,o),s=n?.serverIndex??0,r=u["MeDriveApi.listSharedByMe"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listSharedWithMe(e,o){const a=await t.listSharedWithMe(e,o),s=n?.serverIndex??0,r=u["MeDriveApi.listSharedWithMe"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},Vs=function(n,t,e){const o=g(n);return{getHome(a){return o.getHome(a).then(s=>s(e,t))},listSharedByMe(a,s){return o.listSharedByMe(a,s).then(r=>r(e,t))},listSharedWithMe(a,s){return o.listSharedWithMe(a,s).then(r=>r(e,t))}}};class vs extends y{getHome(t){return g(this.configuration).getHome(t).then(e=>e(this.axios,this.basePath))}listSharedByMe(t,e){return g(this.configuration).listSharedByMe(t,e).then(o=>o(this.axios,this.basePath))}listSharedWithMe(t,e){return g(this.configuration).listSharedWithMe(t,e).then(o=>o(this.axios,this.basePath))}}const As={Thumbnails:"thumbnails"},Os={Thumbnails:"thumbnails"},Pe=function(n){return{homeGetRoot:async(t={})=>{const e="/v1.0/me/drive/root",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};U(s,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}}}},X=function(n){const t=Pe(n);return{async homeGetRoot(e){const o=await t.homeGetRoot(e),a=n?.serverIndex??0,s=u["MeDriveRootApi.homeGetRoot"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)}}},Us=function(n,t,e){const o=X(n);return{homeGetRoot(a){return o.homeGetRoot(a).then(s=>s(e,t))}}};class Ss extends y{homeGetRoot(t){return X(this.configuration).homeGetRoot(t).then(e=>e(this.axios,this.basePath))}}const Ve=function(n){return{homeGetChildren:async(t={})=>{const e="/v1.0/me/drive/root/children",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};U(s,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}}}},Z=function(n){const t=Ve(n);return{async homeGetChildren(e){const o=await t.homeGetChildren(e),a=n?.serverIndex??0,s=u["MeDriveRootChildrenApi.homeGetChildren"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)}}},xs=function(n,t,e){const o=Z(n);return{homeGetChildren(a){return o.homeGetChildren(a).then(s=>s(e,t))}}};class Rs extends y{homeGetChildren(t){return Z(this.configuration).homeGetChildren(t).then(e=>e(this.axios,this.basePath))}}const ve=function(n){return{listMyDrives:async(t,e,o={})=>{const a="/v1.0/me/drives",s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"GET",...r,...o},i={},c={};U(l,n),t!==void 0&&(c.$orderby=t),e!==void 0&&(c.$filter=e),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},listMyDrivesBeta:async(t,e,o,a,s={})=>{const r="/v1beta1/me/drives",l=new URL(r,P);let i;n&&(i=n.baseOptions);const c={method:"GET",...i,...s},d={},O={};U(c,n),t!==void 0&&(O.$orderby=t),e!==void 0&&(O.$filter=e),o!==void 0&&(O.$expand=o),a&&(O.$select=Array.from(a).join(b.csv)),V(l,O);let x=i&&i.headers?i.headers:{};return c.headers={...d,...x,...s.headers},{url:v(l),options:c}}}},k=function(n){const t=ve(n);return{async listMyDrives(e,o,a){const s=await t.listMyDrives(e,o,a),r=n?.serverIndex??0,l=u["MeDrivesApi.listMyDrives"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async listMyDrivesBeta(e,o,a,s,r){const l=await t.listMyDrivesBeta(e,o,a,s,r),i=n?.serverIndex??0,c=u["MeDrivesApi.listMyDrivesBeta"]?.[i]?.url;return(d,O)=>A(l,h.axios,m,n)(d,c||O)}}},ys=function(n,t,e){const o=k(n);return{listMyDrives(a,s,r){return o.listMyDrives(a,s,r).then(l=>l(e,t))},listMyDrivesBeta(a,s,r,l,i){return o.listMyDrivesBeta(a,s,r,l,i).then(c=>c(e,t))}}};class bs extends y{listMyDrives(t,e,o){return k(this.configuration).listMyDrives(t,e,o).then(a=>a(this.axios,this.basePath))}listMyDrivesBeta(t,e,o,a,s){return k(this.configuration).listMyDrivesBeta(t,e,o,a,s).then(r=>r(this.axios,this.basePath))}}const Cs={LibreGraphHasTrashedItems:"@libre.graph.hasTrashedItems"},Ae=function(n){return{deleteOwnUserPhoto:async(t={})=>{const e="/v1.0/me/photo/$value",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"DELETE",...a,...t},r={},l={};U(s,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}},getOwnUserPhoto:async(t={})=>{const e="/v1.0/me/photo/$value",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};U(s,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}},updateOwnUserPhotoPatch:async(t,e={})=>{const o="/v1.0/me/photo/$value",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"PATCH",...s,...e},l={},i={};U(r,n),l["Content-Type"]="image/jpeg",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}},updateOwnUserPhotoPut:async(t,e={})=>{const o="/v1.0/me/photo/$value",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"PUT",...s,...e},l={},i={};U(r,n),l["Content-Type"]="image/jpeg",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}}}},M=function(n){const t=Ae(n);return{async deleteOwnUserPhoto(e){const o=await t.deleteOwnUserPhoto(e),a=n?.serverIndex??0,s=u["MePhotoApi.deleteOwnUserPhoto"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)},async getOwnUserPhoto(e){const o=await t.getOwnUserPhoto(e),a=n?.serverIndex??0,s=u["MePhotoApi.getOwnUserPhoto"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)},async updateOwnUserPhotoPatch(e,o){const a=await t.updateOwnUserPhotoPatch(e,o),s=n?.serverIndex??0,r=u["MePhotoApi.updateOwnUserPhotoPatch"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async updateOwnUserPhotoPut(e,o){const a=await t.updateOwnUserPhotoPut(e,o),s=n?.serverIndex??0,r=u["MePhotoApi.updateOwnUserPhotoPut"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},ws=function(n,t,e){const o=M(n);return{deleteOwnUserPhoto(a){return o.deleteOwnUserPhoto(a).then(s=>s(e,t))},getOwnUserPhoto(a){return o.getOwnUserPhoto(a).then(s=>s(e,t))},updateOwnUserPhotoPatch(a,s){return o.updateOwnUserPhotoPatch(a,s).then(r=>r(e,t))},updateOwnUserPhotoPut(a,s){return o.updateOwnUserPhotoPut(a,s).then(r=>r(e,t))}}};class Is extends y{deleteOwnUserPhoto(t){return M(this.configuration).deleteOwnUserPhoto(t).then(e=>e(this.axios,this.basePath))}getOwnUserPhoto(t){return M(this.configuration).getOwnUserPhoto(t).then(e=>e(this.axios,this.basePath))}updateOwnUserPhotoPatch(t,e){return M(this.configuration).updateOwnUserPhotoPatch(t,e).then(o=>o(this.axios,this.basePath))}updateOwnUserPhotoPut(t,e){return M(this.configuration).updateOwnUserPhotoPut(t,e).then(o=>o(this.axios,this.basePath))}}const Oe=function(n){return{getOwnUser:async(t,e={})=>{const o="/v1.0/me",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),t&&(i.$expand=Array.from(t).join(b.csv)),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},updateOwnUser:async(t,e={})=>{const o="/v1.0/me",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"PATCH",...s,...e},l={},i={};U(r,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}}}},W=function(n){const t=Oe(n);return{async getOwnUser(e,o){const a=await t.getOwnUser(e,o),s=n?.serverIndex??0,r=u["MeUserApi.getOwnUser"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async updateOwnUser(e,o){const a=await t.updateOwnUser(e,o),s=n?.serverIndex??0,r=u["MeUserApi.updateOwnUser"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},Ds=function(n,t,e){const o=W(n);return{getOwnUser(a,s){return o.getOwnUser(a,s).then(r=>r(e,t))},updateOwnUser(a,s){return o.updateOwnUser(a,s).then(r=>r(e,t))}}};class Es extends y{getOwnUser(t,e){return W(this.configuration).getOwnUser(t,e).then(o=>o(this.axios,this.basePath))}updateOwnUser(t,e){return W(this.configuration).updateOwnUser(t,e).then(o=>o(this.axios,this.basePath))}}const Ts={MemberOf:"memberOf"},Ue=function(n){return{getPermissionRoleDefinition:async(t,e={})=>{p("getPermissionRoleDefinition","roleId",t);const o="/v1beta1/roleManagement/permissions/roleDefinitions/{role-id}".replace("{role-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}},listPermissionRoleDefinitions:async(t={})=>{const e="/v1beta1/roleManagement/permissions/roleDefinitions",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};U(s,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}}}},z=function(n){const t=Ue(n);return{async getPermissionRoleDefinition(e,o){const a=await t.getPermissionRoleDefinition(e,o),s=n?.serverIndex??0,r=u["RoleManagementApi.getPermissionRoleDefinition"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listPermissionRoleDefinitions(e){const o=await t.listPermissionRoleDefinitions(e),a=n?.serverIndex??0,s=u["RoleManagementApi.listPermissionRoleDefinitions"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)}}},Fs=function(n,t,e){const o=z(n);return{getPermissionRoleDefinition(a,s){return o.getPermissionRoleDefinition(a,s).then(r=>r(e,t))},listPermissionRoleDefinitions(a){return o.listPermissionRoleDefinitions(a).then(s=>s(e,t))}}};class Bs extends y{getPermissionRoleDefinition(t,e){return z(this.configuration).getPermissionRoleDefinition(t,e).then(o=>o(this.axios,this.basePath))}listPermissionRoleDefinitions(t){return z(this.configuration).listPermissionRoleDefinitions(t).then(e=>e(this.axios,this.basePath))}}const Se=function(n){return{assignTags:async(t,e={})=>{const o="/v1.0/extensions/org.libregraph/tags",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"PUT",...s,...e},l={},i={};U(r,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}},getTags:async(t={})=>{const e="/v1.0/extensions/org.libregraph/tags",o=new URL(e,P);let a;n&&(a=n.baseOptions);const s={method:"GET",...a,...t},r={},l={};U(s,n),V(o,l);let i=a&&a.headers?a.headers:{};return s.headers={...r,...i,...t.headers},{url:v(o),options:s}},unassignTags:async(t,e={})=>{const o="/v1.0/extensions/org.libregraph/tags",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"DELETE",...s,...e},l={},i={};U(r,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}}}},H=function(n){const t=Se(n);return{async assignTags(e,o){const a=await t.assignTags(e,o),s=n?.serverIndex??0,r=u["TagsApi.assignTags"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async getTags(e){const o=await t.getTags(e),a=n?.serverIndex??0,s=u["TagsApi.getTags"]?.[a]?.url;return(r,l)=>A(o,h.axios,m,n)(r,s||l)},async unassignTags(e,o){const a=await t.unassignTags(e,o),s=n?.serverIndex??0,r=u["TagsApi.unassignTags"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},Ms=function(n,t,e){const o=H(n);return{assignTags(a,s){return o.assignTags(a,s).then(r=>r(e,t))},getTags(a){return o.getTags(a).then(s=>s(e,t))},unassignTags(a,s){return o.unassignTags(a,s).then(r=>r(e,t))}}};class Ls extends y{assignTags(t,e){return H(this.configuration).assignTags(t,e).then(o=>o(this.axios,this.basePath))}getTags(t){return H(this.configuration).getTags(t).then(e=>e(this.axios,this.basePath))}unassignTags(t,e){return H(this.configuration).unassignTags(t,e).then(o=>o(this.axios,this.basePath))}}const xe=function(n){return{deleteUser:async(t,e,o={})=>{p("deleteUser","userId",t);const a="/v1.0/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"DELETE",...r,...o},i={},c={};U(l,n),e!=null&&(i["If-Match"]=String(e)),V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},{url:v(s),options:l}},exportPersonalData:async(t,e,o={})=>{p("exportPersonalData","userId",t);const a="/v1.0/users/{user-id}/exportPersonalData".replace("{user-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},getUser:async(t,e,o,a={})=>{p("getUser","userId",t);const s="/v1.0/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"GET",...l,...a},c={},d={};U(i,n),e&&(d.$select=Array.from(e).join(b.csv)),o&&(d.$expand=Array.from(o).join(b.csv)),V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},{url:v(r),options:i}},updateUser:async(t,e,o={})=>{p("updateUser","userId",t),p("updateUser","userUpdate",e);const a="/v1.0/users/{user-id}".replace("{user-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"PATCH",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}}}},L=function(n){const t=xe(n);return{async deleteUser(e,o,a){const s=await t.deleteUser(e,o,a),r=n?.serverIndex??0,l=u["UserApi.deleteUser"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async exportPersonalData(e,o,a){const s=await t.exportPersonalData(e,o,a),r=n?.serverIndex??0,l=u["UserApi.exportPersonalData"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async getUser(e,o,a,s){const r=await t.getUser(e,o,a,s),l=n?.serverIndex??0,i=u["UserApi.getUser"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async updateUser(e,o,a){const s=await t.updateUser(e,o,a),r=n?.serverIndex??0,l=u["UserApi.updateUser"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)}}},Gs=function(n,t,e){const o=L(n);return{deleteUser(a,s,r){return o.deleteUser(a,s,r).then(l=>l(e,t))},exportPersonalData(a,s,r){return o.exportPersonalData(a,s,r).then(l=>l(e,t))},getUser(a,s,r,l){return o.getUser(a,s,r,l).then(i=>i(e,t))},updateUser(a,s,r){return o.updateUser(a,s,r).then(l=>l(e,t))}}};class js extends y{deleteUser(t,e,o){return L(this.configuration).deleteUser(t,e,o).then(a=>a(this.axios,this.basePath))}exportPersonalData(t,e,o){return L(this.configuration).exportPersonalData(t,e,o).then(a=>a(this.axios,this.basePath))}getUser(t,e,o,a){return L(this.configuration).getUser(t,e,o,a).then(s=>s(this.axios,this.basePath))}updateUser(t,e,o){return L(this.configuration).updateUser(t,e,o).then(a=>a(this.axios,this.basePath))}}const gs={Id:"id",DisplayName:"displayName",Drive:"drive",Drives:"drives",Mail:"mail",MemberOf:"memberOf",OnPremisesSamAccountName:"onPremisesSamAccountName",Surname:"surname"},Hs={Drive:"drive",Drives:"drives",MemberOf:"memberOf",AppRoleAssignments:"appRoleAssignments"},Re=function(n){return{userCreateAppRoleAssignments:async(t,e,o={})=>{p("userCreateAppRoleAssignments","userId",t),p("userCreateAppRoleAssignments","appRoleAssignment",e);const a="/v1.0/users/{user-id}/appRoleAssignments".replace("{user-id}",encodeURIComponent(String(t))),s=new URL(a,P);let r;n&&(r=n.baseOptions);const l={method:"POST",...r,...o},i={},c={};U(l,n),i["Content-Type"]="application/json",V(s,c);let d=r&&r.headers?r.headers:{};return l.headers={...i,...d,...o.headers},l.data=S(e,l,n),{url:v(s),options:l}},userDeleteAppRoleAssignments:async(t,e,o,a={})=>{p("userDeleteAppRoleAssignments","userId",t),p("userDeleteAppRoleAssignments","appRoleAssignmentId",e);const s="/v1.0/users/{user-id}/appRoleAssignments/{appRoleAssignment-id}".replace("{user-id}",encodeURIComponent(String(t))).replace("{appRoleAssignment-id}",encodeURIComponent(String(e))),r=new URL(s,P);let l;n&&(l=n.baseOptions);const i={method:"DELETE",...l,...a},c={},d={};U(i,n),o!=null&&(c["If-Match"]=String(o)),V(r,d);let O=l&&l.headers?l.headers:{};return i.headers={...c,...O,...a.headers},{url:v(r),options:i}},userListAppRoleAssignments:async(t,e={})=>{p("userListAppRoleAssignments","userId",t);const o="/v1.0/users/{user-id}/appRoleAssignments".replace("{user-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}}}},$=function(n){const t=Re(n);return{async userCreateAppRoleAssignments(e,o,a){const s=await t.userCreateAppRoleAssignments(e,o,a),r=n?.serverIndex??0,l=u["UserAppRoleAssignmentApi.userCreateAppRoleAssignments"]?.[r]?.url;return(i,c)=>A(s,h.axios,m,n)(i,l||c)},async userDeleteAppRoleAssignments(e,o,a,s){const r=await t.userDeleteAppRoleAssignments(e,o,a,s),l=n?.serverIndex??0,i=u["UserAppRoleAssignmentApi.userDeleteAppRoleAssignments"]?.[l]?.url;return(c,d)=>A(r,h.axios,m,n)(c,i||d)},async userListAppRoleAssignments(e,o){const a=await t.userListAppRoleAssignments(e,o),s=n?.serverIndex??0,r=u["UserAppRoleAssignmentApi.userListAppRoleAssignments"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},$s=function(n,t,e){const o=$(n);return{userCreateAppRoleAssignments(a,s,r){return o.userCreateAppRoleAssignments(a,s,r).then(l=>l(e,t))},userDeleteAppRoleAssignments(a,s,r,l){return o.userDeleteAppRoleAssignments(a,s,r,l).then(i=>i(e,t))},userListAppRoleAssignments(a,s){return o.userListAppRoleAssignments(a,s).then(r=>r(e,t))}}};class qs extends y{userCreateAppRoleAssignments(t,e,o){return $(this.configuration).userCreateAppRoleAssignments(t,e,o).then(a=>a(this.axios,this.basePath))}userDeleteAppRoleAssignments(t,e,o,a){return $(this.configuration).userDeleteAppRoleAssignments(t,e,o,a).then(s=>s(this.axios,this.basePath))}userListAppRoleAssignments(t,e){return $(this.configuration).userListAppRoleAssignments(t,e).then(o=>o(this.axios,this.basePath))}}const ye=function(n){return{getUserPhoto:async(t,e={})=>{p("getUserPhoto","userId",t);const o="/v1.0/users/{user-id}/photo/$value".replace("{user-id}",encodeURIComponent(String(t))),a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"GET",...s,...e},l={},i={};U(r,n),V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},{url:v(a),options:r}}}},f=function(n){const t=ye(n);return{async getUserPhoto(e,o){const a=await t.getUserPhoto(e,o),s=n?.serverIndex??0,r=u["UserPhotoApi.getUserPhoto"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)}}},Qs=function(n,t,e){const o=f(n);return{getUserPhoto(a,s){return o.getUserPhoto(a,s).then(r=>r(e,t))}}};class Ns extends y{getUserPhoto(t,e){return f(this.configuration).getUserPhoto(t,e).then(o=>o(this.axios,this.basePath))}}const be=function(n){return{createUser:async(t,e={})=>{p("createUser","user",t);const o="/v1.0/users",a=new URL(o,P);let s;n&&(s=n.baseOptions);const r={method:"POST",...s,...e},l={},i={};U(r,n),l["Content-Type"]="application/json",V(a,i);let c=s&&s.headers?s.headers:{};return r.headers={...l,...c,...e.headers},r.data=S(t,r,n),{url:v(a),options:r}},listUsers:async(t,e,o,a,s,r={})=>{const l="/v1.0/users",i=new URL(l,P);let c;n&&(c=n.baseOptions);const d={method:"GET",...c,...r},O={},x={};U(d,n),t!==void 0&&(x.$search=t),e!==void 0&&(x.$filter=e),o&&(x.$orderby=Array.from(o).join(b.csv)),a&&(x.$select=Array.from(a).join(b.csv)),s&&(x.$expand=Array.from(s).join(b.csv)),V(i,x);let w=c&&c.headers?c.headers:{};return d.headers={...O,...w,...r.headers},{url:v(i),options:d}}}},J=function(n){const t=be(n);return{async createUser(e,o){const a=await t.createUser(e,o),s=n?.serverIndex??0,r=u["UsersApi.createUser"]?.[s]?.url;return(l,i)=>A(a,h.axios,m,n)(l,r||i)},async listUsers(e,o,a,s,r,l){const i=await t.listUsers(e,o,a,s,r,l),c=n?.serverIndex??0,d=u["UsersApi.listUsers"]?.[c]?.url;return(O,x)=>A(i,h.axios,m,n)(O,d||x)}}},ks=function(n,t,e){const o=J(n);return{createUser(a,s){return o.createUser(a,s).then(r=>r(e,t))},listUsers(a,s,r,l,i,c){return o.listUsers(a,s,r,l,i,c).then(d=>d(e,t))}}};class Ws extends y{createUser(t,e){return J(this.configuration).createUser(t,e).then(o=>o(this.axios,this.basePath))}listUsers(t,e,o,a,s,r){return J(this.configuration).listUsers(t,e,o,a,s,r).then(l=>l(this.axios,this.basePath))}}const zs={DisplayName:"displayName",DisplayNameDesc:"displayName desc",Mail:"mail",MailDesc:"mail desc",OnPremisesSamAccountName:"onPremisesSamAccountName",OnPremisesSamAccountNameDesc:"onPremisesSamAccountName desc"},Js={Id:"id",DisplayName:"displayName",Mail:"mail",MemberOf:"memberOf",OnPremisesSamAccountName:"onPremisesSamAccountName",Surname:"surname"},_s={Drive:"drive",Drives:"drives",MemberOf:"memberOf",AppRoleAssignments:"appRoleAssignments"};class Ks{apiKey;username;password;accessToken;basePath;serverIndex;baseOptions;formDataCtor;constructor(t={}){this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions={...t.baseOptions,headers:{...t.baseOptions?.headers}},this.formDataCtor=t.formDataCtor}isJsonMime(t){const e=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(e.test(t)||t.toLowerCase()==="application/json-patch+json")}}exports.ActivitiesApi=Te;exports.ActivitiesApiAxiosParamCreator=ee;exports.ActivitiesApiFactory=Ee;exports.ActivitiesApiFp=K;exports.ApplicationsApi=Be;exports.ApplicationsApiAxiosParamCreator=se;exports.ApplicationsApiFactory=Fe;exports.ApplicationsApiFp=q;exports.Configuration=Ks;exports.DriveItemApi=Le;exports.DriveItemApiAxiosParamCreator=re;exports.DriveItemApiFactory=Me;exports.DriveItemApiFp=G;exports.DrivesApi=je;exports.DrivesApiAxiosParamCreator=ae;exports.DrivesApiFactory=Ge;exports.DrivesApiFp=B;exports.DrivesGetDrivesApi=$e;exports.DrivesGetDrivesApiAxiosParamCreator=te;exports.DrivesGetDrivesApiFactory=He;exports.DrivesGetDrivesApiFp=Q;exports.DrivesPermissionsApi=Ne;exports.DrivesPermissionsApiAxiosParamCreator=oe;exports.DrivesPermissionsApiFactory=Qe;exports.DrivesPermissionsApiFp=E;exports.DrivesRootApi=ze;exports.DrivesRootApiAxiosParamCreator=ne;exports.DrivesRootApiFactory=We;exports.DrivesRootApiFp=I;exports.EducationClassApi=Ke;exports.EducationClassApiAxiosParamCreator=le;exports.EducationClassApiFactory=_e;exports.EducationClassApiFp=D;exports.EducationClassClassificationEnum=Ie;exports.EducationClassTeachersApi=Xe;exports.EducationClassTeachersApiAxiosParamCreator=ie;exports.EducationClassTeachersApiFactory=Ye;exports.EducationClassTeachersApiFp=j;exports.EducationSchoolApi=fe;exports.EducationSchoolApiAxiosParamCreator=ce;exports.EducationSchoolApiFactory=Ze;exports.EducationSchoolApiFp=C;exports.EducationUserApi=ss;exports.EducationUserApiAxiosParamCreator=de;exports.EducationUserApiFactory=es;exports.EducationUserApiFp=F;exports.GetDriveSelectEnum=ge;exports.GetEducationUserExpandEnum=rs;exports.GetGroupExpandEnum=is;exports.GetGroupSelectEnum=ls;exports.GetOwnUserExpandEnum=Ts;exports.GetUserExpandEnum=Hs;exports.GetUserSelectEnum=gs;exports.GroupApi=ns;exports.GroupApiAxiosParamCreator=pe;exports.GroupApiFactory=os;exports.GroupApiFp=T;exports.GroupsApi=ds;exports.GroupsApiAxiosParamCreator=he;exports.GroupsApiFactory=cs;exports.GroupsApiFp=N;exports.ListAllDrivesBetaSelectEnum=qe;exports.ListEducationUsersExpandEnum=ts;exports.ListEducationUsersOrderbyEnum=as;exports.ListGroupsExpandEnum=ms;exports.ListGroupsOrderbyEnum=ps;exports.ListGroupsSelectEnum=hs;exports.ListMyDrivesBetaSelectEnum=Cs;exports.ListPermissionsSelectEnum=ke;exports.ListPermissionsSpaceRootSelectEnum=Je;exports.ListSharedByMeExpandEnum=As;exports.ListSharedWithMeExpandEnum=Os;exports.ListUsersExpandEnum=_s;exports.ListUsersOrderbyEnum=zs;exports.ListUsersSelectEnum=Js;exports.MeChangepasswordApi=Ps;exports.MeChangepasswordApiAxiosParamCreator=me;exports.MeChangepasswordApiFactory=us;exports.MeChangepasswordApiFp=Y;exports.MeDriveApi=vs;exports.MeDriveApiAxiosParamCreator=ue;exports.MeDriveApiFactory=Vs;exports.MeDriveApiFp=g;exports.MeDriveRootApi=Ss;exports.MeDriveRootApiAxiosParamCreator=Pe;exports.MeDriveRootApiFactory=Us;exports.MeDriveRootApiFp=X;exports.MeDriveRootChildrenApi=Rs;exports.MeDriveRootChildrenApiAxiosParamCreator=Ve;exports.MeDriveRootChildrenApiFactory=xs;exports.MeDriveRootChildrenApiFp=Z;exports.MeDrivesApi=bs;exports.MeDrivesApiAxiosParamCreator=ve;exports.MeDrivesApiFactory=ys;exports.MeDrivesApiFp=k;exports.MePhotoApi=Is;exports.MePhotoApiAxiosParamCreator=Ae;exports.MePhotoApiFactory=ws;exports.MePhotoApiFp=M;exports.MeUserApi=Es;exports.MeUserApiAxiosParamCreator=Oe;exports.MeUserApiFactory=Ds;exports.MeUserApiFp=W;exports.RoleManagementApi=Bs;exports.RoleManagementApiAxiosParamCreator=Ue;exports.RoleManagementApiFactory=Fs;exports.RoleManagementApiFp=z;exports.SharingLinkType=De;exports.TagsApi=Ls;exports.TagsApiAxiosParamCreator=Se;exports.TagsApiFactory=Ms;exports.TagsApiFp=H;exports.UserApi=js;exports.UserApiAxiosParamCreator=xe;exports.UserApiFactory=Gs;exports.UserApiFp=L;exports.UserAppRoleAssignmentApi=qs;exports.UserAppRoleAssignmentApiAxiosParamCreator=Re;exports.UserAppRoleAssignmentApiFactory=$s;exports.UserAppRoleAssignmentApiFp=$;exports.UserPhotoApi=Ns;exports.UserPhotoApiAxiosParamCreator=ye;exports.UserPhotoApiFactory=Qs;exports.UserPhotoApiFp=f;exports.UsersApi=Ws;exports.UsersApiAxiosParamCreator=be;exports.UsersApiFactory=ks;exports.UsersApiFp=J;
|
|
@@ -1 +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-B21Ll1ii.cjs");exports.graph=e.graph;
|
package/dist/web-client/graph.js
CHANGED
package/dist/web-client/ocs.cjs
CHANGED
|
@@ -22,4 +22,4 @@ Actual: `+i.attribValue);else{var h=i.tag,p=i.tags[i.tags.length-1]||i;h.ns===p.
|
|
|
22
22
|
`?(r.line++,r.column=0):r.column++),r.state){case d.BEGIN:if(r.state=d.BEGIN_WHITESPACE,w==="\uFEFF")continue;$(r,w);continue;case d.BEGIN_WHITESPACE:$(r,w);continue;case d.TEXT:if(r.sawRoot&&!r.closedRoot){for(var h=R-1;w&&w!=="<"&&w!=="&";)w=J(i,R++),w&&r.trackPosition&&(r.position++,w===`
|
|
23
23
|
`?(r.line++,r.column=0):r.column++);r.textNode+=i.substring(h,R-1)}w==="<"&&!(r.sawRoot&&r.closedRoot&&!r.strict)?(r.state=d.OPEN_WAKA,r.startTagPosition=r.position):(!a(w)&&(!r.sawRoot||r.closedRoot)&&Z(r,"Text data outside of root node."),w==="&"?r.state=d.TEXT_ENTITY:r.textNode+=w);continue;case d.SCRIPT:w==="<"?r.state=d.SCRIPT_ENDING:r.script+=w;continue;case d.SCRIPT_ENDING:w==="/"?r.state=d.CLOSE_TAG:(r.script+="<"+w,r.state=d.SCRIPT);continue;case d.OPEN_WAKA:if(w==="!")r.state=d.SGML_DECL,r.sgmlDecl="";else if(!a(w))if(S(L,w))r.state=d.OPEN_TAG,r.tagName=w;else if(w==="/")r.state=d.CLOSE_TAG,r.tagName="";else if(w==="?")r.state=d.PROC_INST,r.procInstName=r.procInstBody="";else{if(Z(r,"Unencoded <"),r.startTagPosition+1<r.position){var p=r.position-r.startTagPosition;w=new Array(p).join(" ")+w}r.textNode+="<"+w,r.state=d.TEXT}continue;case d.SGML_DECL:if(r.sgmlDecl+w==="--"){r.state=d.COMMENT,r.comment="",r.sgmlDecl="";continue}r.doctype&&r.doctype!==!0&&r.sgmlDecl?(r.state=d.DOCTYPE_DTD,r.doctype+="<!"+r.sgmlDecl+w,r.sgmlDecl=""):(r.sgmlDecl+w).toUpperCase()===N?(x(r,"onopencdata"),r.state=d.CDATA,r.sgmlDecl="",r.cdata=""):(r.sgmlDecl+w).toUpperCase()===P?(r.state=d.DOCTYPE,(r.doctype||r.sawRoot)&&Z(r,"Inappropriately located doctype declaration"),r.doctype="",r.sgmlDecl=""):w===">"?(x(r,"onsgmldeclaration",r.sgmlDecl),r.sgmlDecl="",r.state=d.TEXT):(g(w)&&(r.state=d.SGML_DECL_QUOTED),r.sgmlDecl+=w);continue;case d.SGML_DECL_QUOTED:w===r.q&&(r.state=d.SGML_DECL,r.q=""),r.sgmlDecl+=w;continue;case d.DOCTYPE:w===">"?(r.state=d.TEXT,x(r,"ondoctype",r.doctype),r.doctype=!0):(r.doctype+=w,w==="["?r.state=d.DOCTYPE_DTD:g(w)&&(r.state=d.DOCTYPE_QUOTED,r.q=w));continue;case d.DOCTYPE_QUOTED:r.doctype+=w,w===r.q&&(r.q="",r.state=d.DOCTYPE);continue;case d.DOCTYPE_DTD:w==="]"?(r.doctype+=w,r.state=d.DOCTYPE):w==="<"?(r.state=d.OPEN_WAKA,r.startTagPosition=r.position):g(w)?(r.doctype+=w,r.state=d.DOCTYPE_DTD_QUOTED,r.q=w):r.doctype+=w;continue;case d.DOCTYPE_DTD_QUOTED:r.doctype+=w,w===r.q&&(r.state=d.DOCTYPE_DTD,r.q="");continue;case d.COMMENT:w==="-"?r.state=d.COMMENT_ENDING:r.comment+=w;continue;case d.COMMENT_ENDING:w==="-"?(r.state=d.COMMENT_ENDED,r.comment=re(r.opt,r.comment),r.comment&&x(r,"oncomment",r.comment),r.comment=""):(r.comment+="-"+w,r.state=d.COMMENT);continue;case d.COMMENT_ENDED:w!==">"?(Z(r,"Malformed comment"),r.comment+="--"+w,r.state=d.COMMENT):r.doctype&&r.doctype!==!0?r.state=d.DOCTYPE_DTD:r.state=d.TEXT;continue;case d.CDATA:w==="]"?r.state=d.CDATA_ENDING:r.cdata+=w;continue;case d.CDATA_ENDING:w==="]"?r.state=d.CDATA_ENDING_2:(r.cdata+="]"+w,r.state=d.CDATA);continue;case d.CDATA_ENDING_2:w===">"?(r.cdata&&x(r,"oncdata",r.cdata),x(r,"onclosecdata"),r.cdata="",r.state=d.TEXT):w==="]"?r.cdata+="]":(r.cdata+="]]"+w,r.state=d.CDATA);continue;case d.PROC_INST:w==="?"?r.state=d.PROC_INST_ENDING:a(w)?r.state=d.PROC_INST_BODY:r.procInstName+=w;continue;case d.PROC_INST_BODY:if(!r.procInstBody&&a(w))continue;w==="?"?r.state=d.PROC_INST_ENDING:r.procInstBody+=w;continue;case d.PROC_INST_ENDING:w===">"?(x(r,"onprocessinginstruction",{name:r.procInstName,body:r.procInstBody}),r.procInstName=r.procInstBody="",r.state=d.TEXT):(r.procInstBody+="?"+w,r.state=d.PROC_INST_BODY);continue;case d.OPEN_TAG:S(c,w)?r.tagName+=w:(ce(r),w===">"?ge(r):w==="/"?r.state=d.OPEN_TAG_SLASH:(a(w)||Z(r,"Invalid character in tag name"),r.state=d.ATTRIB));continue;case d.OPEN_TAG_SLASH:w===">"?(ge(r,!0),D(r)):(Z(r,"Forward-slash in opening tag not followed by >"),r.state=d.ATTRIB);continue;case d.ATTRIB:if(a(w))continue;w===">"?ge(r):w==="/"?r.state=d.OPEN_TAG_SLASH:S(L,w)?(r.attribName=w,r.attribValue="",r.state=d.ATTRIB_NAME):Z(r,"Invalid attribute name");continue;case d.ATTRIB_NAME:w==="="?r.state=d.ATTRIB_VALUE:w===">"?(Z(r,"Attribute without value"),r.attribValue=r.attribName,ye(r),ge(r)):a(w)?r.state=d.ATTRIB_NAME_SAW_WHITE:S(c,w)?r.attribName+=w:Z(r,"Invalid attribute name");continue;case d.ATTRIB_NAME_SAW_WHITE:if(w==="=")r.state=d.ATTRIB_VALUE;else{if(a(w))continue;Z(r,"Attribute without value"),r.tag.attributes[r.attribName]="",r.attribValue="",x(r,"onattribute",{name:r.attribName,value:""}),r.attribName="",w===">"?ge(r):S(L,w)?(r.attribName=w,r.state=d.ATTRIB_NAME):(Z(r,"Invalid attribute name"),r.state=d.ATTRIB)}continue;case d.ATTRIB_VALUE:if(a(w))continue;g(w)?(r.q=w,r.state=d.ATTRIB_VALUE_QUOTED):(r.opt.unquotedAttributeValues||ie(r,"Unquoted attribute value"),r.state=d.ATTRIB_VALUE_UNQUOTED,r.attribValue=w);continue;case d.ATTRIB_VALUE_QUOTED:if(w!==r.q){w==="&"?r.state=d.ATTRIB_VALUE_ENTITY_Q:r.attribValue+=w;continue}ye(r),r.q="",r.state=d.ATTRIB_VALUE_CLOSED;continue;case d.ATTRIB_VALUE_CLOSED:a(w)?r.state=d.ATTRIB:w===">"?ge(r):w==="/"?r.state=d.OPEN_TAG_SLASH:S(L,w)?(Z(r,"No whitespace between attributes"),r.attribName=w,r.attribValue="",r.state=d.ATTRIB_NAME):Z(r,"Invalid attribute name");continue;case d.ATTRIB_VALUE_UNQUOTED:if(!T(w)){w==="&"?r.state=d.ATTRIB_VALUE_ENTITY_U:r.attribValue+=w;continue}ye(r),w===">"?ge(r):r.state=d.ATTRIB;continue;case d.CLOSE_TAG:if(r.tagName)w===">"?D(r):S(c,w)?r.tagName+=w:r.script?(r.script+="</"+r.tagName,r.tagName="",r.state=d.SCRIPT):(a(w)||Z(r,"Invalid tagname in closing tag"),r.state=d.CLOSE_TAG_SAW_WHITE);else{if(a(w))continue;F(L,w)?r.script?(r.script+="</"+w,r.state=d.SCRIPT):Z(r,"Invalid tagname in closing tag."):r.tagName=w}continue;case d.CLOSE_TAG_SAW_WHITE:if(a(w))continue;w===">"?D(r):Z(r,"Invalid characters in closing tag");continue;case d.TEXT_ENTITY:case d.ATTRIB_VALUE_ENTITY_Q:case d.ATTRIB_VALUE_ENTITY_U:var U,W;switch(r.state){case d.TEXT_ENTITY:U=d.TEXT,W="textNode";break;case d.ATTRIB_VALUE_ENTITY_Q:U=d.ATTRIB_VALUE_QUOTED,W="attribValue";break;case d.ATTRIB_VALUE_ENTITY_U:U=d.ATTRIB_VALUE_UNQUOTED,W="attribValue";break}if(w===";"){var Q=j(r);r.opt.unparsedEntities&&!Object.values(o.XML_ENTITIES).includes(Q)?(r.entity="",r.state=U,r.write(Q)):(r[W]+=Q,r.entity="",r.state=U)}else S(r.entity.length?s:E,w)?r.entity+=w:(Z(r,"Invalid character in entity name"),r[W]+="&"+r.entity+w,r.entity="",r.state=U);continue;default:throw new Error(r,"Unknown state: "+r.state)}return r.position>=r.bufferCheckPosition&&m(r),r}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||(function(){var i=String.fromCharCode,r=Math.floor,R=function(){var w=16384,h=[],p,U,W=-1,Q=arguments.length;if(!Q)return"";for(var Y="";++W<Q;){var z=Number(arguments[W]);if(!isFinite(z)||z<0||z>1114111||r(z)!==z)throw RangeError("Invalid code point: "+z);z<=65535?h.push(z):(z-=65536,p=(z>>10)+55296,U=z%1024+56320,h.push(p,U)),(W+1===Q||h.length>w)&&(Y+=i.apply(null,h),h.length=0)}return Y};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:R,configurable:!0,writable:!0}):String.fromCodePoint=R})()})(n)})(ut)),ut}var Rr,yi;function kr(){return yi||(yi=1,Rr={isArray:function(n){return Array.isArray?Array.isArray(n):Object.prototype.toString.call(n)==="[object Array]"}}),Rr}var xr,gi;function Hr(){if(gi)return xr;gi=1;var n=kr().isArray;return xr={copyOptions:function(o){var l,u={};for(l in o)o.hasOwnProperty(l)&&(u[l]=o[l]);return u},ensureFlagExists:function(o,l){(!(o in l)||typeof l[o]!="boolean")&&(l[o]=!1)},ensureSpacesExists:function(o){(!("spaces"in o)||typeof o.spaces!="number"&&typeof o.spaces!="string")&&(o.spaces=0)},ensureAlwaysArrayExists:function(o){(!("alwaysArray"in o)||typeof o.alwaysArray!="boolean"&&!n(o.alwaysArray))&&(o.alwaysArray=!1)},ensureKeyExists:function(o,l){(!(o+"Key"in l)||typeof l[o+"Key"]!="string")&&(l[o+"Key"]=l.compact?"_"+o:o)},checkFnExists:function(o,l){return o+"Fn"in l}},xr}var Ir,bi;function Gi(){if(bi)return Ir;bi=1;var n=no(),o=Hr(),l=kr().isArray,u,m;function y(c){return u=o.copyOptions(c),o.ensureFlagExists("ignoreDeclaration",u),o.ensureFlagExists("ignoreInstruction",u),o.ensureFlagExists("ignoreAttributes",u),o.ensureFlagExists("ignoreText",u),o.ensureFlagExists("ignoreComment",u),o.ensureFlagExists("ignoreCdata",u),o.ensureFlagExists("ignoreDoctype",u),o.ensureFlagExists("compact",u),o.ensureFlagExists("alwaysChildren",u),o.ensureFlagExists("addParent",u),o.ensureFlagExists("trim",u),o.ensureFlagExists("nativeType",u),o.ensureFlagExists("nativeTypeAttributes",u),o.ensureFlagExists("sanitize",u),o.ensureFlagExists("instructionHasAttributes",u),o.ensureFlagExists("captureSpacesBetweenElements",u),o.ensureAlwaysArrayExists(u),o.ensureKeyExists("declaration",u),o.ensureKeyExists("instruction",u),o.ensureKeyExists("attributes",u),o.ensureKeyExists("text",u),o.ensureKeyExists("comment",u),o.ensureKeyExists("cdata",u),o.ensureKeyExists("doctype",u),o.ensureKeyExists("type",u),o.ensureKeyExists("name",u),o.ensureKeyExists("elements",u),o.ensureKeyExists("parent",u),o.checkFnExists("doctype",u),o.checkFnExists("instruction",u),o.checkFnExists("cdata",u),o.checkFnExists("comment",u),o.checkFnExists("text",u),o.checkFnExists("instructionName",u),o.checkFnExists("elementName",u),o.checkFnExists("attributeName",u),o.checkFnExists("attributeValue",u),o.checkFnExists("attributes",u),u}function A(c){var E=Number(c);if(!isNaN(E))return E;var s=c.toLowerCase();return s==="true"?!0:s==="false"?!1:c}function v(c,E){var s;if(u.compact){if(!m[u[c+"Key"]]&&(l(u.alwaysArray)?u.alwaysArray.indexOf(u[c+"Key"])!==-1:u.alwaysArray)&&(m[u[c+"Key"]]=[]),m[u[c+"Key"]]&&!l(m[u[c+"Key"]])&&(m[u[c+"Key"]]=[m[u[c+"Key"]]]),c+"Fn"in u&&typeof E=="string"&&(E=u[c+"Fn"](E,m)),c==="instruction"&&("instructionFn"in u||"instructionNameFn"in u)){for(s in E)if(E.hasOwnProperty(s))if("instructionFn"in u)E[s]=u.instructionFn(E[s],s,m);else{var a=E[s];delete E[s],E[u.instructionNameFn(s,a,m)]=a}}l(m[u[c+"Key"]])?m[u[c+"Key"]].push(E):m[u[c+"Key"]]=E}else{m[u.elementsKey]||(m[u.elementsKey]=[]);var g={};if(g[u.typeKey]=c,c==="instruction"){for(s in E)if(E.hasOwnProperty(s))break;g[u.nameKey]="instructionNameFn"in u?u.instructionNameFn(s,E,m):s,u.instructionHasAttributes?(g[u.attributesKey]=E[s][u.attributesKey],"instructionFn"in u&&(g[u.attributesKey]=u.instructionFn(g[u.attributesKey],s,m))):("instructionFn"in u&&(E[s]=u.instructionFn(E[s],s,m)),g[u.instructionKey]=E[s])}else c+"Fn"in u&&(E=u[c+"Fn"](E,m)),g[u[c+"Key"]]=E;u.addParent&&(g[u.parentKey]=m),m[u.elementsKey].push(g)}}function _(c){if("attributesFn"in u&&c&&(c=u.attributesFn(c,m)),(u.trim||"attributeValueFn"in u||"attributeNameFn"in u||u.nativeTypeAttributes)&&c){var E;for(E in c)if(c.hasOwnProperty(E)&&(u.trim&&(c[E]=c[E].trim()),u.nativeTypeAttributes&&(c[E]=A(c[E])),"attributeValueFn"in u&&(c[E]=u.attributeValueFn(c[E],E,m)),"attributeNameFn"in u)){var s=c[E];delete c[E],c[u.attributeNameFn(E,c[E],m)]=s}}return c}function B(c){var E={};if(c.body&&(c.name.toLowerCase()==="xml"||u.instructionHasAttributes)){for(var s=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,a;(a=s.exec(c.body))!==null;)E[a[1]]=a[2]||a[3]||a[4];E=_(E)}if(c.name.toLowerCase()==="xml"){if(u.ignoreDeclaration)return;m[u.declarationKey]={},Object.keys(E).length&&(m[u.declarationKey][u.attributesKey]=E),u.addParent&&(m[u.declarationKey][u.parentKey]=m)}else{if(u.ignoreInstruction)return;u.trim&&(c.body=c.body.trim());var g={};u.instructionHasAttributes&&Object.keys(E).length?(g[c.name]={},g[c.name][u.attributesKey]=E):g[c.name]=c.body,v("instruction",g)}}function C(c,E){var s;if(typeof c=="object"&&(E=c.attributes,c=c.name),E=_(E),"elementNameFn"in u&&(c=u.elementNameFn(c,m)),u.compact){if(s={},!u.ignoreAttributes&&E&&Object.keys(E).length){s[u.attributesKey]={};var a;for(a in E)E.hasOwnProperty(a)&&(s[u.attributesKey][a]=E[a])}!(c in m)&&(l(u.alwaysArray)?u.alwaysArray.indexOf(c)!==-1:u.alwaysArray)&&(m[c]=[]),m[c]&&!l(m[c])&&(m[c]=[m[c]]),l(m[c])?m[c].push(s):m[c]=s}else m[u.elementsKey]||(m[u.elementsKey]=[]),s={},s[u.typeKey]="element",s[u.nameKey]=c,!u.ignoreAttributes&&E&&Object.keys(E).length&&(s[u.attributesKey]=E),u.alwaysChildren&&(s[u.elementsKey]=[]),m[u.elementsKey].push(s);s[u.parentKey]=m,m=s}function N(c){u.ignoreText||!c.trim()&&!u.captureSpacesBetweenElements||(u.trim&&(c=c.trim()),u.nativeType&&(c=A(c)),u.sanitize&&(c=c.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),v("text",c))}function P(c){u.ignoreComment||(u.trim&&(c=c.trim()),v("comment",c))}function V(c){var E=m[u.parentKey];u.addParent||delete m[u.parentKey],m=E}function q(c){u.ignoreCdata||(u.trim&&(c=c.trim()),v("cdata",c))}function H(c){u.ignoreDoctype||(c=c.replace(/^ /,""),u.trim&&(c=c.trim()),v("doctype",c))}function L(c){c.note=c}return Ir=function(c,E){var s=n.parser(!0,{}),a={};if(m=a,u=y(E),s.opt={strictEntities:!0},s.onopentag=C,s.ontext=N,s.oncomment=P,s.onclosetag=V,s.onerror=L,s.oncdata=q,s.ondoctype=H,s.onprocessinginstruction=B,s.write(c).close(),a[u.elementsKey]){var g=a[u.elementsKey];delete a[u.elementsKey],a[u.elementsKey]=g,delete a.text}return a},Ir}var Fr,mi;function io(){if(mi)return Fr;mi=1;var n=Hr(),o=Gi();function l(u){var m=n.copyOptions(u);return n.ensureSpacesExists(m),m}return Fr=function(u,m){var y,A,v,_;return y=l(m),A=o(u,y),_="compact"in y&&y.compact?"_parent":"parent","addParent"in y&&y.addParent?v=JSON.stringify(A,function(B,C){return B===_?"_":C},y.spaces):v=JSON.stringify(A,null,y.spaces),v.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},Fr}var Or,Ei;function Ki(){if(Ei)return Or;Ei=1;var n=Hr(),o=kr().isArray,l,u;function m(s){var a=n.copyOptions(s);return n.ensureFlagExists("ignoreDeclaration",a),n.ensureFlagExists("ignoreInstruction",a),n.ensureFlagExists("ignoreAttributes",a),n.ensureFlagExists("ignoreText",a),n.ensureFlagExists("ignoreComment",a),n.ensureFlagExists("ignoreCdata",a),n.ensureFlagExists("ignoreDoctype",a),n.ensureFlagExists("compact",a),n.ensureFlagExists("indentText",a),n.ensureFlagExists("indentCdata",a),n.ensureFlagExists("indentAttributes",a),n.ensureFlagExists("indentInstruction",a),n.ensureFlagExists("fullTagEmptyElement",a),n.ensureFlagExists("noQuotesForNativeAttributes",a),n.ensureSpacesExists(a),typeof a.spaces=="number"&&(a.spaces=Array(a.spaces+1).join(" ")),n.ensureKeyExists("declaration",a),n.ensureKeyExists("instruction",a),n.ensureKeyExists("attributes",a),n.ensureKeyExists("text",a),n.ensureKeyExists("comment",a),n.ensureKeyExists("cdata",a),n.ensureKeyExists("doctype",a),n.ensureKeyExists("type",a),n.ensureKeyExists("name",a),n.ensureKeyExists("elements",a),n.checkFnExists("doctype",a),n.checkFnExists("instruction",a),n.checkFnExists("cdata",a),n.checkFnExists("comment",a),n.checkFnExists("text",a),n.checkFnExists("instructionName",a),n.checkFnExists("elementName",a),n.checkFnExists("attributeName",a),n.checkFnExists("attributeValue",a),n.checkFnExists("attributes",a),n.checkFnExists("fullTagEmptyElement",a),a}function y(s,a,g){return(!g&&s.spaces?`
|
|
24
24
|
`:"")+Array(a+1).join(s.spaces)}function A(s,a,g){if(a.ignoreAttributes)return"";"attributesFn"in a&&(s=a.attributesFn(s,u,l));var T,S,F,d,K=[];for(T in s)s.hasOwnProperty(T)&&s[T]!==null&&s[T]!==void 0&&(d=a.noQuotesForNativeAttributes&&typeof s[T]!="string"?"":'"',S=""+s[T],S=S.replace(/"/g,"""),F="attributeNameFn"in a?a.attributeNameFn(T,S,u,l):T,K.push(a.spaces&&a.indentAttributes?y(a,g+1,!1):" "),K.push(F+"="+d+("attributeValueFn"in a?a.attributeValueFn(S,T,u,l):S)+d));return s&&Object.keys(s).length&&a.spaces&&a.indentAttributes&&K.push(y(a,g,!1)),K.join("")}function v(s,a,g){return l=s,u="xml",a.ignoreDeclaration?"":"<?xml"+A(s[a.attributesKey],a,g)+"?>"}function _(s,a,g){if(a.ignoreInstruction)return"";var T;for(T in s)if(s.hasOwnProperty(T))break;var S="instructionNameFn"in a?a.instructionNameFn(T,s[T],u,l):T;if(typeof s[T]=="object")return l=s,u=S,"<?"+S+A(s[T][a.attributesKey],a,g)+"?>";var F=s[T]?s[T]:"";return"instructionFn"in a&&(F=a.instructionFn(F,T,u,l)),"<?"+S+(F?" "+F:"")+"?>"}function B(s,a){return a.ignoreComment?"":"<!--"+("commentFn"in a?a.commentFn(s,u,l):s)+"-->"}function C(s,a){return a.ignoreCdata?"":"<![CDATA["+("cdataFn"in a?a.cdataFn(s,u,l):s.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function N(s,a){return a.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in a?a.doctypeFn(s,u,l):s)+">"}function P(s,a){return a.ignoreText?"":(s=""+s,s=s.replace(/&/g,"&"),s=s.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in a?a.textFn(s,u,l):s)}function V(s,a){var g;if(s.elements&&s.elements.length)for(g=0;g<s.elements.length;++g)switch(s.elements[g][a.typeKey]){case"text":if(a.indentText)return!0;break;case"cdata":if(a.indentCdata)return!0;break;case"instruction":if(a.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function q(s,a,g){l=s,u=s.name;var T=[],S="elementNameFn"in a?a.elementNameFn(s.name,s):s.name;T.push("<"+S),s[a.attributesKey]&&T.push(A(s[a.attributesKey],a,g));var F=s[a.elementsKey]&&s[a.elementsKey].length||s[a.attributesKey]&&s[a.attributesKey]["xml:space"]==="preserve";return F||("fullTagEmptyElementFn"in a?F=a.fullTagEmptyElementFn(s.name,s):F=a.fullTagEmptyElement),F?(T.push(">"),s[a.elementsKey]&&s[a.elementsKey].length&&(T.push(H(s[a.elementsKey],a,g+1)),l=s,u=s.name),T.push(a.spaces&&V(s,a)?`
|
|
25
|
-
`+Array(g+1).join(a.spaces):""),T.push("</"+S+">")):T.push("/>"),T.join("")}function H(s,a,g,T){return s.reduce(function(S,F){var d=y(a,g,T&&!S);switch(F.type){case"element":return S+d+q(F,a,g);case"comment":return S+d+B(F[a.commentKey],a);case"doctype":return S+d+N(F[a.doctypeKey],a);case"cdata":return S+(a.indentCdata?d:"")+C(F[a.cdataKey],a);case"text":return S+(a.indentText?d:"")+P(F[a.textKey],a);case"instruction":var K={};return K[F[a.nameKey]]=F[a.attributesKey]?F:F[a.instructionKey],S+(a.indentInstruction?d:"")+_(K,a,g)}},"")}function L(s,a,g){var T;for(T in s)if(s.hasOwnProperty(T))switch(T){case a.parentKey:case a.attributesKey:break;case a.textKey:if(a.indentText||g)return!0;break;case a.cdataKey:if(a.indentCdata||g)return!0;break;case a.instructionKey:if(a.indentInstruction||g)return!0;break;case a.doctypeKey:case a.commentKey:return!0;default:return!0}return!1}function c(s,a,g,T,S){l=s,u=a;var F="elementNameFn"in g?g.elementNameFn(a,s):a;if(typeof s>"u"||s===null||s==="")return"fullTagEmptyElementFn"in g&&g.fullTagEmptyElementFn(a,s)||g.fullTagEmptyElement?"<"+F+"></"+F+">":"<"+F+"/>";var d=[];if(a){if(d.push("<"+F),typeof s!="object")return d.push(">"+P(s,g)+"</"+F+">"),d.join("");s[g.attributesKey]&&d.push(A(s[g.attributesKey],g,T));var K=L(s,g,!0)||s[g.attributesKey]&&s[g.attributesKey]["xml:space"]==="preserve";if(K||("fullTagEmptyElementFn"in g?K=g.fullTagEmptyElementFn(a,s):K=g.fullTagEmptyElement),K)d.push(">");else return d.push("/>"),d.join("")}return d.push(E(s,g,T+1,!1)),l=s,u=a,a&&d.push((S?y(g,T,!1):"")+"</"+F+">"),d.join("")}function E(s,a,g,T){var S,F,d,K=[];for(F in s)if(s.hasOwnProperty(F))for(d=o(s[F])?s[F]:[s[F]],S=0;S<d.length;++S){switch(F){case a.declarationKey:K.push(v(d[S],a,g));break;case a.instructionKey:K.push((a.indentInstruction?y(a,g,T):"")+_(d[S],a,g));break;case a.attributesKey:case a.parentKey:break;case a.textKey:K.push((a.indentText?y(a,g,T):"")+P(d[S],a));break;case a.cdataKey:K.push((a.indentCdata?y(a,g,T):"")+C(d[S],a));break;case a.doctypeKey:K.push(y(a,g,T)+N(d[S],a));break;case a.commentKey:K.push(y(a,g,T)+B(d[S],a));break;default:K.push(y(a,g,T)+c(d[S],F,a,g,L(d[S],a)))}T=T&&!K.length}return K.join("")}return Or=function(s,a){a=m(a);var g=[];return l=s,u="_root_",a.compact?g.push(E(s,a,0,!0)):(s[a.declarationKey]&&g.push(v(s[a.declarationKey],a,0)),s[a.elementsKey]&&s[a.elementsKey].length&&g.push(H(s[a.elementsKey],a,0,!g.length))),g.join("")},Or}var Br,vi;function ao(){if(vi)return Br;vi=1;var n=Ki();return Br=function(o,l){o instanceof te.Buffer&&(o=o.toString());var u=null;if(typeof o=="string")try{u=JSON.parse(o)}catch{throw new Error("The JSON structure is invalid")}else u=o;return n(u,l)},Br}var Nr,wi;function oo(){if(wi)return Nr;wi=1;var n=Gi(),o=io(),l=Ki(),u=ao();return Nr={xml2js:n,xml2json:o,js2xml:l,json2xml:u},Nr}var uo=oo();const so=me.getDefaultExportFromCjs(uo);/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function fo(n){return n instanceof Uint8Array||ArrayBuffer.isView(n)&&n.constructor.name==="Uint8Array"}function qe(n,o=""){if(!Number.isSafeInteger(n)||n<0){const l=o&&`"${o}" `;throw new Error(`${l}expected integer >0, got ${n}`)}}function ke(n,o,l=""){const u=fo(n),m=n?.length,y=o!==void 0;if(!u||y&&m!==o){const A=l&&`"${l}" `,v=y?` of length ${o}`:"",_=u?`length=${m}`:`type=${typeof n}`;throw new Error(A+"expected Uint8Array"+v+", got "+_)}return n}function $i(n){if(typeof n!="function"||typeof n.create!="function")throw new Error("Hash must wrapped by utils.createHasher");qe(n.outputLen),qe(n.blockLen)}function et(n,o=!0){if(n.destroyed)throw new Error("Hash instance has been destroyed");if(o&&n.finished)throw new Error("Hash#digest() has already been called")}function lo(n,o){ke(n,void 0,"digestInto() output");const l=o.outputLen;if(n.length<l)throw new Error('"digestInto() output" expected to be of length >='+l)}function He(...n){for(let o=0;o<n.length;o++)n[o].fill(0)}function Ze(n){return new DataView(n.buffer,n.byteOffset,n.byteLength)}function co(n){if(typeof n!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(n))}function _i(n,o=""){return typeof n=="string"?co(n):ke(n,void 0,o)}function ho(n,o){if(o!==void 0&&{}.toString.call(o)!=="[object Object]")throw new Error("options must be object or undefined");return Object.assign(n,o)}function po(n,o={}){const l=(m,y)=>n(y).update(m).digest(),u=n(void 0);return l.outputLen=u.outputLen,l.blockLen=u.blockLen,l.create=m=>n(m),Object.assign(l,o),Object.freeze(l)}const yo=n=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,n])});class Wi{oHash;iHash;blockLen;outputLen;finished=!1;destroyed=!1;constructor(o,l){if($i(o),ke(l,void 0,"key"),this.iHash=o.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const u=this.blockLen,m=new Uint8Array(u);m.set(l.length>u?o.create().update(l).digest():l);for(let y=0;y<m.length;y++)m[y]^=54;this.iHash.update(m),this.oHash=o.create();for(let y=0;y<m.length;y++)m[y]^=106;this.oHash.update(m),He(m)}update(o){return et(this),this.iHash.update(o),this}digestInto(o){et(this),ke(o,this.outputLen,"output"),this.finished=!0,this.iHash.digestInto(o),this.oHash.update(o),this.oHash.digestInto(o),this.destroy()}digest(){const o=new Uint8Array(this.oHash.outputLen);return this.digestInto(o),o}_cloneInto(o){o||=Object.create(Object.getPrototypeOf(this),{});const{oHash:l,iHash:u,finished:m,destroyed:y,blockLen:A,outputLen:v}=this;return o=o,o.finished=m,o.destroyed=y,o.blockLen=A,o.outputLen=v,o.oHash=l._cloneInto(o.oHash),o.iHash=u._cloneInto(o.iHash),o}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const Vi=(n,o,l)=>new Wi(n,o).update(l).digest();Vi.create=(n,o)=>new Wi(n,o);function go(n,o,l,u){$i(n);const m=ho({dkLen:32,asyncTick:10},u),{c:y,dkLen:A,asyncTick:v}=m;if(qe(y,"c"),qe(A,"dkLen"),qe(v,"asyncTick"),y<1)throw new Error("iterations (c) must be >= 1");const _=_i(o,"password"),B=_i(l,"salt"),C=new Uint8Array(A),N=Vi.create(n,_),P=N._cloneInto().update(B);return{c:y,dkLen:A,asyncTick:v,DK:C,PRF:N,PRFSalt:P}}function bo(n,o,l,u,m){return n.destroy(),o.destroy(),u&&u.destroy(),He(m),l}function mo(n,o,l,u){const{c:m,dkLen:y,DK:A,PRF:v,PRFSalt:_}=go(n,o,l,u);let B;const C=new Uint8Array(4),N=Ze(C),P=new Uint8Array(v.outputLen);for(let V=1,q=0;q<y;V++,q+=v.outputLen){const H=A.subarray(q,q+v.outputLen);N.setInt32(0,V,!1),(B=_._cloneInto(B)).update(C).digestInto(P),H.set(P.subarray(0,H.length));for(let L=1;L<m;L++){v._cloneInto(B).update(P).digestInto(P);for(let c=0;c<H.length;c++)H[c]^=P[c]}}return bo(v,_,A,B,P)}class Eo{blockLen;outputLen;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(o,l,u,m){this.blockLen=o,this.outputLen=l,this.padOffset=u,this.isLE=m,this.buffer=new Uint8Array(o),this.view=Ze(this.buffer)}update(o){et(this),ke(o);const{view:l,buffer:u,blockLen:m}=this,y=o.length;for(let A=0;A<y;){const v=Math.min(m-this.pos,y-A);if(v===m){const _=Ze(o);for(;m<=y-A;A+=m)this.process(_,A);continue}u.set(o.subarray(A,A+v),this.pos),this.pos+=v,A+=v,this.pos===m&&(this.process(l,0),this.pos=0)}return this.length+=o.length,this.roundClean(),this}digestInto(o){et(this),lo(o,this),this.finished=!0;const{buffer:l,view:u,blockLen:m,isLE:y}=this;let{pos:A}=this;l[A++]=128,He(this.buffer.subarray(A)),this.padOffset>m-A&&(this.process(u,0),A=0);for(let N=A;N<m;N++)l[N]=0;u.setBigUint64(m-8,BigInt(this.length*8),y),this.process(u,0);const v=Ze(o),_=this.outputLen;if(_%4)throw new Error("_sha2: outputLen must be aligned to 32bit");const B=_/4,C=this.get();if(B>C.length)throw new Error("_sha2: outputLen bigger than state");for(let N=0;N<B;N++)v.setUint32(4*N,C[N],y)}digest(){const{buffer:o,outputLen:l}=this;this.digestInto(o);const u=o.slice(0,l);return this.destroy(),u}_cloneInto(o){o||=new this.constructor,o.set(...this.get());const{blockLen:l,buffer:u,length:m,finished:y,destroyed:A,pos:v}=this;return o.destroyed=A,o.finished=y,o.length=m,o.pos=v,m%l&&o.buffer.set(u),o}clone(){return this._cloneInto()}}const Ee=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),ze=BigInt(2**32-1),Ai=BigInt(32);function vo(n,o=!1){return o?{h:Number(n&ze),l:Number(n>>Ai&ze)}:{h:Number(n>>Ai&ze)|0,l:Number(n&ze)|0}}function wo(n,o=!1){const l=n.length;let u=new Uint32Array(l),m=new Uint32Array(l);for(let y=0;y<l;y++){const{h:A,l:v}=vo(n[y],o);[u[y],m[y]]=[A,v]}return[u,m]}const Ti=(n,o,l)=>n>>>l,Si=(n,o,l)=>n<<32-l|o>>>l,Ce=(n,o,l)=>n>>>l|o<<32-l,De=(n,o,l)=>n<<32-l|o>>>l,Je=(n,o,l)=>n<<64-l|o>>>l-32,Qe=(n,o,l)=>n>>>l-32|o<<64-l;function Se(n,o,l,u){const m=(o>>>0)+(u>>>0);return{h:n+l+(m/2**32|0)|0,l:m|0}}const _o=(n,o,l)=>(n>>>0)+(o>>>0)+(l>>>0),Ao=(n,o,l,u)=>o+l+u+(n/2**32|0)|0,To=(n,o,l,u)=>(n>>>0)+(o>>>0)+(l>>>0)+(u>>>0),So=(n,o,l,u,m)=>o+l+u+m+(n/2**32|0)|0,Ro=(n,o,l,u,m)=>(n>>>0)+(o>>>0)+(l>>>0)+(u>>>0)+(m>>>0),xo=(n,o,l,u,m,y)=>o+l+u+m+y+(n/2**32|0)|0,Yi=wo(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(n=>BigInt(n))),Io=Yi[0],Fo=Yi[1],Ie=new Uint32Array(80),Fe=new Uint32Array(80);class Oo extends Eo{constructor(o){super(128,o,16,!1)}get(){const{Ah:o,Al:l,Bh:u,Bl:m,Ch:y,Cl:A,Dh:v,Dl:_,Eh:B,El:C,Fh:N,Fl:P,Gh:V,Gl:q,Hh:H,Hl:L}=this;return[o,l,u,m,y,A,v,_,B,C,N,P,V,q,H,L]}set(o,l,u,m,y,A,v,_,B,C,N,P,V,q,H,L){this.Ah=o|0,this.Al=l|0,this.Bh=u|0,this.Bl=m|0,this.Ch=y|0,this.Cl=A|0,this.Dh=v|0,this.Dl=_|0,this.Eh=B|0,this.El=C|0,this.Fh=N|0,this.Fl=P|0,this.Gh=V|0,this.Gl=q|0,this.Hh=H|0,this.Hl=L|0}process(o,l){for(let s=0;s<16;s++,l+=4)Ie[s]=o.getUint32(l),Fe[s]=o.getUint32(l+=4);for(let s=16;s<80;s++){const a=Ie[s-15]|0,g=Fe[s-15]|0,T=Ce(a,g,1)^Ce(a,g,8)^Ti(a,g,7),S=De(a,g,1)^De(a,g,8)^Si(a,g,7),F=Ie[s-2]|0,d=Fe[s-2]|0,K=Ce(F,d,19)^Je(F,d,61)^Ti(F,d,6),X=De(F,d,19)^Qe(F,d,61)^Si(F,d,6),x=To(S,X,Fe[s-7],Fe[s-16]),ee=So(x,T,K,Ie[s-7],Ie[s-16]);Ie[s]=ee|0,Fe[s]=x|0}let{Ah:u,Al:m,Bh:y,Bl:A,Ch:v,Cl:_,Dh:B,Dl:C,Eh:N,El:P,Fh:V,Fl:q,Gh:H,Gl:L,Hh:c,Hl:E}=this;for(let s=0;s<80;s++){const a=Ce(N,P,14)^Ce(N,P,18)^Je(N,P,41),g=De(N,P,14)^De(N,P,18)^Qe(N,P,41),T=N&V^~N&H,S=P&q^~P&L,F=Ro(E,g,S,Fo[s],Fe[s]),d=xo(F,c,a,T,Io[s],Ie[s]),K=F|0,X=Ce(u,m,28)^Je(u,m,34)^Je(u,m,39),x=De(u,m,28)^Qe(u,m,34)^Qe(u,m,39),ee=u&y^u&v^y&v,re=m&A^m&_^A&_;c=H|0,E=L|0,H=V|0,L=q|0,V=N|0,q=P|0,{h:N,l:P}=Se(B|0,C|0,d|0,K|0),B=v|0,C=_|0,v=y|0,_=A|0,y=u|0,A=m|0;const ie=_o(K,x,re);u=Ao(ie,d,X,ee),m=ie|0}({h:u,l:m}=Se(this.Ah|0,this.Al|0,u|0,m|0)),{h:y,l:A}=Se(this.Bh|0,this.Bl|0,y|0,A|0),{h:v,l:_}=Se(this.Ch|0,this.Cl|0,v|0,_|0),{h:B,l:C}=Se(this.Dh|0,this.Dl|0,B|0,C|0),{h:N,l:P}=Se(this.Eh|0,this.El|0,N|0,P|0),{h:V,l:q}=Se(this.Fh|0,this.Fl|0,V|0,q|0),{h:H,l:L}=Se(this.Gh|0,this.Gl|0,H|0,L|0),{h:c,l:E}=Se(this.Hh|0,this.Hl|0,c|0,E|0),this.set(u,m,y,A,v,_,B,C,N,P,V,q,H,L,c,E)}roundClean(){He(Ie,Fe)}destroy(){He(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class Bo extends Oo{Ah=Ee[0]|0;Al=Ee[1]|0;Bh=Ee[2]|0;Bl=Ee[3]|0;Ch=Ee[4]|0;Cl=Ee[5]|0;Dh=Ee[6]|0;Dl=Ee[7]|0;Eh=Ee[8]|0;El=Ee[9]|0;Fh=Ee[10]|0;Fl=Ee[11]|0;Gh=Ee[12]|0;Gl=Ee[13]|0;Hh=Ee[14]|0;Hl=Ee[15]|0;constructor(){super(64)}}const No=po(()=>new Bo,yo(3)),Po=(n,o,l,u)=>te.Buffer.from(mo(No,n,o,{c:l,dkLen:u}));class Co{axiosClient;baseURI;signingKey;ALGORITHM="sha512";TTL=1200;HASH_LENGTH=32;ITERATION_COUNT=1e4;constructor({axiosClient:o,baseURI:l}){this.axiosClient=o,this.baseURI=l}async signUrl(o,l){const u=new URL(o);u.searchParams.set("OC-Credential",l),u.searchParams.set("OC-Date",new Date().toISOString()),u.searchParams.set("OC-Expires",this.TTL.toString()),u.searchParams.set("OC-Verb","GET");const m=await this.createHashedKey(u.toString());return u.searchParams.set("OC-Algo",`PBKDF2/${this.ITERATION_COUNT}-SHA512`),u.searchParams.set("OC-Signature",m),u.toString()}async getSignKey(){if(this.signingKey)return this.signingKey;const o=await this.axiosClient.get(me.urlJoin(this.baseURI,"ocs/v1.php/cloud/user/signing-key"),{headers:{"Content-Type":"application/x-www-form-urlencoded"}}),l=so.xml2js(o.data,{compact:!0});return this.signingKey=l.ocs.data["signing-key"]._text,this.signingKey}async createHashedKey(o){const l=await this.getSignKey();return Po(o,l,this.ITERATION_COUNT,this.HASH_LENGTH,this.ALGORITHM).toString("hex")}}const Do=(n,o)=>{const l=new URL(n);l.pathname=[...l.pathname.split("/"),"ocs","v1.php"].filter(Boolean).join("/");const u=l.href,m=Ri(u,o),y=new Co({baseURI:n,axiosClient:o});return{getCapabilities:()=>m.getCapabilities(),signUrl:(A,v)=>y.signUrl(A,v)}};exports.GetCapabilitiesFactory=Ri;exports.ocs=Do;
|
|
25
|
+
`+Array(g+1).join(a.spaces):""),T.push("</"+S+">")):T.push("/>"),T.join("")}function H(s,a,g,T){return s.reduce(function(S,F){var d=y(a,g,T&&!S);switch(F.type){case"element":return S+d+q(F,a,g);case"comment":return S+d+B(F[a.commentKey],a);case"doctype":return S+d+N(F[a.doctypeKey],a);case"cdata":return S+(a.indentCdata?d:"")+C(F[a.cdataKey],a);case"text":return S+(a.indentText?d:"")+P(F[a.textKey],a);case"instruction":var K={};return K[F[a.nameKey]]=F[a.attributesKey]?F:F[a.instructionKey],S+(a.indentInstruction?d:"")+_(K,a,g)}},"")}function L(s,a,g){var T;for(T in s)if(s.hasOwnProperty(T))switch(T){case a.parentKey:case a.attributesKey:break;case a.textKey:if(a.indentText||g)return!0;break;case a.cdataKey:if(a.indentCdata||g)return!0;break;case a.instructionKey:if(a.indentInstruction||g)return!0;break;case a.doctypeKey:case a.commentKey:return!0;default:return!0}return!1}function c(s,a,g,T,S){l=s,u=a;var F="elementNameFn"in g?g.elementNameFn(a,s):a;if(typeof s>"u"||s===null||s==="")return"fullTagEmptyElementFn"in g&&g.fullTagEmptyElementFn(a,s)||g.fullTagEmptyElement?"<"+F+"></"+F+">":"<"+F+"/>";var d=[];if(a){if(d.push("<"+F),typeof s!="object")return d.push(">"+P(s,g)+"</"+F+">"),d.join("");s[g.attributesKey]&&d.push(A(s[g.attributesKey],g,T));var K=L(s,g,!0)||s[g.attributesKey]&&s[g.attributesKey]["xml:space"]==="preserve";if(K||("fullTagEmptyElementFn"in g?K=g.fullTagEmptyElementFn(a,s):K=g.fullTagEmptyElement),K)d.push(">");else return d.push("/>"),d.join("")}return d.push(E(s,g,T+1,!1)),l=s,u=a,a&&d.push((S?y(g,T,!1):"")+"</"+F+">"),d.join("")}function E(s,a,g,T){var S,F,d,K=[];for(F in s)if(s.hasOwnProperty(F))for(d=o(s[F])?s[F]:[s[F]],S=0;S<d.length;++S){switch(F){case a.declarationKey:K.push(v(d[S],a,g));break;case a.instructionKey:K.push((a.indentInstruction?y(a,g,T):"")+_(d[S],a,g));break;case a.attributesKey:case a.parentKey:break;case a.textKey:K.push((a.indentText?y(a,g,T):"")+P(d[S],a));break;case a.cdataKey:K.push((a.indentCdata?y(a,g,T):"")+C(d[S],a));break;case a.doctypeKey:K.push(y(a,g,T)+N(d[S],a));break;case a.commentKey:K.push(y(a,g,T)+B(d[S],a));break;default:K.push(y(a,g,T)+c(d[S],F,a,g,L(d[S],a)))}T=T&&!K.length}return K.join("")}return Or=function(s,a){a=m(a);var g=[];return l=s,u="_root_",a.compact?g.push(E(s,a,0,!0)):(s[a.declarationKey]&&g.push(v(s[a.declarationKey],a,0)),s[a.elementsKey]&&s[a.elementsKey].length&&g.push(H(s[a.elementsKey],a,0,!g.length))),g.join("")},Or}var Br,vi;function ao(){if(vi)return Br;vi=1;var n=Ki();return Br=function(o,l){o instanceof te.Buffer&&(o=o.toString());var u=null;if(typeof o=="string")try{u=JSON.parse(o)}catch{throw new Error("The JSON structure is invalid")}else u=o;return n(u,l)},Br}var Nr,wi;function oo(){if(wi)return Nr;wi=1;var n=Gi(),o=io(),l=Ki(),u=ao();return Nr={xml2js:n,xml2json:o,js2xml:l,json2xml:u},Nr}var uo=oo();const so=me.getDefaultExportFromCjs(uo);/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function fo(n){return n instanceof Uint8Array||ArrayBuffer.isView(n)&&n.constructor.name==="Uint8Array"}function qe(n,o=""){if(!Number.isSafeInteger(n)||n<0){const l=o&&`"${o}" `;throw new Error(`${l}expected integer >= 0, got ${n}`)}}function ke(n,o,l=""){const u=fo(n),m=n?.length,y=o!==void 0;if(!u||y&&m!==o){const A=l&&`"${l}" `,v=y?` of length ${o}`:"",_=u?`length=${m}`:`type=${typeof n}`;throw new Error(A+"expected Uint8Array"+v+", got "+_)}return n}function $i(n){if(typeof n!="function"||typeof n.create!="function")throw new Error("Hash must wrapped by utils.createHasher");qe(n.outputLen),qe(n.blockLen)}function et(n,o=!0){if(n.destroyed)throw new Error("Hash instance has been destroyed");if(o&&n.finished)throw new Error("Hash#digest() has already been called")}function lo(n,o){ke(n,void 0,"digestInto() output");const l=o.outputLen;if(n.length<l)throw new Error('"digestInto() output" expected to be of length >='+l)}function He(...n){for(let o=0;o<n.length;o++)n[o].fill(0)}function Ze(n){return new DataView(n.buffer,n.byteOffset,n.byteLength)}function co(n){if(typeof n!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(n))}function _i(n,o=""){return typeof n=="string"?co(n):ke(n,void 0,o)}function ho(n,o){if(o!==void 0&&{}.toString.call(o)!=="[object Object]")throw new Error("options must be object or undefined");return Object.assign(n,o)}function po(n,o={}){const l=(m,y)=>n(y).update(m).digest(),u=n(void 0);return l.outputLen=u.outputLen,l.blockLen=u.blockLen,l.create=m=>n(m),Object.assign(l,o),Object.freeze(l)}const yo=n=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,n])});class Wi{oHash;iHash;blockLen;outputLen;finished=!1;destroyed=!1;constructor(o,l){if($i(o),ke(l,void 0,"key"),this.iHash=o.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const u=this.blockLen,m=new Uint8Array(u);m.set(l.length>u?o.create().update(l).digest():l);for(let y=0;y<m.length;y++)m[y]^=54;this.iHash.update(m),this.oHash=o.create();for(let y=0;y<m.length;y++)m[y]^=106;this.oHash.update(m),He(m)}update(o){return et(this),this.iHash.update(o),this}digestInto(o){et(this),ke(o,this.outputLen,"output"),this.finished=!0,this.iHash.digestInto(o),this.oHash.update(o),this.oHash.digestInto(o),this.destroy()}digest(){const o=new Uint8Array(this.oHash.outputLen);return this.digestInto(o),o}_cloneInto(o){o||=Object.create(Object.getPrototypeOf(this),{});const{oHash:l,iHash:u,finished:m,destroyed:y,blockLen:A,outputLen:v}=this;return o=o,o.finished=m,o.destroyed=y,o.blockLen=A,o.outputLen=v,o.oHash=l._cloneInto(o.oHash),o.iHash=u._cloneInto(o.iHash),o}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const Vi=(n,o,l)=>new Wi(n,o).update(l).digest();Vi.create=(n,o)=>new Wi(n,o);function go(n,o,l,u){$i(n);const m=ho({dkLen:32,asyncTick:10},u),{c:y,dkLen:A,asyncTick:v}=m;if(qe(y,"c"),qe(A,"dkLen"),qe(v,"asyncTick"),y<1)throw new Error("iterations (c) must be >= 1");const _=_i(o,"password"),B=_i(l,"salt"),C=new Uint8Array(A),N=Vi.create(n,_),P=N._cloneInto().update(B);return{c:y,dkLen:A,asyncTick:v,DK:C,PRF:N,PRFSalt:P}}function bo(n,o,l,u,m){return n.destroy(),o.destroy(),u&&u.destroy(),He(m),l}function mo(n,o,l,u){const{c:m,dkLen:y,DK:A,PRF:v,PRFSalt:_}=go(n,o,l,u);let B;const C=new Uint8Array(4),N=Ze(C),P=new Uint8Array(v.outputLen);for(let V=1,q=0;q<y;V++,q+=v.outputLen){const H=A.subarray(q,q+v.outputLen);N.setInt32(0,V,!1),(B=_._cloneInto(B)).update(C).digestInto(P),H.set(P.subarray(0,H.length));for(let L=1;L<m;L++){v._cloneInto(B).update(P).digestInto(P);for(let c=0;c<H.length;c++)H[c]^=P[c]}}return bo(v,_,A,B,P)}class Eo{blockLen;outputLen;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(o,l,u,m){this.blockLen=o,this.outputLen=l,this.padOffset=u,this.isLE=m,this.buffer=new Uint8Array(o),this.view=Ze(this.buffer)}update(o){et(this),ke(o);const{view:l,buffer:u,blockLen:m}=this,y=o.length;for(let A=0;A<y;){const v=Math.min(m-this.pos,y-A);if(v===m){const _=Ze(o);for(;m<=y-A;A+=m)this.process(_,A);continue}u.set(o.subarray(A,A+v),this.pos),this.pos+=v,A+=v,this.pos===m&&(this.process(l,0),this.pos=0)}return this.length+=o.length,this.roundClean(),this}digestInto(o){et(this),lo(o,this),this.finished=!0;const{buffer:l,view:u,blockLen:m,isLE:y}=this;let{pos:A}=this;l[A++]=128,He(this.buffer.subarray(A)),this.padOffset>m-A&&(this.process(u,0),A=0);for(let N=A;N<m;N++)l[N]=0;u.setBigUint64(m-8,BigInt(this.length*8),y),this.process(u,0);const v=Ze(o),_=this.outputLen;if(_%4)throw new Error("_sha2: outputLen must be aligned to 32bit");const B=_/4,C=this.get();if(B>C.length)throw new Error("_sha2: outputLen bigger than state");for(let N=0;N<B;N++)v.setUint32(4*N,C[N],y)}digest(){const{buffer:o,outputLen:l}=this;this.digestInto(o);const u=o.slice(0,l);return this.destroy(),u}_cloneInto(o){o||=new this.constructor,o.set(...this.get());const{blockLen:l,buffer:u,length:m,finished:y,destroyed:A,pos:v}=this;return o.destroyed=A,o.finished=y,o.length=m,o.pos=v,m%l&&o.buffer.set(u),o}clone(){return this._cloneInto()}}const Ee=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),ze=BigInt(2**32-1),Ai=BigInt(32);function vo(n,o=!1){return o?{h:Number(n&ze),l:Number(n>>Ai&ze)}:{h:Number(n>>Ai&ze)|0,l:Number(n&ze)|0}}function wo(n,o=!1){const l=n.length;let u=new Uint32Array(l),m=new Uint32Array(l);for(let y=0;y<l;y++){const{h:A,l:v}=vo(n[y],o);[u[y],m[y]]=[A,v]}return[u,m]}const Ti=(n,o,l)=>n>>>l,Si=(n,o,l)=>n<<32-l|o>>>l,Ce=(n,o,l)=>n>>>l|o<<32-l,De=(n,o,l)=>n<<32-l|o>>>l,Je=(n,o,l)=>n<<64-l|o>>>l-32,Qe=(n,o,l)=>n>>>l-32|o<<64-l;function Se(n,o,l,u){const m=(o>>>0)+(u>>>0);return{h:n+l+(m/2**32|0)|0,l:m|0}}const _o=(n,o,l)=>(n>>>0)+(o>>>0)+(l>>>0),Ao=(n,o,l,u)=>o+l+u+(n/2**32|0)|0,To=(n,o,l,u)=>(n>>>0)+(o>>>0)+(l>>>0)+(u>>>0),So=(n,o,l,u,m)=>o+l+u+m+(n/2**32|0)|0,Ro=(n,o,l,u,m)=>(n>>>0)+(o>>>0)+(l>>>0)+(u>>>0)+(m>>>0),xo=(n,o,l,u,m,y)=>o+l+u+m+y+(n/2**32|0)|0,Yi=wo(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(n=>BigInt(n))),Io=Yi[0],Fo=Yi[1],Ie=new Uint32Array(80),Fe=new Uint32Array(80);class Oo extends Eo{constructor(o){super(128,o,16,!1)}get(){const{Ah:o,Al:l,Bh:u,Bl:m,Ch:y,Cl:A,Dh:v,Dl:_,Eh:B,El:C,Fh:N,Fl:P,Gh:V,Gl:q,Hh:H,Hl:L}=this;return[o,l,u,m,y,A,v,_,B,C,N,P,V,q,H,L]}set(o,l,u,m,y,A,v,_,B,C,N,P,V,q,H,L){this.Ah=o|0,this.Al=l|0,this.Bh=u|0,this.Bl=m|0,this.Ch=y|0,this.Cl=A|0,this.Dh=v|0,this.Dl=_|0,this.Eh=B|0,this.El=C|0,this.Fh=N|0,this.Fl=P|0,this.Gh=V|0,this.Gl=q|0,this.Hh=H|0,this.Hl=L|0}process(o,l){for(let s=0;s<16;s++,l+=4)Ie[s]=o.getUint32(l),Fe[s]=o.getUint32(l+=4);for(let s=16;s<80;s++){const a=Ie[s-15]|0,g=Fe[s-15]|0,T=Ce(a,g,1)^Ce(a,g,8)^Ti(a,g,7),S=De(a,g,1)^De(a,g,8)^Si(a,g,7),F=Ie[s-2]|0,d=Fe[s-2]|0,K=Ce(F,d,19)^Je(F,d,61)^Ti(F,d,6),X=De(F,d,19)^Qe(F,d,61)^Si(F,d,6),x=To(S,X,Fe[s-7],Fe[s-16]),ee=So(x,T,K,Ie[s-7],Ie[s-16]);Ie[s]=ee|0,Fe[s]=x|0}let{Ah:u,Al:m,Bh:y,Bl:A,Ch:v,Cl:_,Dh:B,Dl:C,Eh:N,El:P,Fh:V,Fl:q,Gh:H,Gl:L,Hh:c,Hl:E}=this;for(let s=0;s<80;s++){const a=Ce(N,P,14)^Ce(N,P,18)^Je(N,P,41),g=De(N,P,14)^De(N,P,18)^Qe(N,P,41),T=N&V^~N&H,S=P&q^~P&L,F=Ro(E,g,S,Fo[s],Fe[s]),d=xo(F,c,a,T,Io[s],Ie[s]),K=F|0,X=Ce(u,m,28)^Je(u,m,34)^Je(u,m,39),x=De(u,m,28)^Qe(u,m,34)^Qe(u,m,39),ee=u&y^u&v^y&v,re=m&A^m&_^A&_;c=H|0,E=L|0,H=V|0,L=q|0,V=N|0,q=P|0,{h:N,l:P}=Se(B|0,C|0,d|0,K|0),B=v|0,C=_|0,v=y|0,_=A|0,y=u|0,A=m|0;const ie=_o(K,x,re);u=Ao(ie,d,X,ee),m=ie|0}({h:u,l:m}=Se(this.Ah|0,this.Al|0,u|0,m|0)),{h:y,l:A}=Se(this.Bh|0,this.Bl|0,y|0,A|0),{h:v,l:_}=Se(this.Ch|0,this.Cl|0,v|0,_|0),{h:B,l:C}=Se(this.Dh|0,this.Dl|0,B|0,C|0),{h:N,l:P}=Se(this.Eh|0,this.El|0,N|0,P|0),{h:V,l:q}=Se(this.Fh|0,this.Fl|0,V|0,q|0),{h:H,l:L}=Se(this.Gh|0,this.Gl|0,H|0,L|0),{h:c,l:E}=Se(this.Hh|0,this.Hl|0,c|0,E|0),this.set(u,m,y,A,v,_,B,C,N,P,V,q,H,L,c,E)}roundClean(){He(Ie,Fe)}destroy(){He(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class Bo extends Oo{Ah=Ee[0]|0;Al=Ee[1]|0;Bh=Ee[2]|0;Bl=Ee[3]|0;Ch=Ee[4]|0;Cl=Ee[5]|0;Dh=Ee[6]|0;Dl=Ee[7]|0;Eh=Ee[8]|0;El=Ee[9]|0;Fh=Ee[10]|0;Fl=Ee[11]|0;Gh=Ee[12]|0;Gl=Ee[13]|0;Hh=Ee[14]|0;Hl=Ee[15]|0;constructor(){super(64)}}const No=po(()=>new Bo,yo(3)),Po=(n,o,l,u)=>te.Buffer.from(mo(No,n,o,{c:l,dkLen:u}));class Co{axiosClient;baseURI;signingKey;ALGORITHM="sha512";TTL=1200;HASH_LENGTH=32;ITERATION_COUNT=1e4;constructor({axiosClient:o,baseURI:l}){this.axiosClient=o,this.baseURI=l}async signUrl(o,l){const u=new URL(o);u.searchParams.set("OC-Credential",l),u.searchParams.set("OC-Date",new Date().toISOString()),u.searchParams.set("OC-Expires",this.TTL.toString()),u.searchParams.set("OC-Verb","GET");const m=await this.createHashedKey(u.toString());return u.searchParams.set("OC-Algo",`PBKDF2/${this.ITERATION_COUNT}-SHA512`),u.searchParams.set("OC-Signature",m),u.toString()}async getSignKey(){if(this.signingKey)return this.signingKey;const o=await this.axiosClient.get(me.urlJoin(this.baseURI,"ocs/v1.php/cloud/user/signing-key"),{headers:{"Content-Type":"application/x-www-form-urlencoded"}}),l=so.xml2js(o.data,{compact:!0});return this.signingKey=l.ocs.data["signing-key"]._text,this.signingKey}async createHashedKey(o){const l=await this.getSignKey();return Po(o,l,this.ITERATION_COUNT,this.HASH_LENGTH,this.ALGORITHM).toString("hex")}}const Do=(n,o)=>{const l=new URL(n);l.pathname=[...l.pathname.split("/"),"ocs","v1.php"].filter(Boolean).join("/");const u=l.href,m=Ri(u,o),y=new Co({baseURI:n,axiosClient:o});return{getCapabilities:()=>m.getCapabilities(),signUrl:(A,v)=>y.signUrl(A,v)}};exports.GetCapabilitiesFactory=Ri;exports.ocs=Do;
|
package/dist/web-client/ocs.js
CHANGED
|
@@ -5636,7 +5636,7 @@ function bo(n) {
|
|
|
5636
5636
|
function ke(n, o = "") {
|
|
5637
5637
|
if (!Number.isSafeInteger(n) || n < 0) {
|
|
5638
5638
|
const l = o && `"${o}" `;
|
|
5639
|
-
throw new Error(`${l}expected integer
|
|
5639
|
+
throw new Error(`${l}expected integer >= 0, got ${n}`);
|
|
5640
5640
|
}
|
|
5641
5641
|
}
|
|
5642
5642
|
function He(n, o, l = "") {
|