@opencloud-eu/web-client 3.2.0 → 4.1.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-CKtvRiMa.cjs +1 -0
- package/dist/functions-aGu-ugzD.js +1188 -0
- package/dist/index-BIL0cW_q.js +1755 -0
- package/dist/index-Bc1xE_gW.cjs +16 -0
- package/dist/index-BtN57j2H.cjs +1 -0
- package/dist/index-DAa_DzDf.cjs +6 -0
- package/dist/index-DRZfsp9q.js +686 -0
- package/dist/{index-DxUgq3ag.js → index-DZvghmpY.js} +1937 -1953
- package/dist/{index-C6VnMvgz.cjs → index-D_NPkUGY.cjs} +1 -1
- package/dist/{index-Pl8khka8.js → index-JHVTaNRI.js} +2 -2
- package/dist/src/graph/driveItems/types.d.ts +6 -2
- package/dist/src/graph/drives/types.d.ts +0 -3
- package/dist/src/graph/generated/api.d.ts +120 -98
- package/dist/src/helpers/resource/types.d.ts +1 -1
- package/dist/src/helpers/share/constants.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 +2 -0
- package/dist/src/webdav/constants/dav.d.ts +1 -0
- package/dist/src/webdav/types.d.ts +1 -1
- package/dist/toString-CgHWCW2N.cjs +1 -0
- package/dist/{toString-Cn0xCZ28.js → toString-XlfBosfh.js} +4 -4
- package/dist/web-client/graph/generated.cjs +1 -1
- package/dist/web-client/graph/generated.js +1984 -2066
- package/dist/web-client/graph.cjs +1 -1
- package/dist/web-client/graph.js +1 -1
- package/dist/web-client/ocs.cjs +12 -12
- package/dist/web-client/ocs.js +1889 -1857
- package/dist/web-client/sse.cjs +2 -2
- package/dist/web-client/sse.js +95 -105
- 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 +83 -82
- package/package.json +2 -2
- package/dist/functions-CYOnwClV.js +0 -1178
- package/dist/functions-DEaUzlbB.cjs +0 -1
- package/dist/index-B3tdq56F.cjs +0 -16
- package/dist/index-BTGj2rHD.js +0 -1705
- package/dist/index-C-U4KVPG.cjs +0 -6
- package/dist/index-D3QfKFAH.cjs +0 -1
- package/dist/index-oCdLZPEA.js +0 -699
- package/dist/toString-hHr716Th.cjs +0 -1
|
@@ -41,6 +41,7 @@ export interface Resource {
|
|
|
41
41
|
extraProps?: Record<string, unknown>;
|
|
42
42
|
remoteItemId?: string;
|
|
43
43
|
remoteItemPath?: string;
|
|
44
|
+
hasPreview?(): boolean;
|
|
44
45
|
canCreate?(): boolean;
|
|
45
46
|
canUpload?({ user }: {
|
|
46
47
|
user?: User;
|
|
@@ -58,7 +59,6 @@ export interface Resource {
|
|
|
58
59
|
user?: User;
|
|
59
60
|
ability?: Ability;
|
|
60
61
|
}): boolean;
|
|
61
|
-
canDeny?(): boolean;
|
|
62
62
|
canEditTags?(): boolean;
|
|
63
63
|
getDomSelector?(): string;
|
|
64
64
|
isReceivedShare?(): boolean;
|
|
@@ -34,7 +34,7 @@ export interface OutgoingShareResource extends ShareResource {
|
|
|
34
34
|
export interface IncomingShareResource extends ShareResource {
|
|
35
35
|
hidden: boolean;
|
|
36
36
|
syncEnabled: boolean;
|
|
37
|
-
shareRoles:
|
|
37
|
+
shareRoles: ShareRole[];
|
|
38
38
|
sharePermissions: GraphSharePermission[];
|
|
39
39
|
}
|
|
40
40
|
export interface ShareRole extends UnifiedRoleDefinition {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Resource } from '../resource';
|
|
2
2
|
import { PublicSpaceResource, ShareSpaceResource, SpaceResource } from './types';
|
|
3
3
|
import { Drive } from '@opencloud-eu/web-client/graph/generated';
|
|
4
|
-
import { CollaboratorShare } from '../share';
|
|
4
|
+
import { CollaboratorShare, ShareRole } from '../share';
|
|
5
5
|
export declare function buildWebDavSpacesPath(storageId: string, path?: string): string;
|
|
6
6
|
export declare function buildWebDavSpacesTrashPath(storageId: string, path?: string): string;
|
|
7
7
|
export declare function getRelativeSpecialFolderSpacePath(space: SpaceResource, type: 'image' | 'readme'): string;
|
|
8
8
|
export declare function isManager(share: CollaboratorShare): boolean;
|
|
9
|
+
export declare const getSpaceManagers: (space: SpaceResource, graphRoles: Record<string, ShareRole>) => import('../../graph/generated').Permission[];
|
|
9
10
|
export type PublicLinkType = 'ocm' | 'public-link';
|
|
10
11
|
export declare function buildPublicSpaceResource(data: any & {
|
|
11
12
|
publicLinkType: PublicLinkType;
|
|
@@ -78,6 +78,7 @@ export interface Capabilities {
|
|
|
78
78
|
version?: string;
|
|
79
79
|
versionstring?: string;
|
|
80
80
|
};
|
|
81
|
+
'check-for-updates'?: boolean;
|
|
81
82
|
'support-sse'?: boolean;
|
|
82
83
|
'support-url-signing'?: boolean;
|
|
83
84
|
'webdav-root'?: string;
|
|
@@ -163,6 +164,7 @@ export interface Capabilities {
|
|
|
163
164
|
create_disabled?: boolean;
|
|
164
165
|
delete_disabled?: boolean;
|
|
165
166
|
read_only_attributes?: string[];
|
|
167
|
+
edit_login_allowed_disabled?: boolean;
|
|
166
168
|
};
|
|
167
169
|
};
|
|
168
170
|
};
|
|
@@ -75,6 +75,7 @@ declare const DavPropertyMapping: {
|
|
|
75
75
|
readonly Highlights: M<"highlights", string>;
|
|
76
76
|
readonly MetaPathForUser: M<"meta-path-for-user", string>;
|
|
77
77
|
readonly RemoteItemId: M<"remote-item-id", string>;
|
|
78
|
+
readonly HasPreview: M<"has-preview", number>;
|
|
78
79
|
readonly ShareId: M<"shareid", string>;
|
|
79
80
|
readonly ShareRoot: M<"shareroot", string>;
|
|
80
81
|
readonly ShareTypes: {
|
|
@@ -43,5 +43,5 @@ export interface WebDAV {
|
|
|
43
43
|
search: ReturnType<typeof SearchFactory>['search'];
|
|
44
44
|
listFavoriteFiles: ReturnType<typeof ListFavoriteFilesFactory>['listFavoriteFiles'];
|
|
45
45
|
setFavorite: ReturnType<typeof SetFavoriteFactory>['setFavorite'];
|
|
46
|
-
registerExtraProp(name: string):
|
|
46
|
+
registerExtraProp(name: string): void;
|
|
47
47
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const h=require("./index-D_NPkUGY.cjs"),M=/^(\w+:\/\/[^/?]+)?(.*?)$/,N=t=>t.filter(e=>typeof e=="string"||typeof e=="number").map(e=>`${e}`).filter(e=>e),G=t=>{const e=t.join("/"),[,r="",n=""]=e.match(M)||[];return{prefix:r,pathname:{parts:n.split("/").filter(a=>a!==""),hasLeading:/^\/+/.test(n),hasTrailing:/\/+$/.test(n)}}},L=(t,e)=>{const{prefix:r,pathname:n}=t,{parts:a,hasLeading:b,hasTrailing:H}=n,{leadingSlash:v,trailingSlash:j}=e,S=v===!0||v==="keep"&&b,I=j===!0||j==="keep"&&H;let o=r;return a.length>0&&((o||S)&&(o+="/"),o+=a.join("/")),I&&(o+="/"),!o&&S&&(o+="/"),o},R=(...t)=>{const e=t[t.length-1];let r;e&&typeof e=="object"&&(r=e,t=t.slice(0,-1)),r={leadingSlash:!0,trailingSlash:!1,...r},t=N(t);const n=G(t);return L(n,r)};var U=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function J(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var q=typeof h.global=="object"&&h.global&&h.global.Object===Object&&h.global,K=typeof self=="object"&&self&&self.Object===Object&&self,p=q||K||Function("return this")(),s=p.Symbol,P=Object.prototype,V=P.hasOwnProperty,B=P.toString,u=s?s.toStringTag:void 0;function Q(t){var e=V.call(t,u),r=t[u];try{t[u]=void 0;var n=!0}catch{}var a=B.call(t);return n&&(e?t[u]=r:delete t[u]),a}var W=Object.prototype,X=W.toString;function Y(t){return X.call(t)}var Z="[object Null]",k="[object Undefined]",m=s?s.toStringTag:void 0;function C(t){return t==null?t===void 0?k:Z:m&&m in Object(t)?Q(t):Y(t)}function $(t){return t!=null&&typeof t=="object"}var tt="[object Symbol]";function x(t){return typeof t=="symbol"||$(t)&&C(t)==tt}function z(t,e){for(var r=-1,n=t==null?0:t.length,a=Array(n);++r<n;)a[r]=e(t[r],r,t);return a}var F=Array.isArray,O=s?s.prototype:void 0,T=O?O.toString:void 0;function D(t){if(typeof t=="string")return t;if(F(t))return z(t,D)+"";if(x(t))return T?T.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function A(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var et="[object AsyncFunction]",rt="[object Function]",nt="[object GeneratorFunction]",at="[object Proxy]";function E(t){if(!A(t))return!1;var e=C(t);return e==rt||e==nt||e==et||e==at}var _=p["__core-js_shared__"],w=(function(){var t=/[^.]+$/.exec(_&&_.keys&&_.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function ot(t){return!!w&&w in t}var it=Function.prototype,st=it.toString;function ct(t){if(t!=null){try{return st.call(t)}catch{}try{return t+""}catch{}}return""}var lt=/[\\^$.*+?()[\]{}|]/g,ut=/^\[object .+?Constructor\]$/,ft=Function.prototype,ht=Object.prototype,pt=ft.toString,dt=ht.hasOwnProperty,gt=RegExp("^"+pt.call(dt).replace(lt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _t(t){if(!A(t)||ot(t))return!1;var e=E(t)?gt:ut;return e.test(ct(t))}function yt(t,e){return t?.[e]}function y(t,e){var r=yt(t,e);return _t(r)?r:void 0}function bt(t,e){return t===e||t!==t&&e!==e}var f=y(Object,"create");function vt(){this.__data__=f?f(null):{},this.size=0}function jt(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var St="__lodash_hash_undefined__",mt=Object.prototype,Ot=mt.hasOwnProperty;function Tt(t){var e=this.__data__;if(f){var r=e[t];return r===St?void 0:r}return Ot.call(e,t)?e[t]:void 0}var wt=Object.prototype,Pt=wt.hasOwnProperty;function Ct(t){var e=this.__data__;return f?e[t]!==void 0:Pt.call(e,t)}var $t="__lodash_hash_undefined__";function xt(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=f&&e===void 0?$t:e,this}function i(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}i.prototype.clear=vt;i.prototype.delete=jt;i.prototype.get=Tt;i.prototype.has=Ct;i.prototype.set=xt;function zt(){this.__data__=[],this.size=0}function d(t,e){for(var r=t.length;r--;)if(bt(t[r][0],e))return r;return-1}var Ft=Array.prototype,Dt=Ft.splice;function At(t){var e=this.__data__,r=d(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():Dt.call(e,r,1),--this.size,!0}function Et(t){var e=this.__data__,r=d(e,t);return r<0?void 0:e[r][1]}function Ht(t){return d(this.__data__,t)>-1}function It(t,e){var r=this.__data__,n=d(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function c(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=zt;c.prototype.delete=At;c.prototype.get=Et;c.prototype.has=Ht;c.prototype.set=It;var Mt=y(p,"Map");function Nt(){this.size=0,this.__data__={hash:new i,map:new(Mt||c),string:new i}}function Gt(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function g(t,e){var r=t.__data__;return Gt(e)?r[typeof e=="string"?"string":"hash"]:r.map}function Lt(t){var e=g(this,t).delete(t);return this.size-=e?1:0,e}function Rt(t){return g(this,t).get(t)}function Ut(t){return g(this,t).has(t)}function Jt(t,e){var r=g(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}function l(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=Nt;l.prototype.delete=Lt;l.prototype.get=Rt;l.prototype.has=Ut;l.prototype.set=Jt;function qt(t){return t==null?"":D(t)}exports.MapCache=l;exports.arrayMap=z;exports.commonjsGlobal=U;exports.getDefaultExportFromCjs=J;exports.getNative=y;exports.isArray=F;exports.isFunction=E;exports.isObjectLike=$;exports.isSymbol=x;exports.root=p;exports.toString=qt;exports.urlJoin=R;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as h } from "./index-
|
|
1
|
+
import { g as h } from "./index-JHVTaNRI.js";
|
|
2
2
|
const F = /^(\w+:\/\/[^/?]+)?(.*?)$/, A = (t) => t.filter((e) => typeof e == "string" || typeof e == "number").map((e) => `${e}`).filter((e) => e), E = (t) => {
|
|
3
3
|
const e = t.join("/"), [, r = "", n = ""] = e.match(F) || [];
|
|
4
4
|
return {
|
|
@@ -81,10 +81,10 @@ function et(t) {
|
|
|
81
81
|
var e = P(t);
|
|
82
82
|
return e == Z || e == k || e == Y || e == tt;
|
|
83
83
|
}
|
|
84
|
-
var g = _["__core-js_shared__"], T = function() {
|
|
84
|
+
var g = _["__core-js_shared__"], T = (function() {
|
|
85
85
|
var t = /[^.]+$/.exec(g && g.keys && g.keys.IE_PROTO || "");
|
|
86
86
|
return t ? "Symbol(src)_1." + t : "";
|
|
87
|
-
}();
|
|
87
|
+
})();
|
|
88
88
|
function rt(t) {
|
|
89
89
|
return !!T && T in t;
|
|
90
90
|
}
|
|
@@ -112,7 +112,7 @@ function pt(t) {
|
|
|
112
112
|
return e.test(ot(t));
|
|
113
113
|
}
|
|
114
114
|
function dt(t, e) {
|
|
115
|
-
return t
|
|
115
|
+
return t?.[e];
|
|
116
116
|
}
|
|
117
117
|
function x(t, e) {
|
|
118
118
|
var r = dt(t, e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var De=Object.defineProperty;var Ee=(e,o,s)=>o in e?De(e,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[o]=s;var D=(e,o,s)=>Ee(e,typeof o!="symbol"?o+"":o,s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../../index-C-U4KVPG.cjs"),P="https://localhost:9200/graph".replace(/\/+$/,""),C={csv:","};class b{constructor(o,s=P,l=m.axios){D(this,"configuration");this.basePath=s,this.axios=l,o&&(this.configuration=o,this.basePath=o.basePath??s)}}class Fe extends Error{constructor(o,s){super(s),this.field=o,this.name="RequiredError"}}const V={},v="https://example.com",h=function(e,o,s){if(s==null)throw new Fe(o,`Required parameter ${o} was null or undefined when calling ${e}.`)},S=function(e,o){o&&(o.username||o.password)&&(e.auth={username:o.username,password:o.password})},R=async function(e,o){if(o&&o.accessToken){const s=typeof o.accessToken=="function"?await o.accessToken():await o.accessToken;e.Authorization="Bearer "+s}};function X(e,o,s=""){o!=null&&(typeof o=="object"?Array.isArray(o)?o.forEach(l=>X(e,l,s)):Object.keys(o).forEach(l=>X(e,o[l],`${s}${s!==""?".":""}${l}`)):e.has(s)?e.append(s,o):e.set(s,o))}const A=function(e,...o){const s=new URLSearchParams(e.search);X(s,o),e.search=s.toString()},x=function(e,o,s){const l=typeof e!="string";return(l&&s&&s.isJsonMime?s.isJsonMime(o.headers["Content-Type"]):l)?JSON.stringify(e!==void 0?e:{}):e||""},O=function(e){return e.pathname+e.search+e.hash},u=function(e,o,s,l){return(t=o,a=s)=>{const r={...e.options,url:(t.defaults.baseURL?"":(l==null?void 0:l.basePath)??a)+e.url};return t.request(r)}},Te={Class:"class",Course:"course"},Be={Internal:"internal",View:"view",Upload:"upload",Edit:"edit",CreateOnly:"createOnly",BlocksDownload:"blocksDownload"},re=function(e){return{getActivities:async(o,s={})=>{const l="/v1beta1/extensions/org.libregraph/activities",t=new URL(l,v);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};S(r,e),o!==void 0&&(c.kql=o),A(t,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:O(t),options:r}}}},Z=function(e){const o=re(e);return{async getActivities(s,l){var n,c;const t=await o.getActivities(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=V["ActivitiesApi.getActivities"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(t,m.axios,P,e)(i,r||d)}}},Me=function(e,o,s){const l=Z(e);return{getActivities(t,a){return l.getActivities(t,a).then(r=>r(s,o))}}};class Le extends b{getActivities(o,s){return Z(this.configuration).getActivities(o,s).then(l=>l(this.axios,this.basePath))}}const ae=function(e){return{getApplication:async(o,s={})=>{h("getApplication","applicationId",o);const l="/v1.0/applications/{application-id}".replace("{application-id}",encodeURIComponent(String(o))),t=new URL(l,v);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};S(r,e),A(t,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:O(t),options:r}},listApplications:async(o={})=>{const s="/v1.0/applications",l=new URL(s,v);let t;e&&(t=e.baseOptions);const a={method:"GET",...t,...o},r={},n={};S(a,e),A(l,n);let c=t&&t.headers?t.headers:{};return a.headers={...r,...c,...o.headers},{url:O(l),options:a}}}},k=function(e){const o=ae(e);return{async getApplication(s,l){var n,c;const t=await o.getApplication(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=V["ApplicationsApi.getApplication"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(t,m.axios,P,e)(i,r||d)},async listApplications(s){var r,n;const l=await o.listApplications(s),t=(e==null?void 0:e.serverIndex)??0,a=(n=(r=V["ApplicationsApi.listApplications"])==null?void 0:r[t])==null?void 0:n.url;return(c,i)=>u(l,m.axios,P,e)(c,a||i)}}},Ge=function(e,o,s){const l=k(e);return{getApplication(t,a){return l.getApplication(t,a).then(r=>r(s,o))},listApplications(t){return l.listApplications(t).then(a=>a(s,o))}}};class je extends b{getApplication(o,s){return k(this.configuration).getApplication(o,s).then(l=>l(this.axios,this.basePath))}listApplications(o){return k(this.configuration).listApplications(o).then(s=>s(this.axios,this.basePath))}}const te=function(e){return{deleteDriveItem:async(o,s,l={})=>{h("deleteDriveItem","driveId",o),h("deleteDriveItem","itemId",s);const t="/v1beta1/drives/{drive-id}/items/{item-id}".replace("{drive-id}",encodeURIComponent(String(o))).replace("{item-id}",encodeURIComponent(String(s))),a=new URL(t,v);let r;e&&(r=e.baseOptions);const n={method:"DELETE",...r,...l},c={},i={};S(n,e),A(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:O(a),options:n}},getDriveItem:async(o,s,l={})=>{h("getDriveItem","driveId",o),h("getDriveItem","itemId",s);const t="/v1beta1/drives/{drive-id}/items/{item-id}".replace("{drive-id}",encodeURIComponent(String(o))).replace("{item-id}",encodeURIComponent(String(s))),a=new URL(t,v);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...l},c={},i={};S(n,e),A(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:O(a),options:n}},updateDriveItem:async(o,s,l,t={})=>{h("updateDriveItem","driveId",o),h("updateDriveItem","itemId",s),h("updateDriveItem","driveItem",l);const a="/v1beta1/drives/{drive-id}/items/{item-id}".replace("{drive-id}",encodeURIComponent(String(o))).replace("{item-id}",encodeURIComponent(String(s))),r=new URL(a,v);let n;e&&(n=e.baseOptions);const c={method:"PATCH",...n,...t},i={},d={};S(c,e),i["Content-Type"]="application/json",A(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...t.headers},c.data=x(l,c,e),{url:O(r),options:c}}}},H=function(e){const o=te(e);return{async deleteDriveItem(s,l,t){var c,i;const a=await o.deleteDriveItem(s,l,t),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=V["DriveItemApi.deleteDriveItem"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,P,e)(d,n||p)},async getDriveItem(s,l,t){var c,i;const a=await o.getDriveItem(s,l,t),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=V["DriveItemApi.getDriveItem"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,P,e)(d,n||p)},async updateDriveItem(s,l,t,a){var i,d;const r=await o.updateDriveItem(s,l,t,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=V["DriveItemApi.updateDriveItem"])==null?void 0:i[n])==null?void 0:d.url;return(p,U)=>u(r,m.axios,P,e)(p,c||U)}}},He=function(e,o,s){const l=H(e);return{deleteDriveItem(t,a,r){return l.deleteDriveItem(t,a,r).then(n=>n(s,o))},getDriveItem(t,a,r){return l.getDriveItem(t,a,r).then(n=>n(s,o))},updateDriveItem(t,a,r,n){return l.updateDriveItem(t,a,r,n).then(c=>c(s,o))}}};class $e extends b{deleteDriveItem(o,s,l){return H(this.configuration).deleteDriveItem(o,s,l).then(t=>t(this.axios,this.basePath))}getDriveItem(o,s,l){return H(this.configuration).getDriveItem(o,s,l).then(t=>t(this.axios,this.basePath))}updateDriveItem(o,s,l,t){return H(this.configuration).updateDriveItem(o,s,l,t).then(a=>a(this.axios,this.basePath))}}const oe=function(e){return{createDrive:async(o,s={})=>{h("createDrive","drive",o);const l="/v1.0/drives",t=new URL(l,v);let a;e&&(a=e.baseOptions);const r={method:"POST",...a,...s},n={},c={};S(r,e),n["Content-Type"]="application/json",A(t,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},r.data=x(o,r,e),{url:O(t),options:r}},deleteDrive:async(o,s,l={})=>{h("deleteDrive","driveId",o);const t="/v1.0/drives/{drive-id}".replace("{drive-id}",encodeURIComponent(String(o))),a=new URL(t,v);let r;e&&(r=e.baseOptions);const n={method:"DELETE",...r,...l},c={},i={};S(n,e),s!=null&&(c["If-Match"]=String(s)),A(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:O(a),options:n}},getDrive:async(o,s,l={})=>{h("getDrive","driveId",o);const t="/v1.0/drives/{drive-id}".replace("{drive-id}",encodeURIComponent(String(o))),a=new URL(t,v);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...l},c={},i={};S(n,e),s&&(i.$select=Array.from(s).join(C.csv)),A(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:O(a),options:n}},updateDrive:async(o,s,l={})=>{h("updateDrive","driveId",o),h("updateDrive","driveUpdate",s);const t="/v1.0/drives/{drive-id}".replace("{drive-id}",encodeURIComponent(String(o))),a=new URL(t,v);let r;e&&(r=e.baseOptions);const n={method:"PATCH",...r,...l},c={},i={};S(n,e),c["Content-Type"]="application/json",A(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=x(s,n,e),{url:O(a),options:n}}}},L=function(e){const o=oe(e);return{async createDrive(s,l){var n,c;const t=await o.createDrive(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=V["DrivesApi.createDrive"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(t,m.axios,P,e)(i,r||d)},async deleteDrive(s,l,t){var c,i;const a=await o.deleteDrive(s,l,t),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=V["DrivesApi.deleteDrive"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,P,e)(d,n||p)},async getDrive(s,l,t){var c,i;const a=await o.getDrive(s,l,t),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=V["DrivesApi.getDrive"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,P,e)(d,n||p)},async updateDrive(s,l,t){var c,i;const a=await o.updateDrive(s,l,t),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=V["DrivesApi.updateDrive"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,P,e)(d,n||p)}}},qe=function(e,o,s){const l=L(e);return{createDrive(t,a){return l.createDrive(t,a).then(r=>r(s,o))},deleteDrive(t,a,r){return l.deleteDrive(t,a,r).then(n=>n(s,o))},getDrive(t,a,r){return l.getDrive(t,a,r).then(n=>n(s,o))},updateDrive(t,a,r){return l.updateDrive(t,a,r).then(n=>n(s,o))}}};class Qe extends b{createDrive(o,s){return L(this.configuration).createDrive(o,s).then(l=>l(this.axios,this.basePath))}deleteDrive(o,s,l){return L(this.configuration).deleteDrive(o,s,l).then(t=>t(this.axios,this.basePath))}getDrive(o,s,l){return L(this.configuration).getDrive(o,s,l).then(t=>t(this.axios,this.basePath))}updateDrive(o,s,l){return L(this.configuration).updateDrive(o,s,l).then(t=>t(this.axios,this.basePath))}}const Ne={LibreGraphHasTrashedItems:"@libre.graph.hasTrashedItems"},le=function(e){return{listAllDrives:async(o,s,l={})=>{const t="/v1.0/drives",a=new URL(t,v);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...l},c={},i={};S(n,e),o!==void 0&&(i.$orderby=o),s!==void 0&&(i.$filter=s),A(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:O(a),options:n}},listAllDrivesBeta:async(o,s,l,t,a={})=>{const r="/v1beta1/drives",n=new URL(r,v);let c;e&&(c=e.baseOptions);const i={method:"GET",...c,...a},d={},p={};S(i,e),o!==void 0&&(p.$orderby=o),s!==void 0&&(p.$filter=s),l!==void 0&&(p.$expand=l),t&&(p.$select=Array.from(t).join(C.csv)),A(n,p);let U=c&&c.headers?c.headers:{};return i.headers={...d,...U,...a.headers},{url:O(n),options:i}}}},W=function(e){const o=le(e);return{async listAllDrives(s,l,t){var c,i;const a=await o.listAllDrives(s,l,t),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=V["DrivesGetDrivesApi.listAllDrives"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,P,e)(d,n||p)},async listAllDrivesBeta(s,l,t,a,r){var d,p;const n=await o.listAllDrivesBeta(s,l,t,a,r),c=(e==null?void 0:e.serverIndex)??0,i=(p=(d=V["DrivesGetDrivesApi.listAllDrivesBeta"])==null?void 0:d[c])==null?void 0:p.url;return(U,y)=>u(n,m.axios,P,e)(U,i||y)}}},ke=function(e,o,s){const l=W(e);return{listAllDrives(t,a,r){return l.listAllDrives(t,a,r).then(n=>n(s,o))},listAllDrivesBeta(t,a,r,n,c){return l.listAllDrivesBeta(t,a,r,n,c).then(i=>i(s,o))}}};class We extends b{listAllDrives(o,s,l){return W(this.configuration).listAllDrives(o,s,l).then(t=>t(this.axios,this.basePath))}listAllDrivesBeta(o,s,l,t,a){return W(this.configuration).listAllDrivesBeta(o,s,l,t,a).then(r=>r(this.axios,this.basePath))}}const ze={LibreGraphHasTrashedItems:"@libre.graph.hasTrashedItems"},ne=function(e){return{createLink:async(o,s,l,t={})=>{h("createLink","driveId",o),h("createLink","itemId",s);const a="/v1beta1/drives/{drive-id}/items/{item-id}/createLink".replace("{drive-id}",encodeURIComponent(String(o))).replace("{item-id}",encodeURIComponent(String(s))),r=new URL(a,v);let n;e&&(n=e.baseOptions);const c={method:"POST",...n,...t},i={},d={};S(c,e),i["Content-Type"]="application/json",A(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...t.headers},c.data=x(l,c,e),{url:O(r),options:c}},deletePermission:async(o,s,l,t={})=>{h("deletePermission","driveId",o),h("deletePermission","itemId",s),h("deletePermission","permId",l);const a="/v1beta1/drives/{drive-id}/items/{item-id}/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(o))).replace("{item-id}",encodeURIComponent(String(s))).replace("{perm-id}",encodeURIComponent(String(l))),r=new URL(a,v);let n;e&&(n=e.baseOptions);const c={method:"DELETE",...n,...t},i={},d={};S(c,e),A(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...t.headers},{url:O(r),options:c}},getPermission:async(o,s,l,t={})=>{h("getPermission","driveId",o),h("getPermission","itemId",s),h("getPermission","permId",l);const a="/v1beta1/drives/{drive-id}/items/{item-id}/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(o))).replace("{item-id}",encodeURIComponent(String(s))).replace("{perm-id}",encodeURIComponent(String(l))),r=new URL(a,v);let n;e&&(n=e.baseOptions);const c={method:"GET",...n,...t},i={},d={};S(c,e),A(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...t.headers},{url:O(r),options:c}},invite:async(o,s,l,t={})=>{h("invite","driveId",o),h("invite","itemId",s);const a="/v1beta1/drives/{drive-id}/items/{item-id}/invite".replace("{drive-id}",encodeURIComponent(String(o))).replace("{item-id}",encodeURIComponent(String(s))),r=new URL(a,v);let n;e&&(n=e.baseOptions);const c={method:"POST",...n,...t},i={},d={};S(c,e),i["Content-Type"]="application/json",A(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...t.headers},c.data=x(l,c,e),{url:O(r),options:c}},listPermissions:async(o,s,l,t,a,r,n={})=>{h("listPermissions","driveId",o),h("listPermissions","itemId",s);const c="/v1beta1/drives/{drive-id}/items/{item-id}/permissions".replace("{drive-id}",encodeURIComponent(String(o))).replace("{item-id}",encodeURIComponent(String(s))),i=new URL(c,v);let d;e&&(d=e.baseOptions);const p={method:"GET",...d,...n},U={},y={};S(p,e),l!==void 0&&(y.$filter=l),t&&(y.$select=Array.from(t).join(C.csv)),a!==void 0&&(y.$count=a),r!==void 0&&(y.$top=r),A(i,y);let B=d&&d.headers?d.headers:{};return p.headers={...U,...B,...n.headers},{url:O(i),options:p}},setPermissionPassword:async(o,s,l,t,a={})=>{h("setPermissionPassword","driveId",o),h("setPermissionPassword","itemId",s),h("setPermissionPassword","permId",l),h("setPermissionPassword","sharingLinkPassword",t);const r="/v1beta1/drives/{drive-id}/items/{item-id}/permissions/{perm-id}/setPassword".replace("{drive-id}",encodeURIComponent(String(o))).replace("{item-id}",encodeURIComponent(String(s))).replace("{perm-id}",encodeURIComponent(String(l))),n=new URL(r,v);let c;e&&(c=e.baseOptions);const i={method:"POST",...c,...a},d={},p={};S(i,e),d["Content-Type"]="application/json",A(n,p);let U=c&&c.headers?c.headers:{};return i.headers={...d,...U,...a.headers},i.data=x(t,i,e),{url:O(n),options:i}},updatePermission:async(o,s,l,t,a={})=>{h("updatePermission","driveId",o),h("updatePermission","itemId",s),h("updatePermission","permId",l),h("updatePermission","permission",t);const r="/v1beta1/drives/{drive-id}/items/{item-id}/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(o))).replace("{item-id}",encodeURIComponent(String(s))).replace("{perm-id}",encodeURIComponent(String(l))),n=new URL(r,v);let c;e&&(c=e.baseOptions);const i={method:"PATCH",...c,...a},d={},p={};S(i,e),d["Content-Type"]="application/json",A(n,p);let U=c&&c.headers?c.headers:{};return i.headers={...d,...U,...a.headers},i.data=x(t,i,e),{url:O(n),options:i}}}},F=function(e){const o=ne(e);return{async createLink(s,l,t,a){var i,d;const r=await o.createLink(s,l,t,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=V["DrivesPermissionsApi.createLink"])==null?void 0:i[n])==null?void 0:d.url;return(p,U)=>u(r,m.axios,P,e)(p,c||U)},async deletePermission(s,l,t,a){var i,d;const r=await o.deletePermission(s,l,t,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=V["DrivesPermissionsApi.deletePermission"])==null?void 0:i[n])==null?void 0:d.url;return(p,U)=>u(r,m.axios,P,e)(p,c||U)},async getPermission(s,l,t,a){var i,d;const r=await o.getPermission(s,l,t,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=V["DrivesPermissionsApi.getPermission"])==null?void 0:i[n])==null?void 0:d.url;return(p,U)=>u(r,m.axios,P,e)(p,c||U)},async invite(s,l,t,a){var i,d;const r=await o.invite(s,l,t,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=V["DrivesPermissionsApi.invite"])==null?void 0:i[n])==null?void 0:d.url;return(p,U)=>u(r,m.axios,P,e)(p,c||U)},async listPermissions(s,l,t,a,r,n,c){var U,y;const i=await o.listPermissions(s,l,t,a,r,n,c),d=(e==null?void 0:e.serverIndex)??0,p=(y=(U=V["DrivesPermissionsApi.listPermissions"])==null?void 0:U[d])==null?void 0:y.url;return(B,Ie)=>u(i,m.axios,P,e)(B,p||Ie)},async setPermissionPassword(s,l,t,a,r){var d,p;const n=await o.setPermissionPassword(s,l,t,a,r),c=(e==null?void 0:e.serverIndex)??0,i=(p=(d=V["DrivesPermissionsApi.setPermissionPassword"])==null?void 0:d[c])==null?void 0:p.url;return(U,y)=>u(n,m.axios,P,e)(U,i||y)},async updatePermission(s,l,t,a,r){var d,p;const n=await o.updatePermission(s,l,t,a,r),c=(e==null?void 0:e.serverIndex)??0,i=(p=(d=V["DrivesPermissionsApi.updatePermission"])==null?void 0:d[c])==null?void 0:p.url;return(U,y)=>u(n,m.axios,P,e)(U,i||y)}}},Je=function(e,o,s){const l=F(e);return{createLink(t,a,r,n){return l.createLink(t,a,r,n).then(c=>c(s,o))},deletePermission(t,a,r,n){return l.deletePermission(t,a,r,n).then(c=>c(s,o))},getPermission(t,a,r,n){return l.getPermission(t,a,r,n).then(c=>c(s,o))},invite(t,a,r,n){return l.invite(t,a,r,n).then(c=>c(s,o))},listPermissions(t,a,r,n,c,i,d){return l.listPermissions(t,a,r,n,c,i,d).then(p=>p(s,o))},setPermissionPassword(t,a,r,n,c){return l.setPermissionPassword(t,a,r,n,c).then(i=>i(s,o))},updatePermission(t,a,r,n,c){return l.updatePermission(t,a,r,n,c).then(i=>i(s,o))}}};class _e extends b{createLink(o,s,l,t){return F(this.configuration).createLink(o,s,l,t).then(a=>a(this.axios,this.basePath))}deletePermission(o,s,l,t){return F(this.configuration).deletePermission(o,s,l,t).then(a=>a(this.axios,this.basePath))}getPermission(o,s,l,t){return F(this.configuration).getPermission(o,s,l,t).then(a=>a(this.axios,this.basePath))}invite(o,s,l,t){return F(this.configuration).invite(o,s,l,t).then(a=>a(this.axios,this.basePath))}listPermissions(o,s,l,t,a,r,n){return F(this.configuration).listPermissions(o,s,l,t,a,r,n).then(c=>c(this.axios,this.basePath))}setPermissionPassword(o,s,l,t,a){return F(this.configuration).setPermissionPassword(o,s,l,t,a).then(r=>r(this.axios,this.basePath))}updatePermission(o,s,l,t,a){return F(this.configuration).updatePermission(o,s,l,t,a).then(r=>r(this.axios,this.basePath))}}const Ke={LibreGraphPermissionsActionsAllowedValues:"@libre.graph.permissions.actions.allowedValues",LibreGraphPermissionsRolesAllowedValues:"@libre.graph.permissions.roles.allowedValues",Value:"value"},ce=function(e){return{createDriveItem:async(o,s,l={})=>{h("createDriveItem","driveId",o);const t="/v1beta1/drives/{drive-id}/root/children".replace("{drive-id}",encodeURIComponent(String(o))),a=new URL(t,v);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...l},c={},i={};S(n,e),c["Content-Type"]="application/json",A(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=x(s,n,e),{url:O(a),options:n}},createLinkSpaceRoot:async(o,s,l={})=>{h("createLinkSpaceRoot","driveId",o);const t="/v1beta1/drives/{drive-id}/root/createLink".replace("{drive-id}",encodeURIComponent(String(o))),a=new URL(t,v);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...l},c={},i={};S(n,e),c["Content-Type"]="application/json",A(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=x(s,n,e),{url:O(a),options:n}},deletePermissionSpaceRoot:async(o,s,l={})=>{h("deletePermissionSpaceRoot","driveId",o),h("deletePermissionSpaceRoot","permId",s);const t="/v1beta1/drives/{drive-id}/root/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(o))).replace("{perm-id}",encodeURIComponent(String(s))),a=new URL(t,v);let r;e&&(r=e.baseOptions);const n={method:"DELETE",...r,...l},c={},i={};S(n,e),A(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:O(a),options:n}},getPermissionSpaceRoot:async(o,s,l={})=>{h("getPermissionSpaceRoot","driveId",o),h("getPermissionSpaceRoot","permId",s);const t="/v1beta1/drives/{drive-id}/root/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(o))).replace("{perm-id}",encodeURIComponent(String(s))),a=new URL(t,v);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...l},c={},i={};S(n,e),A(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:O(a),options:n}},getRoot:async(o,s={})=>{h("getRoot","driveId",o);const l="/v1.0/drives/{drive-id}/root".replace("{drive-id}",encodeURIComponent(String(o))),t=new URL(l,v);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};S(r,e),A(t,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:O(t),options:r}},inviteSpaceRoot:async(o,s,l={})=>{h("inviteSpaceRoot","driveId",o);const t="/v1beta1/drives/{drive-id}/root/invite".replace("{drive-id}",encodeURIComponent(String(o))),a=new URL(t,v);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...l},c={},i={};S(n,e),c["Content-Type"]="application/json",A(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=x(s,n,e),{url:O(a),options:n}},listPermissionsSpaceRoot:async(o,s,l,t,a,r={})=>{h("listPermissionsSpaceRoot","driveId",o);const n="/v1beta1/drives/{drive-id}/root/permissions".replace("{drive-id}",encodeURIComponent(String(o))),c=new URL(n,v);let i;e&&(i=e.baseOptions);const d={method:"GET",...i,...r},p={},U={};S(d,e),s!==void 0&&(U.$filter=s),l&&(U.$select=Array.from(l).join(C.csv)),t!==void 0&&(U.$count=t),a!==void 0&&(U.$top=a),A(c,U);let y=i&&i.headers?i.headers:{};return d.headers={...p,...y,...r.headers},{url:O(c),options:d}},setPermissionPasswordSpaceRoot:async(o,s,l,t={})=>{h("setPermissionPasswordSpaceRoot","driveId",o),h("setPermissionPasswordSpaceRoot","permId",s),h("setPermissionPasswordSpaceRoot","sharingLinkPassword",l);const a="/v1beta1/drives/{drive-id}/root/permissions/{perm-id}/setPassword".replace("{drive-id}",encodeURIComponent(String(o))).replace("{perm-id}",encodeURIComponent(String(s))),r=new URL(a,v);let n;e&&(n=e.baseOptions);const c={method:"POST",...n,...t},i={},d={};S(c,e),i["Content-Type"]="application/json",A(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...t.headers},c.data=x(l,c,e),{url:O(r),options:c}},updatePermissionSpaceRoot:async(o,s,l,t={})=>{h("updatePermissionSpaceRoot","driveId",o),h("updatePermissionSpaceRoot","permId",s),h("updatePermissionSpaceRoot","permission",l);const a="/v1beta1/drives/{drive-id}/root/permissions/{perm-id}".replace("{drive-id}",encodeURIComponent(String(o))).replace("{perm-id}",encodeURIComponent(String(s))),r=new URL(a,v);let n;e&&(n=e.baseOptions);const c={method:"PATCH",...n,...t},i={},d={};S(c,e),i["Content-Type"]="application/json",A(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...t.headers},c.data=x(l,c,e),{url:O(r),options:c}}}},I=function(e){const o=ce(e);return{async createDriveItem(s,l,t){var c,i;const a=await o.createDriveItem(s,l,t),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=V["DrivesRootApi.createDriveItem"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,P,e)(d,n||p)},async createLinkSpaceRoot(s,l,t){var c,i;const a=await o.createLinkSpaceRoot(s,l,t),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=V["DrivesRootApi.createLinkSpaceRoot"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,P,e)(d,n||p)},async deletePermissionSpaceRoot(s,l,t){var c,i;const a=await o.deletePermissionSpaceRoot(s,l,t),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=V["DrivesRootApi.deletePermissionSpaceRoot"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,P,e)(d,n||p)},async getPermissionSpaceRoot(s,l,t){var c,i;const a=await o.getPermissionSpaceRoot(s,l,t),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=V["DrivesRootApi.getPermissionSpaceRoot"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,P,e)(d,n||p)},async getRoot(s,l){var n,c;const t=await o.getRoot(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=V["DrivesRootApi.getRoot"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(t,m.axios,P,e)(i,r||d)},async inviteSpaceRoot(s,l,t){var c,i;const a=await o.inviteSpaceRoot(s,l,t),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=V["DrivesRootApi.inviteSpaceRoot"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,P,e)(d,n||p)},async listPermissionsSpaceRoot(s,l,t,a,r,n){var p,U;const c=await o.listPermissionsSpaceRoot(s,l,t,a,r,n),i=(e==null?void 0:e.serverIndex)??0,d=(U=(p=V["DrivesRootApi.listPermissionsSpaceRoot"])==null?void 0:p[i])==null?void 0:U.url;return(y,B)=>u(c,m.axios,P,e)(y,d||B)},async setPermissionPasswordSpaceRoot(s,l,t,a){var i,d;const r=await o.setPermissionPasswordSpaceRoot(s,l,t,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=V["DrivesRootApi.setPermissionPasswordSpaceRoot"])==null?void 0:i[n])==null?void 0:d.url;return(p,U)=>u(r,m.axios,P,e)(p,c||U)},async updatePermissionSpaceRoot(s,l,t,a){var i,d;const r=await o.updatePermissionSpaceRoot(s,l,t,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=V["DrivesRootApi.updatePermissionSpaceRoot"])==null?void 0:i[n])==null?void 0:d.url;return(p,U)=>u(r,m.axios,P,e)(p,c||U)}}},Ye=function(e,o,s){const l=I(e);return{createDriveItem(t,a,r){return l.createDriveItem(t,a,r).then(n=>n(s,o))},createLinkSpaceRoot(t,a,r){return l.createLinkSpaceRoot(t,a,r).then(n=>n(s,o))},deletePermissionSpaceRoot(t,a,r){return l.deletePermissionSpaceRoot(t,a,r).then(n=>n(s,o))},getPermissionSpaceRoot(t,a,r){return l.getPermissionSpaceRoot(t,a,r).then(n=>n(s,o))},getRoot(t,a){return l.getRoot(t,a).then(r=>r(s,o))},inviteSpaceRoot(t,a,r){return l.inviteSpaceRoot(t,a,r).then(n=>n(s,o))},listPermissionsSpaceRoot(t,a,r,n,c,i){return l.listPermissionsSpaceRoot(t,a,r,n,c,i).then(d=>d(s,o))},setPermissionPasswordSpaceRoot(t,a,r,n){return l.setPermissionPasswordSpaceRoot(t,a,r,n).then(c=>c(s,o))},updatePermissionSpaceRoot(t,a,r,n){return l.updatePermissionSpaceRoot(t,a,r,n).then(c=>c(s,o))}}};class Xe extends b{createDriveItem(o,s,l){return I(this.configuration).createDriveItem(o,s,l).then(t=>t(this.axios,this.basePath))}createLinkSpaceRoot(o,s,l){return I(this.configuration).createLinkSpaceRoot(o,s,l).then(t=>t(this.axios,this.basePath))}deletePermissionSpaceRoot(o,s,l){return I(this.configuration).deletePermissionSpaceRoot(o,s,l).then(t=>t(this.axios,this.basePath))}getPermissionSpaceRoot(o,s,l){return I(this.configuration).getPermissionSpaceRoot(o,s,l).then(t=>t(this.axios,this.basePath))}getRoot(o,s){return I(this.configuration).getRoot(o,s).then(l=>l(this.axios,this.basePath))}inviteSpaceRoot(o,s,l){return I(this.configuration).inviteSpaceRoot(o,s,l).then(t=>t(this.axios,this.basePath))}listPermissionsSpaceRoot(o,s,l,t,a,r){return I(this.configuration).listPermissionsSpaceRoot(o,s,l,t,a,r).then(n=>n(this.axios,this.basePath))}setPermissionPasswordSpaceRoot(o,s,l,t){return I(this.configuration).setPermissionPasswordSpaceRoot(o,s,l,t).then(a=>a(this.axios,this.basePath))}updatePermissionSpaceRoot(o,s,l,t){return I(this.configuration).updatePermissionSpaceRoot(o,s,l,t).then(a=>a(this.axios,this.basePath))}}const Ze={LibreGraphPermissionsActionsAllowedValues:"@libre.graph.permissions.actions.allowedValues",LibreGraphPermissionsRolesAllowedValues:"@libre.graph.permissions.roles.allowedValues",Value:"value"},ie=function(e){return{addUserToClass:async(o,s,l={})=>{h("addUserToClass","classId",o),h("addUserToClass","classMemberReference",s);const t="/v1.0/education/classes/{class-id}/members/$ref".replace("{class-id}",encodeURIComponent(String(o))),a=new URL(t,v);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...l},c={},i={};await R(c,e),c["Content-Type"]="application/json",A(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=x(s,n,e),{url:O(a),options:n}},createClass:async(o,s={})=>{h("createClass","educationClass",o);const l="/v1.0/education/classes",t=new URL(l,v);let a;e&&(a=e.baseOptions);const r={method:"POST",...a,...s},n={},c={};await R(n,e),n["Content-Type"]="application/json",A(t,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},r.data=x(o,r,e),{url:O(t),options:r}},deleteClass:async(o,s={})=>{h("deleteClass","classId",o);const l="/v1.0/education/classes/{class-id}".replace("{class-id}",encodeURIComponent(String(o))),t=new URL(l,v);let a;e&&(a=e.baseOptions);const r={method:"DELETE",...a,...s},n={},c={};await R(n,e),A(t,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:O(t),options:r}},deleteUserFromClass:async(o,s,l={})=>{h("deleteUserFromClass","classId",o),h("deleteUserFromClass","userId",s);const t="/v1.0/education/classes/{class-id}/members/{user-id}/$ref".replace("{class-id}",encodeURIComponent(String(o))).replace("{user-id}",encodeURIComponent(String(s))),a=new URL(t,v);let r;e&&(r=e.baseOptions);const n={method:"DELETE",...r,...l},c={},i={};await R(c,e),A(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:O(a),options:n}},getClass:async(o,s={})=>{h("getClass","classId",o);const l="/v1.0/education/classes/{class-id}".replace("{class-id}",encodeURIComponent(String(o))),t=new URL(l,v);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};await R(n,e),A(t,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:O(t),options:r}},listClassMembers:async(o,s={})=>{h("listClassMembers","classId",o);const l="/v1.0/education/classes/{class-id}/members".replace("{class-id}",encodeURIComponent(String(o))),t=new URL(l,v);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};await R(n,e),A(t,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:O(t),options:r}},listClasses:async(o={})=>{const s="/v1.0/education/classes",l=new URL(s,v);let t;e&&(t=e.baseOptions);const a={method:"GET",...t,...o},r={},n={};await R(r,e),A(l,n);let c=t&&t.headers?t.headers:{};return a.headers={...r,...c,...o.headers},{url:O(l),options:a}},updateClass:async(o,s,l={})=>{h("updateClass","classId",o),h("updateClass","educationClass",s);const t="/v1.0/education/classes/{class-id}".replace("{class-id}",encodeURIComponent(String(o))),a=new URL(t,v);let r;e&&(r=e.baseOptions);const n={method:"PATCH",...r,...l},c={},i={};await R(c,e),c["Content-Type"]="application/json",A(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=x(s,n,e),{url:O(a),options:n}}}},E=function(e){const o=ie(e);return{async addUserToClass(s,l,t){var c,i;const a=await o.addUserToClass(s,l,t),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=V["EducationClassApi.addUserToClass"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,P,e)(d,n||p)},async createClass(s,l){var n,c;const t=await o.createClass(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=V["EducationClassApi.createClass"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(t,m.axios,P,e)(i,r||d)},async deleteClass(s,l){var n,c;const t=await o.deleteClass(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=V["EducationClassApi.deleteClass"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(t,m.axios,P,e)(i,r||d)},async deleteUserFromClass(s,l,t){var c,i;const a=await o.deleteUserFromClass(s,l,t),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=V["EducationClassApi.deleteUserFromClass"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,P,e)(d,n||p)},async getClass(s,l){var n,c;const t=await o.getClass(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=V["EducationClassApi.getClass"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(t,m.axios,P,e)(i,r||d)},async listClassMembers(s,l){var n,c;const t=await o.listClassMembers(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=V["EducationClassApi.listClassMembers"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(t,m.axios,P,e)(i,r||d)},async listClasses(s){var r,n;const l=await o.listClasses(s),t=(e==null?void 0:e.serverIndex)??0,a=(n=(r=V["EducationClassApi.listClasses"])==null?void 0:r[t])==null?void 0:n.url;return(c,i)=>u(l,m.axios,P,e)(c,a||i)},async updateClass(s,l,t){var c,i;const a=await o.updateClass(s,l,t),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=V["EducationClassApi.updateClass"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,P,e)(d,n||p)}}},ge=function(e,o,s){const l=E(e);return{addUserToClass(t,a,r){return l.addUserToClass(t,a,r).then(n=>n(s,o))},createClass(t,a){return l.createClass(t,a).then(r=>r(s,o))},deleteClass(t,a){return l.deleteClass(t,a).then(r=>r(s,o))},deleteUserFromClass(t,a,r){return l.deleteUserFromClass(t,a,r).then(n=>n(s,o))},getClass(t,a){return l.getClass(t,a).then(r=>r(s,o))},listClassMembers(t,a){return l.listClassMembers(t,a).then(r=>r(s,o))},listClasses(t){return l.listClasses(t).then(a=>a(s,o))},updateClass(t,a,r){return l.updateClass(t,a,r).then(n=>n(s,o))}}};class fe extends b{addUserToClass(o,s,l){return E(this.configuration).addUserToClass(o,s,l).then(t=>t(this.axios,this.basePath))}createClass(o,s){return E(this.configuration).createClass(o,s).then(l=>l(this.axios,this.basePath))}deleteClass(o,s){return E(this.configuration).deleteClass(o,s).then(l=>l(this.axios,this.basePath))}deleteUserFromClass(o,s,l){return E(this.configuration).deleteUserFromClass(o,s,l).then(t=>t(this.axios,this.basePath))}getClass(o,s){return E(this.configuration).getClass(o,s).then(l=>l(this.axios,this.basePath))}listClassMembers(o,s){return E(this.configuration).listClassMembers(o,s).then(l=>l(this.axios,this.basePath))}listClasses(o){return E(this.configuration).listClasses(o).then(s=>s(this.axios,this.basePath))}updateClass(o,s,l){return E(this.configuration).updateClass(o,s,l).then(t=>t(this.axios,this.basePath))}}const de=function(e){return{addTeacherToClass:async(o,s,l={})=>{h("addTeacherToClass","classId",o),h("addTeacherToClass","classTeacherReference",s);const t="/v1.0/education/classes/{class-id}/teachers/$ref".replace("{class-id}",encodeURIComponent(String(o))),a=new URL(t,v);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...l},c={},i={};await R(c,e),c["Content-Type"]="application/json",A(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=x(s,n,e),{url:O(a),options:n}},deleteTeacherFromClass:async(o,s,l={})=>{h("deleteTeacherFromClass","classId",o),h("deleteTeacherFromClass","userId",s);const t="/v1.0/education/classes/{class-id}/teachers/{user-id}/$ref".replace("{class-id}",encodeURIComponent(String(o))).replace("{user-id}",encodeURIComponent(String(s))),a=new URL(t,v);let r;e&&(r=e.baseOptions);const n={method:"DELETE",...r,...l},c={},i={};await R(c,e),A(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:O(a),options:n}},getTeachers:async(o,s={})=>{h("getTeachers","classId",o);const l="/v1.0/education/classes/{class-id}/teachers".replace("{class-id}",encodeURIComponent(String(o))),t=new URL(l,v);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};await R(n,e),A(t,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:O(t),options:r}}}},$=function(e){const o=de(e);return{async addTeacherToClass(s,l,t){var c,i;const a=await o.addTeacherToClass(s,l,t),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=V["EducationClassTeachersApi.addTeacherToClass"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,P,e)(d,n||p)},async deleteTeacherFromClass(s,l,t){var c,i;const a=await o.deleteTeacherFromClass(s,l,t),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=V["EducationClassTeachersApi.deleteTeacherFromClass"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,P,e)(d,n||p)},async getTeachers(s,l){var n,c;const t=await o.getTeachers(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=V["EducationClassTeachersApi.getTeachers"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(t,m.axios,P,e)(i,r||d)}}},es=function(e,o,s){const l=$(e);return{addTeacherToClass(t,a,r){return l.addTeacherToClass(t,a,r).then(n=>n(s,o))},deleteTeacherFromClass(t,a,r){return l.deleteTeacherFromClass(t,a,r).then(n=>n(s,o))},getTeachers(t,a){return l.getTeachers(t,a).then(r=>r(s,o))}}};class ss extends b{addTeacherToClass(o,s,l){return $(this.configuration).addTeacherToClass(o,s,l).then(t=>t(this.axios,this.basePath))}deleteTeacherFromClass(o,s,l){return $(this.configuration).deleteTeacherFromClass(o,s,l).then(t=>t(this.axios,this.basePath))}getTeachers(o,s){return $(this.configuration).getTeachers(o,s).then(l=>l(this.axios,this.basePath))}}const pe=function(e){return{addClassToSchool:async(o,s,l={})=>{h("addClassToSchool","schoolId",o),h("addClassToSchool","classReference",s);const t="/v1.0/education/schools/{school-id}/classes/$ref".replace("{school-id}",encodeURIComponent(String(o))),a=new URL(t,v);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...l},c={},i={};await R(c,e),c["Content-Type"]="application/json",A(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=x(s,n,e),{url:O(a),options:n}},addUserToSchool:async(o,s,l={})=>{h("addUserToSchool","schoolId",o),h("addUserToSchool","educationUserReference",s);const t="/v1.0/education/schools/{school-id}/users/$ref".replace("{school-id}",encodeURIComponent(String(o))),a=new URL(t,v);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...l},c={},i={};await R(c,e),c["Content-Type"]="application/json",A(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=x(s,n,e),{url:O(a),options:n}},createSchool:async(o,s={})=>{h("createSchool","educationSchool",o);const l="/v1.0/education/schools",t=new URL(l,v);let a;e&&(a=e.baseOptions);const r={method:"POST",...a,...s},n={},c={};await R(n,e),n["Content-Type"]="application/json",A(t,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},r.data=x(o,r,e),{url:O(t),options:r}},deleteClassFromSchool:async(o,s,l={})=>{h("deleteClassFromSchool","schoolId",o),h("deleteClassFromSchool","classId",s);const t="/v1.0/education/schools/{school-id}/classes/{class-id}/$ref".replace("{school-id}",encodeURIComponent(String(o))).replace("{class-id}",encodeURIComponent(String(s))),a=new URL(t,v);let r;e&&(r=e.baseOptions);const n={method:"DELETE",...r,...l},c={},i={};await R(c,e),A(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:O(a),options:n}},deleteSchool:async(o,s={})=>{h("deleteSchool","schoolId",o);const l="/v1.0/education/schools/{school-id}".replace("{school-id}",encodeURIComponent(String(o))),t=new URL(l,v);let a;e&&(a=e.baseOptions);const r={method:"DELETE",...a,...s},n={},c={};await R(n,e),A(t,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:O(t),options:r}},deleteUserFromSchool:async(o,s,l={})=>{h("deleteUserFromSchool","schoolId",o),h("deleteUserFromSchool","userId",s);const t="/v1.0/education/schools/{school-id}/users/{user-id}/$ref".replace("{school-id}",encodeURIComponent(String(o))).replace("{user-id}",encodeURIComponent(String(s))),a=new URL(t,v);let r;e&&(r=e.baseOptions);const n={method:"DELETE",...r,...l},c={},i={};await R(c,e),A(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:O(a),options:n}},getSchool:async(o,s={})=>{h("getSchool","schoolId",o);const l="/v1.0/education/schools/{school-id}".replace("{school-id}",encodeURIComponent(String(o))),t=new URL(l,v);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};await R(n,e),A(t,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:O(t),options:r}},listSchoolClasses:async(o,s={})=>{h("listSchoolClasses","schoolId",o);const l="/v1.0/education/schools/{school-id}/classes".replace("{school-id}",encodeURIComponent(String(o))),t=new URL(l,v);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};await R(n,e),A(t,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:O(t),options:r}},listSchoolUsers:async(o,s={})=>{h("listSchoolUsers","schoolId",o);const l="/v1.0/education/schools/{school-id}/users".replace("{school-id}",encodeURIComponent(String(o))),t=new URL(l,v);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};await R(n,e),A(t,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:O(t),options:r}},listSchools:async(o={})=>{const s="/v1.0/education/schools",l=new URL(s,v);let t;e&&(t=e.baseOptions);const a={method:"GET",...t,...o},r={},n={};await R(r,e),A(l,n);let c=t&&t.headers?t.headers:{};return a.headers={...r,...c,...o.headers},{url:O(l),options:a}},updateSchool:async(o,s,l={})=>{h("updateSchool","schoolId",o),h("updateSchool","educationSchool",s);const t="/v1.0/education/schools/{school-id}".replace("{school-id}",encodeURIComponent(String(o))),a=new URL(t,v);let r;e&&(r=e.baseOptions);const n={method:"PATCH",...r,...l},c={},i={};await R(c,e),c["Content-Type"]="application/json",A(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=x(s,n,e),{url:O(a),options:n}}}},w=function(e){const o=pe(e);return{async addClassToSchool(s,l,t){var c,i;const a=await o.addClassToSchool(s,l,t),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=V["EducationSchoolApi.addClassToSchool"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,P,e)(d,n||p)},async addUserToSchool(s,l,t){var c,i;const a=await o.addUserToSchool(s,l,t),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=V["EducationSchoolApi.addUserToSchool"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,P,e)(d,n||p)},async createSchool(s,l){var n,c;const t=await o.createSchool(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=V["EducationSchoolApi.createSchool"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(t,m.axios,P,e)(i,r||d)},async deleteClassFromSchool(s,l,t){var c,i;const a=await o.deleteClassFromSchool(s,l,t),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=V["EducationSchoolApi.deleteClassFromSchool"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,P,e)(d,n||p)},async deleteSchool(s,l){var n,c;const t=await o.deleteSchool(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=V["EducationSchoolApi.deleteSchool"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(t,m.axios,P,e)(i,r||d)},async deleteUserFromSchool(s,l,t){var c,i;const a=await o.deleteUserFromSchool(s,l,t),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=V["EducationSchoolApi.deleteUserFromSchool"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,P,e)(d,n||p)},async getSchool(s,l){var n,c;const t=await o.getSchool(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=V["EducationSchoolApi.getSchool"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(t,m.axios,P,e)(i,r||d)},async listSchoolClasses(s,l){var n,c;const t=await o.listSchoolClasses(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=V["EducationSchoolApi.listSchoolClasses"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(t,m.axios,P,e)(i,r||d)},async listSchoolUsers(s,l){var n,c;const t=await o.listSchoolUsers(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=V["EducationSchoolApi.listSchoolUsers"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(t,m.axios,P,e)(i,r||d)},async listSchools(s){var r,n;const l=await o.listSchools(s),t=(e==null?void 0:e.serverIndex)??0,a=(n=(r=V["EducationSchoolApi.listSchools"])==null?void 0:r[t])==null?void 0:n.url;return(c,i)=>u(l,m.axios,P,e)(c,a||i)},async updateSchool(s,l,t){var c,i;const a=await o.updateSchool(s,l,t),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=V["EducationSchoolApi.updateSchool"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,P,e)(d,n||p)}}},rs=function(e,o,s){const l=w(e);return{addClassToSchool(t,a,r){return l.addClassToSchool(t,a,r).then(n=>n(s,o))},addUserToSchool(t,a,r){return l.addUserToSchool(t,a,r).then(n=>n(s,o))},createSchool(t,a){return l.createSchool(t,a).then(r=>r(s,o))},deleteClassFromSchool(t,a,r){return l.deleteClassFromSchool(t,a,r).then(n=>n(s,o))},deleteSchool(t,a){return l.deleteSchool(t,a).then(r=>r(s,o))},deleteUserFromSchool(t,a,r){return l.deleteUserFromSchool(t,a,r).then(n=>n(s,o))},getSchool(t,a){return l.getSchool(t,a).then(r=>r(s,o))},listSchoolClasses(t,a){return l.listSchoolClasses(t,a).then(r=>r(s,o))},listSchoolUsers(t,a){return l.listSchoolUsers(t,a).then(r=>r(s,o))},listSchools(t){return l.listSchools(t).then(a=>a(s,o))},updateSchool(t,a,r){return l.updateSchool(t,a,r).then(n=>n(s,o))}}};class as extends b{addClassToSchool(o,s,l){return w(this.configuration).addClassToSchool(o,s,l).then(t=>t(this.axios,this.basePath))}addUserToSchool(o,s,l){return w(this.configuration).addUserToSchool(o,s,l).then(t=>t(this.axios,this.basePath))}createSchool(o,s){return w(this.configuration).createSchool(o,s).then(l=>l(this.axios,this.basePath))}deleteClassFromSchool(o,s,l){return w(this.configuration).deleteClassFromSchool(o,s,l).then(t=>t(this.axios,this.basePath))}deleteSchool(o,s){return w(this.configuration).deleteSchool(o,s).then(l=>l(this.axios,this.basePath))}deleteUserFromSchool(o,s,l){return w(this.configuration).deleteUserFromSchool(o,s,l).then(t=>t(this.axios,this.basePath))}getSchool(o,s){return w(this.configuration).getSchool(o,s).then(l=>l(this.axios,this.basePath))}listSchoolClasses(o,s){return w(this.configuration).listSchoolClasses(o,s).then(l=>l(this.axios,this.basePath))}listSchoolUsers(o,s){return w(this.configuration).listSchoolUsers(o,s).then(l=>l(this.axios,this.basePath))}listSchools(o){return w(this.configuration).listSchools(o).then(s=>s(this.axios,this.basePath))}updateSchool(o,s,l){return w(this.configuration).updateSchool(o,s,l).then(t=>t(this.axios,this.basePath))}}const he=function(e){return{createEducationUser:async(o,s={})=>{h("createEducationUser","educationUser",o);const l="/v1.0/education/users",t=new URL(l,v);let a;e&&(a=e.baseOptions);const r={method:"POST",...a,...s},n={},c={};await R(n,e),n["Content-Type"]="application/json",A(t,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},r.data=x(o,r,e),{url:O(t),options:r}},deleteEducationUser:async(o,s={})=>{h("deleteEducationUser","userId",o);const l="/v1.0/education/users/{user-id}".replace("{user-id}",encodeURIComponent(String(o))),t=new URL(l,v);let a;e&&(a=e.baseOptions);const r={method:"DELETE",...a,...s},n={},c={};await R(n,e),A(t,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:O(t),options:r}},getEducationUser:async(o,s,l={})=>{h("getEducationUser","userId",o);const t="/v1.0/education/users/{user-id}".replace("{user-id}",encodeURIComponent(String(o))),a=new URL(t,v);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...l},c={},i={};await R(c,e),s&&(i.$expand=Array.from(s).join(C.csv)),A(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:O(a),options:n}},listEducationUsers:async(o,s,l={})=>{const t="/v1.0/education/users",a=new URL(t,v);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...l},c={},i={};await R(c,e),o&&(i.$orderby=Array.from(o).join(C.csv)),s&&(i.$expand=Array.from(s).join(C.csv)),A(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:O(a),options:n}},updateEducationUser:async(o,s,l={})=>{h("updateEducationUser","userId",o),h("updateEducationUser","educationUser",s);const t="/v1.0/education/users/{user-id}".replace("{user-id}",encodeURIComponent(String(o))),a=new URL(t,v);let r;e&&(r=e.baseOptions);const n={method:"PATCH",...r,...l},c={},i={};await R(c,e),c["Content-Type"]="application/json",A(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=x(s,n,e),{url:O(a),options:n}}}},M=function(e){const o=he(e);return{async createEducationUser(s,l){var n,c;const t=await o.createEducationUser(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=V["EducationUserApi.createEducationUser"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(t,m.axios,P,e)(i,r||d)},async deleteEducationUser(s,l){var n,c;const t=await o.deleteEducationUser(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=V["EducationUserApi.deleteEducationUser"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(t,m.axios,P,e)(i,r||d)},async getEducationUser(s,l,t){var c,i;const a=await o.getEducationUser(s,l,t),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=V["EducationUserApi.getEducationUser"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,P,e)(d,n||p)},async listEducationUsers(s,l,t){var c,i;const a=await o.listEducationUsers(s,l,t),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=V["EducationUserApi.listEducationUsers"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,P,e)(d,n||p)},async updateEducationUser(s,l,t){var c,i;const a=await o.updateEducationUser(s,l,t),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=V["EducationUserApi.updateEducationUser"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,P,e)(d,n||p)}}},ts=function(e,o,s){const l=M(e);return{createEducationUser(t,a){return l.createEducationUser(t,a).then(r=>r(s,o))},deleteEducationUser(t,a){return l.deleteEducationUser(t,a).then(r=>r(s,o))},getEducationUser(t,a,r){return l.getEducationUser(t,a,r).then(n=>n(s,o))},listEducationUsers(t,a,r){return l.listEducationUsers(t,a,r).then(n=>n(s,o))},updateEducationUser(t,a,r){return l.updateEducationUser(t,a,r).then(n=>n(s,o))}}};class os extends b{createEducationUser(o,s){return M(this.configuration).createEducationUser(o,s).then(l=>l(this.axios,this.basePath))}deleteEducationUser(o,s){return M(this.configuration).deleteEducationUser(o,s).then(l=>l(this.axios,this.basePath))}getEducationUser(o,s,l){return M(this.configuration).getEducationUser(o,s,l).then(t=>t(this.axios,this.basePath))}listEducationUsers(o,s,l){return M(this.configuration).listEducationUsers(o,s,l).then(t=>t(this.axios,this.basePath))}updateEducationUser(o,s,l){return M(this.configuration).updateEducationUser(o,s,l).then(t=>t(this.axios,this.basePath))}}const ls={MemberOf:"memberOf"},ns={DisplayName:"displayName",DisplayNameDesc:"displayName desc",Mail:"mail",MailDesc:"mail desc",OnPremisesSamAccountName:"onPremisesSamAccountName",OnPremisesSamAccountNameDesc:"onPremisesSamAccountName desc"},cs={MemberOf:"memberOf"},me=function(e){return{addMember:async(o,s,l={})=>{h("addMember","groupId",o),h("addMember","memberReference",s);const t="/v1.0/groups/{group-id}/members/$ref".replace("{group-id}",encodeURIComponent(String(o))),a=new URL(t,v);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...l},c={},i={};S(n,e),c["Content-Type"]="application/json",A(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=x(s,n,e),{url:O(a),options:n}},deleteGroup:async(o,s,l={})=>{h("deleteGroup","groupId",o);const t="/v1.0/groups/{group-id}".replace("{group-id}",encodeURIComponent(String(o))),a=new URL(t,v);let r;e&&(r=e.baseOptions);const n={method:"DELETE",...r,...l},c={},i={};S(n,e),s!=null&&(c["If-Match"]=String(s)),A(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:O(a),options:n}},deleteMember:async(o,s,l,t={})=>{h("deleteMember","groupId",o),h("deleteMember","directoryObjectId",s);const a="/v1.0/groups/{group-id}/members/{directory-object-id}/$ref".replace("{group-id}",encodeURIComponent(String(o))).replace("{directory-object-id}",encodeURIComponent(String(s))),r=new URL(a,v);let n;e&&(n=e.baseOptions);const c={method:"DELETE",...n,...t},i={},d={};S(c,e),l!=null&&(i["If-Match"]=String(l)),A(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...t.headers},{url:O(r),options:c}},getGroup:async(o,s,l,t={})=>{h("getGroup","groupId",o);const a="/v1.0/groups/{group-id}".replace("{group-id}",encodeURIComponent(String(o))),r=new URL(a,v);let n;e&&(n=e.baseOptions);const c={method:"GET",...n,...t},i={},d={};S(c,e),s&&(d.$select=Array.from(s).join(C.csv)),l&&(d.$expand=Array.from(l).join(C.csv)),A(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...t.headers},{url:O(r),options:c}},listMembers:async(o,s={})=>{h("listMembers","groupId",o);const l="/v1.0/groups/{group-id}/members".replace("{group-id}",encodeURIComponent(String(o))),t=new URL(l,v);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};S(r,e),A(t,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:O(t),options:r}},updateGroup:async(o,s,l={})=>{h("updateGroup","groupId",o),h("updateGroup","group",s);const t="/v1.0/groups/{group-id}".replace("{group-id}",encodeURIComponent(String(o))),a=new URL(t,v);let r;e&&(r=e.baseOptions);const n={method:"PATCH",...r,...l},c={},i={};S(n,e),c["Content-Type"]="application/json",A(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=x(s,n,e),{url:O(a),options:n}}}},T=function(e){const o=me(e);return{async addMember(s,l,t){var c,i;const a=await o.addMember(s,l,t),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=V["GroupApi.addMember"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,P,e)(d,n||p)},async deleteGroup(s,l,t){var c,i;const a=await o.deleteGroup(s,l,t),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=V["GroupApi.deleteGroup"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,P,e)(d,n||p)},async deleteMember(s,l,t,a){var i,d;const r=await o.deleteMember(s,l,t,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=V["GroupApi.deleteMember"])==null?void 0:i[n])==null?void 0:d.url;return(p,U)=>u(r,m.axios,P,e)(p,c||U)},async getGroup(s,l,t,a){var i,d;const r=await o.getGroup(s,l,t,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=V["GroupApi.getGroup"])==null?void 0:i[n])==null?void 0:d.url;return(p,U)=>u(r,m.axios,P,e)(p,c||U)},async listMembers(s,l){var n,c;const t=await o.listMembers(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=V["GroupApi.listMembers"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(t,m.axios,P,e)(i,r||d)},async updateGroup(s,l,t){var c,i;const a=await o.updateGroup(s,l,t),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=V["GroupApi.updateGroup"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,P,e)(d,n||p)}}},is=function(e,o,s){const l=T(e);return{addMember(t,a,r){return l.addMember(t,a,r).then(n=>n(s,o))},deleteGroup(t,a,r){return l.deleteGroup(t,a,r).then(n=>n(s,o))},deleteMember(t,a,r,n){return l.deleteMember(t,a,r,n).then(c=>c(s,o))},getGroup(t,a,r,n){return l.getGroup(t,a,r,n).then(c=>c(s,o))},listMembers(t,a){return l.listMembers(t,a).then(r=>r(s,o))},updateGroup(t,a,r){return l.updateGroup(t,a,r).then(n=>n(s,o))}}};class ds extends b{addMember(o,s,l){return T(this.configuration).addMember(o,s,l).then(t=>t(this.axios,this.basePath))}deleteGroup(o,s,l){return T(this.configuration).deleteGroup(o,s,l).then(t=>t(this.axios,this.basePath))}deleteMember(o,s,l,t){return T(this.configuration).deleteMember(o,s,l,t).then(a=>a(this.axios,this.basePath))}getGroup(o,s,l,t){return T(this.configuration).getGroup(o,s,l,t).then(a=>a(this.axios,this.basePath))}listMembers(o,s){return T(this.configuration).listMembers(o,s).then(l=>l(this.axios,this.basePath))}updateGroup(o,s,l){return T(this.configuration).updateGroup(o,s,l).then(t=>t(this.axios,this.basePath))}}const ps={Id:"id",Description:"description",DisplayName:"displayName",Members:"members"},hs={Members:"members"},Pe=function(e){return{createGroup:async(o,s={})=>{h("createGroup","group",o);const l="/v1.0/groups",t=new URL(l,v);let a;e&&(a=e.baseOptions);const r={method:"POST",...a,...s},n={},c={};S(r,e),n["Content-Type"]="application/json",A(t,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},r.data=x(o,r,e),{url:O(t),options:r}},listGroups:async(o,s,l,t,a={})=>{const r="/v1.0/groups",n=new URL(r,v);let c;e&&(c=e.baseOptions);const i={method:"GET",...c,...a},d={},p={};S(i,e),o!==void 0&&(p.$search=o),s&&(p.$orderby=Array.from(s).join(C.csv)),l&&(p.$select=Array.from(l).join(C.csv)),t&&(p.$expand=Array.from(t).join(C.csv)),A(n,p);let U=c&&c.headers?c.headers:{};return i.headers={...d,...U,...a.headers},{url:O(n),options:i}}}},z=function(e){const o=Pe(e);return{async createGroup(s,l){var n,c;const t=await o.createGroup(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=V["GroupsApi.createGroup"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(t,m.axios,P,e)(i,r||d)},async listGroups(s,l,t,a,r){var d,p;const n=await o.listGroups(s,l,t,a,r),c=(e==null?void 0:e.serverIndex)??0,i=(p=(d=V["GroupsApi.listGroups"])==null?void 0:d[c])==null?void 0:p.url;return(U,y)=>u(n,m.axios,P,e)(U,i||y)}}},ms=function(e,o,s){const l=z(e);return{createGroup(t,a){return l.createGroup(t,a).then(r=>r(s,o))},listGroups(t,a,r,n,c){return l.listGroups(t,a,r,n,c).then(i=>i(s,o))}}};class Ps extends b{createGroup(o,s){return z(this.configuration).createGroup(o,s).then(l=>l(this.axios,this.basePath))}listGroups(o,s,l,t,a){return z(this.configuration).listGroups(o,s,l,t,a).then(r=>r(this.axios,this.basePath))}}const Vs={DisplayName:"displayName",DisplayNameDesc:"displayName desc"},vs={Id:"id",Description:"description",DisplayName:"displayName",Mail:"mail",Members:"members"},As={Members:"members"},Ve=function(e){return{changeOwnPassword:async(o,s={})=>{h("changeOwnPassword","passwordChange",o);const l="/v1.0/me/changePassword",t=new URL(l,v);let a;e&&(a=e.baseOptions);const r={method:"POST",...a,...s},n={},c={};S(r,e),n["Content-Type"]="application/json",A(t,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},r.data=x(o,r,e),{url:O(t),options:r}}}},g=function(e){const o=Ve(e);return{async changeOwnPassword(s,l){var n,c;const t=await o.changeOwnPassword(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=V["MeChangepasswordApi.changeOwnPassword"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(t,m.axios,P,e)(i,r||d)}}},Os=function(e,o,s){const l=g(e);return{changeOwnPassword(t,a){return l.changeOwnPassword(t,a).then(r=>r(s,o))}}};class us extends b{changeOwnPassword(o,s){return g(this.configuration).changeOwnPassword(o,s).then(l=>l(this.axios,this.basePath))}}const ve=function(e){return{getHome:async(o={})=>{const s="/v1.0/me/drive",l=new URL(s,v);let t;e&&(t=e.baseOptions);const a={method:"GET",...t,...o},r={},n={};S(a,e),A(l,n);let c=t&&t.headers?t.headers:{};return a.headers={...r,...c,...o.headers},{url:O(l),options:a}},listSharedByMe:async(o={})=>{const s="/v1beta1/me/drive/sharedByMe",l=new URL(s,v);let t;e&&(t=e.baseOptions);const a={method:"GET",...t,...o},r={},n={};S(a,e),A(l,n);let c=t&&t.headers?t.headers:{};return a.headers={...r,...c,...o.headers},{url:O(l),options:a}},listSharedWithMe:async(o={})=>{const s="/v1beta1/me/drive/sharedWithMe",l=new URL(s,v);let t;e&&(t=e.baseOptions);const a={method:"GET",...t,...o},r={},n={};S(a,e),A(l,n);let c=t&&t.headers?t.headers:{};return a.headers={...r,...c,...o.headers},{url:O(l),options:a}}}},q=function(e){const o=ve(e);return{async getHome(s){var r,n;const l=await o.getHome(s),t=(e==null?void 0:e.serverIndex)??0,a=(n=(r=V["MeDriveApi.getHome"])==null?void 0:r[t])==null?void 0:n.url;return(c,i)=>u(l,m.axios,P,e)(c,a||i)},async listSharedByMe(s){var r,n;const l=await o.listSharedByMe(s),t=(e==null?void 0:e.serverIndex)??0,a=(n=(r=V["MeDriveApi.listSharedByMe"])==null?void 0:r[t])==null?void 0:n.url;return(c,i)=>u(l,m.axios,P,e)(c,a||i)},async listSharedWithMe(s){var r,n;const l=await o.listSharedWithMe(s),t=(e==null?void 0:e.serverIndex)??0,a=(n=(r=V["MeDriveApi.listSharedWithMe"])==null?void 0:r[t])==null?void 0:n.url;return(c,i)=>u(l,m.axios,P,e)(c,a||i)}}},Us=function(e,o,s){const l=q(e);return{getHome(t){return l.getHome(t).then(a=>a(s,o))},listSharedByMe(t){return l.listSharedByMe(t).then(a=>a(s,o))},listSharedWithMe(t){return l.listSharedWithMe(t).then(a=>a(s,o))}}};class Ss extends b{getHome(o){return q(this.configuration).getHome(o).then(s=>s(this.axios,this.basePath))}listSharedByMe(o){return q(this.configuration).listSharedByMe(o).then(s=>s(this.axios,this.basePath))}listSharedWithMe(o){return q(this.configuration).listSharedWithMe(o).then(s=>s(this.axios,this.basePath))}}const Ae=function(e){return{homeGetRoot:async(o={})=>{const s="/v1.0/me/drive/root",l=new URL(s,v);let t;e&&(t=e.baseOptions);const a={method:"GET",...t,...o},r={},n={};S(a,e),A(l,n);let c=t&&t.headers?t.headers:{};return a.headers={...r,...c,...o.headers},{url:O(l),options:a}}}},f=function(e){const o=Ae(e);return{async homeGetRoot(s){var r,n;const l=await o.homeGetRoot(s),t=(e==null?void 0:e.serverIndex)??0,a=(n=(r=V["MeDriveRootApi.homeGetRoot"])==null?void 0:r[t])==null?void 0:n.url;return(c,i)=>u(l,m.axios,P,e)(c,a||i)}}},xs=function(e,o,s){const l=f(e);return{homeGetRoot(t){return l.homeGetRoot(t).then(a=>a(s,o))}}};class Rs extends b{homeGetRoot(o){return f(this.configuration).homeGetRoot(o).then(s=>s(this.axios,this.basePath))}}const Oe=function(e){return{homeGetChildren:async(o={})=>{const s="/v1.0/me/drive/root/children",l=new URL(s,v);let t;e&&(t=e.baseOptions);const a={method:"GET",...t,...o},r={},n={};S(a,e),A(l,n);let c=t&&t.headers?t.headers:{};return a.headers={...r,...c,...o.headers},{url:O(l),options:a}}}},ee=function(e){const o=Oe(e);return{async homeGetChildren(s){var r,n;const l=await o.homeGetChildren(s),t=(e==null?void 0:e.serverIndex)??0,a=(n=(r=V["MeDriveRootChildrenApi.homeGetChildren"])==null?void 0:r[t])==null?void 0:n.url;return(c,i)=>u(l,m.axios,P,e)(c,a||i)}}},ys=function(e,o,s){const l=ee(e);return{homeGetChildren(t){return l.homeGetChildren(t).then(a=>a(s,o))}}};class bs extends b{homeGetChildren(o){return ee(this.configuration).homeGetChildren(o).then(s=>s(this.axios,this.basePath))}}const ue=function(e){return{listMyDrives:async(o,s,l={})=>{const t="/v1.0/me/drives",a=new URL(t,v);let r;e&&(r=e.baseOptions);const n={method:"GET",...r,...l},c={},i={};S(n,e),o!==void 0&&(i.$orderby=o),s!==void 0&&(i.$filter=s),A(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:O(a),options:n}},listMyDrivesBeta:async(o,s,l,t,a={})=>{const r="/v1beta1/me/drives",n=new URL(r,v);let c;e&&(c=e.baseOptions);const i={method:"GET",...c,...a},d={},p={};S(i,e),o!==void 0&&(p.$orderby=o),s!==void 0&&(p.$filter=s),l!==void 0&&(p.$expand=l),t&&(p.$select=Array.from(t).join(C.csv)),A(n,p);let U=c&&c.headers?c.headers:{};return i.headers={...d,...U,...a.headers},{url:O(n),options:i}}}},J=function(e){const o=ue(e);return{async listMyDrives(s,l,t){var c,i;const a=await o.listMyDrives(s,l,t),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=V["MeDrivesApi.listMyDrives"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,P,e)(d,n||p)},async listMyDrivesBeta(s,l,t,a,r){var d,p;const n=await o.listMyDrivesBeta(s,l,t,a,r),c=(e==null?void 0:e.serverIndex)??0,i=(p=(d=V["MeDrivesApi.listMyDrivesBeta"])==null?void 0:d[c])==null?void 0:p.url;return(U,y)=>u(n,m.axios,P,e)(U,i||y)}}},Cs=function(e,o,s){const l=J(e);return{listMyDrives(t,a,r){return l.listMyDrives(t,a,r).then(n=>n(s,o))},listMyDrivesBeta(t,a,r,n,c){return l.listMyDrivesBeta(t,a,r,n,c).then(i=>i(s,o))}}};class ws extends b{listMyDrives(o,s,l){return J(this.configuration).listMyDrives(o,s,l).then(t=>t(this.axios,this.basePath))}listMyDrivesBeta(o,s,l,t,a){return J(this.configuration).listMyDrivesBeta(o,s,l,t,a).then(r=>r(this.axios,this.basePath))}}const Is={LibreGraphHasTrashedItems:"@libre.graph.hasTrashedItems"},Ue=function(e){return{deleteOwnUserPhoto:async(o={})=>{const s="/v1.0/me/photo/$value",l=new URL(s,v);let t;e&&(t=e.baseOptions);const a={method:"DELETE",...t,...o},r={},n={};S(a,e),A(l,n);let c=t&&t.headers?t.headers:{};return a.headers={...r,...c,...o.headers},{url:O(l),options:a}},getOwnUserPhoto:async(o={})=>{const s="/v1.0/me/photo/$value",l=new URL(s,v);let t;e&&(t=e.baseOptions);const a={method:"GET",...t,...o},r={},n={};S(a,e),A(l,n);let c=t&&t.headers?t.headers:{};return a.headers={...r,...c,...o.headers},{url:O(l),options:a}},updateOwnUserPhotoPatch:async(o,s={})=>{const l="/v1.0/me/photo/$value",t=new URL(l,v);let a;e&&(a=e.baseOptions);const r={method:"PATCH",...a,...s},n={},c={};S(r,e),n["Content-Type"]="image/jpeg",A(t,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},r.data=x(o,r,e),{url:O(t),options:r}},updateOwnUserPhotoPut:async(o,s={})=>{const l="/v1.0/me/photo/$value",t=new URL(l,v);let a;e&&(a=e.baseOptions);const r={method:"PUT",...a,...s},n={},c={};S(r,e),n["Content-Type"]="image/jpeg",A(t,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},r.data=x(o,r,e),{url:O(t),options:r}}}},G=function(e){const o=Ue(e);return{async deleteOwnUserPhoto(s){var r,n;const l=await o.deleteOwnUserPhoto(s),t=(e==null?void 0:e.serverIndex)??0,a=(n=(r=V["MePhotoApi.deleteOwnUserPhoto"])==null?void 0:r[t])==null?void 0:n.url;return(c,i)=>u(l,m.axios,P,e)(c,a||i)},async getOwnUserPhoto(s){var r,n;const l=await o.getOwnUserPhoto(s),t=(e==null?void 0:e.serverIndex)??0,a=(n=(r=V["MePhotoApi.getOwnUserPhoto"])==null?void 0:r[t])==null?void 0:n.url;return(c,i)=>u(l,m.axios,P,e)(c,a||i)},async updateOwnUserPhotoPatch(s,l){var n,c;const t=await o.updateOwnUserPhotoPatch(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=V["MePhotoApi.updateOwnUserPhotoPatch"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(t,m.axios,P,e)(i,r||d)},async updateOwnUserPhotoPut(s,l){var n,c;const t=await o.updateOwnUserPhotoPut(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=V["MePhotoApi.updateOwnUserPhotoPut"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(t,m.axios,P,e)(i,r||d)}}},Ds=function(e,o,s){const l=G(e);return{deleteOwnUserPhoto(t){return l.deleteOwnUserPhoto(t).then(a=>a(s,o))},getOwnUserPhoto(t){return l.getOwnUserPhoto(t).then(a=>a(s,o))},updateOwnUserPhotoPatch(t,a){return l.updateOwnUserPhotoPatch(t,a).then(r=>r(s,o))},updateOwnUserPhotoPut(t,a){return l.updateOwnUserPhotoPut(t,a).then(r=>r(s,o))}}};class Es extends b{deleteOwnUserPhoto(o){return G(this.configuration).deleteOwnUserPhoto(o).then(s=>s(this.axios,this.basePath))}getOwnUserPhoto(o){return G(this.configuration).getOwnUserPhoto(o).then(s=>s(this.axios,this.basePath))}updateOwnUserPhotoPatch(o,s){return G(this.configuration).updateOwnUserPhotoPatch(o,s).then(l=>l(this.axios,this.basePath))}updateOwnUserPhotoPut(o,s){return G(this.configuration).updateOwnUserPhotoPut(o,s).then(l=>l(this.axios,this.basePath))}}const Se=function(e){return{getOwnUser:async(o,s={})=>{const l="/v1.0/me",t=new URL(l,v);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};S(r,e),o&&(c.$expand=Array.from(o).join(C.csv)),A(t,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:O(t),options:r}},updateOwnUser:async(o,s={})=>{const l="/v1.0/me",t=new URL(l,v);let a;e&&(a=e.baseOptions);const r={method:"PATCH",...a,...s},n={},c={};S(r,e),n["Content-Type"]="application/json",A(t,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},r.data=x(o,r,e),{url:O(t),options:r}}}},_=function(e){const o=Se(e);return{async getOwnUser(s,l){var n,c;const t=await o.getOwnUser(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=V["MeUserApi.getOwnUser"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(t,m.axios,P,e)(i,r||d)},async updateOwnUser(s,l){var n,c;const t=await o.updateOwnUser(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=V["MeUserApi.updateOwnUser"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(t,m.axios,P,e)(i,r||d)}}},Fs=function(e,o,s){const l=_(e);return{getOwnUser(t,a){return l.getOwnUser(t,a).then(r=>r(s,o))},updateOwnUser(t,a){return l.updateOwnUser(t,a).then(r=>r(s,o))}}};class Ts extends b{getOwnUser(o,s){return _(this.configuration).getOwnUser(o,s).then(l=>l(this.axios,this.basePath))}updateOwnUser(o,s){return _(this.configuration).updateOwnUser(o,s).then(l=>l(this.axios,this.basePath))}}const Bs={MemberOf:"memberOf"},xe=function(e){return{getPermissionRoleDefinition:async(o,s={})=>{h("getPermissionRoleDefinition","roleId",o);const l="/v1beta1/roleManagement/permissions/roleDefinitions/{role-id}".replace("{role-id}",encodeURIComponent(String(o))),t=new URL(l,v);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};S(r,e),A(t,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:O(t),options:r}},listPermissionRoleDefinitions:async(o={})=>{const s="/v1beta1/roleManagement/permissions/roleDefinitions",l=new URL(s,v);let t;e&&(t=e.baseOptions);const a={method:"GET",...t,...o},r={},n={};S(a,e),A(l,n);let c=t&&t.headers?t.headers:{};return a.headers={...r,...c,...o.headers},{url:O(l),options:a}}}},K=function(e){const o=xe(e);return{async getPermissionRoleDefinition(s,l){var n,c;const t=await o.getPermissionRoleDefinition(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=V["RoleManagementApi.getPermissionRoleDefinition"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(t,m.axios,P,e)(i,r||d)},async listPermissionRoleDefinitions(s){var r,n;const l=await o.listPermissionRoleDefinitions(s),t=(e==null?void 0:e.serverIndex)??0,a=(n=(r=V["RoleManagementApi.listPermissionRoleDefinitions"])==null?void 0:r[t])==null?void 0:n.url;return(c,i)=>u(l,m.axios,P,e)(c,a||i)}}},Ms=function(e,o,s){const l=K(e);return{getPermissionRoleDefinition(t,a){return l.getPermissionRoleDefinition(t,a).then(r=>r(s,o))},listPermissionRoleDefinitions(t){return l.listPermissionRoleDefinitions(t).then(a=>a(s,o))}}};class Ls extends b{getPermissionRoleDefinition(o,s){return K(this.configuration).getPermissionRoleDefinition(o,s).then(l=>l(this.axios,this.basePath))}listPermissionRoleDefinitions(o){return K(this.configuration).listPermissionRoleDefinitions(o).then(s=>s(this.axios,this.basePath))}}const Re=function(e){return{assignTags:async(o,s={})=>{const l="/v1.0/extensions/org.libregraph/tags",t=new URL(l,v);let a;e&&(a=e.baseOptions);const r={method:"PUT",...a,...s},n={},c={};S(r,e),n["Content-Type"]="application/json",A(t,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},r.data=x(o,r,e),{url:O(t),options:r}},getTags:async(o={})=>{const s="/v1.0/extensions/org.libregraph/tags",l=new URL(s,v);let t;e&&(t=e.baseOptions);const a={method:"GET",...t,...o},r={},n={};S(a,e),A(l,n);let c=t&&t.headers?t.headers:{};return a.headers={...r,...c,...o.headers},{url:O(l),options:a}},unassignTags:async(o,s={})=>{const l="/v1.0/extensions/org.libregraph/tags",t=new URL(l,v);let a;e&&(a=e.baseOptions);const r={method:"DELETE",...a,...s},n={},c={};S(r,e),n["Content-Type"]="application/json",A(t,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},r.data=x(o,r,e),{url:O(t),options:r}}}},Q=function(e){const o=Re(e);return{async assignTags(s,l){var n,c;const t=await o.assignTags(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=V["TagsApi.assignTags"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(t,m.axios,P,e)(i,r||d)},async getTags(s){var r,n;const l=await o.getTags(s),t=(e==null?void 0:e.serverIndex)??0,a=(n=(r=V["TagsApi.getTags"])==null?void 0:r[t])==null?void 0:n.url;return(c,i)=>u(l,m.axios,P,e)(c,a||i)},async unassignTags(s,l){var n,c;const t=await o.unassignTags(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=V["TagsApi.unassignTags"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(t,m.axios,P,e)(i,r||d)}}},Gs=function(e,o,s){const l=Q(e);return{assignTags(t,a){return l.assignTags(t,a).then(r=>r(s,o))},getTags(t){return l.getTags(t).then(a=>a(s,o))},unassignTags(t,a){return l.unassignTags(t,a).then(r=>r(s,o))}}};class js extends b{assignTags(o,s){return Q(this.configuration).assignTags(o,s).then(l=>l(this.axios,this.basePath))}getTags(o){return Q(this.configuration).getTags(o).then(s=>s(this.axios,this.basePath))}unassignTags(o,s){return Q(this.configuration).unassignTags(o,s).then(l=>l(this.axios,this.basePath))}}const ye=function(e){return{deleteUser:async(o,s,l={})=>{h("deleteUser","userId",o);const t="/v1.0/users/{user-id}".replace("{user-id}",encodeURIComponent(String(o))),a=new URL(t,v);let r;e&&(r=e.baseOptions);const n={method:"DELETE",...r,...l},c={},i={};S(n,e),s!=null&&(c["If-Match"]=String(s)),A(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},{url:O(a),options:n}},exportPersonalData:async(o,s,l={})=>{h("exportPersonalData","userId",o);const t="/v1.0/users/{user-id}/exportPersonalData".replace("{user-id}",encodeURIComponent(String(o))),a=new URL(t,v);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...l},c={},i={};S(n,e),c["Content-Type"]="application/json",A(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=x(s,n,e),{url:O(a),options:n}},getUser:async(o,s,l,t={})=>{h("getUser","userId",o);const a="/v1.0/users/{user-id}".replace("{user-id}",encodeURIComponent(String(o))),r=new URL(a,v);let n;e&&(n=e.baseOptions);const c={method:"GET",...n,...t},i={},d={};S(c,e),s&&(d.$select=Array.from(s).join(C.csv)),l&&(d.$expand=Array.from(l).join(C.csv)),A(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...t.headers},{url:O(r),options:c}},updateUser:async(o,s,l={})=>{h("updateUser","userId",o),h("updateUser","userUpdate",s);const t="/v1.0/users/{user-id}".replace("{user-id}",encodeURIComponent(String(o))),a=new URL(t,v);let r;e&&(r=e.baseOptions);const n={method:"PATCH",...r,...l},c={},i={};S(n,e),c["Content-Type"]="application/json",A(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=x(s,n,e),{url:O(a),options:n}}}},j=function(e){const o=ye(e);return{async deleteUser(s,l,t){var c,i;const a=await o.deleteUser(s,l,t),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=V["UserApi.deleteUser"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,P,e)(d,n||p)},async exportPersonalData(s,l,t){var c,i;const a=await o.exportPersonalData(s,l,t),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=V["UserApi.exportPersonalData"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,P,e)(d,n||p)},async getUser(s,l,t,a){var i,d;const r=await o.getUser(s,l,t,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=V["UserApi.getUser"])==null?void 0:i[n])==null?void 0:d.url;return(p,U)=>u(r,m.axios,P,e)(p,c||U)},async updateUser(s,l,t){var c,i;const a=await o.updateUser(s,l,t),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=V["UserApi.updateUser"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,P,e)(d,n||p)}}},Hs=function(e,o,s){const l=j(e);return{deleteUser(t,a,r){return l.deleteUser(t,a,r).then(n=>n(s,o))},exportPersonalData(t,a,r){return l.exportPersonalData(t,a,r).then(n=>n(s,o))},getUser(t,a,r,n){return l.getUser(t,a,r,n).then(c=>c(s,o))},updateUser(t,a,r){return l.updateUser(t,a,r).then(n=>n(s,o))}}};class $s extends b{deleteUser(o,s,l){return j(this.configuration).deleteUser(o,s,l).then(t=>t(this.axios,this.basePath))}exportPersonalData(o,s,l){return j(this.configuration).exportPersonalData(o,s,l).then(t=>t(this.axios,this.basePath))}getUser(o,s,l,t){return j(this.configuration).getUser(o,s,l,t).then(a=>a(this.axios,this.basePath))}updateUser(o,s,l){return j(this.configuration).updateUser(o,s,l).then(t=>t(this.axios,this.basePath))}}const qs={Id:"id",DisplayName:"displayName",Drive:"drive",Drives:"drives",Mail:"mail",MemberOf:"memberOf",OnPremisesSamAccountName:"onPremisesSamAccountName",Surname:"surname"},Qs={Drive:"drive",Drives:"drives",MemberOf:"memberOf",AppRoleAssignments:"appRoleAssignments"},be=function(e){return{userCreateAppRoleAssignments:async(o,s,l={})=>{h("userCreateAppRoleAssignments","userId",o),h("userCreateAppRoleAssignments","appRoleAssignment",s);const t="/v1.0/users/{user-id}/appRoleAssignments".replace("{user-id}",encodeURIComponent(String(o))),a=new URL(t,v);let r;e&&(r=e.baseOptions);const n={method:"POST",...r,...l},c={},i={};S(n,e),c["Content-Type"]="application/json",A(a,i);let d=r&&r.headers?r.headers:{};return n.headers={...c,...d,...l.headers},n.data=x(s,n,e),{url:O(a),options:n}},userDeleteAppRoleAssignments:async(o,s,l,t={})=>{h("userDeleteAppRoleAssignments","userId",o),h("userDeleteAppRoleAssignments","appRoleAssignmentId",s);const a="/v1.0/users/{user-id}/appRoleAssignments/{appRoleAssignment-id}".replace("{user-id}",encodeURIComponent(String(o))).replace("{appRoleAssignment-id}",encodeURIComponent(String(s))),r=new URL(a,v);let n;e&&(n=e.baseOptions);const c={method:"DELETE",...n,...t},i={},d={};S(c,e),l!=null&&(i["If-Match"]=String(l)),A(r,d);let p=n&&n.headers?n.headers:{};return c.headers={...i,...p,...t.headers},{url:O(r),options:c}},userListAppRoleAssignments:async(o,s={})=>{h("userListAppRoleAssignments","userId",o);const l="/v1.0/users/{user-id}/appRoleAssignments".replace("{user-id}",encodeURIComponent(String(o))),t=new URL(l,v);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};S(r,e),A(t,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:O(t),options:r}}}},N=function(e){const o=be(e);return{async userCreateAppRoleAssignments(s,l,t){var c,i;const a=await o.userCreateAppRoleAssignments(s,l,t),r=(e==null?void 0:e.serverIndex)??0,n=(i=(c=V["UserAppRoleAssignmentApi.userCreateAppRoleAssignments"])==null?void 0:c[r])==null?void 0:i.url;return(d,p)=>u(a,m.axios,P,e)(d,n||p)},async userDeleteAppRoleAssignments(s,l,t,a){var i,d;const r=await o.userDeleteAppRoleAssignments(s,l,t,a),n=(e==null?void 0:e.serverIndex)??0,c=(d=(i=V["UserAppRoleAssignmentApi.userDeleteAppRoleAssignments"])==null?void 0:i[n])==null?void 0:d.url;return(p,U)=>u(r,m.axios,P,e)(p,c||U)},async userListAppRoleAssignments(s,l){var n,c;const t=await o.userListAppRoleAssignments(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=V["UserAppRoleAssignmentApi.userListAppRoleAssignments"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(t,m.axios,P,e)(i,r||d)}}},Ns=function(e,o,s){const l=N(e);return{userCreateAppRoleAssignments(t,a,r){return l.userCreateAppRoleAssignments(t,a,r).then(n=>n(s,o))},userDeleteAppRoleAssignments(t,a,r,n){return l.userDeleteAppRoleAssignments(t,a,r,n).then(c=>c(s,o))},userListAppRoleAssignments(t,a){return l.userListAppRoleAssignments(t,a).then(r=>r(s,o))}}};class ks extends b{userCreateAppRoleAssignments(o,s,l){return N(this.configuration).userCreateAppRoleAssignments(o,s,l).then(t=>t(this.axios,this.basePath))}userDeleteAppRoleAssignments(o,s,l,t){return N(this.configuration).userDeleteAppRoleAssignments(o,s,l,t).then(a=>a(this.axios,this.basePath))}userListAppRoleAssignments(o,s){return N(this.configuration).userListAppRoleAssignments(o,s).then(l=>l(this.axios,this.basePath))}}const Ce=function(e){return{getUserPhoto:async(o,s={})=>{h("getUserPhoto","userId",o);const l="/v1.0/users/{user-id}/photo/$value".replace("{user-id}",encodeURIComponent(String(o))),t=new URL(l,v);let a;e&&(a=e.baseOptions);const r={method:"GET",...a,...s},n={},c={};S(r,e),A(t,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},{url:O(t),options:r}}}},se=function(e){const o=Ce(e);return{async getUserPhoto(s,l){var n,c;const t=await o.getUserPhoto(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=V["UserPhotoApi.getUserPhoto"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(t,m.axios,P,e)(i,r||d)}}},Ws=function(e,o,s){const l=se(e);return{getUserPhoto(t,a){return l.getUserPhoto(t,a).then(r=>r(s,o))}}};class zs extends b{getUserPhoto(o,s){return se(this.configuration).getUserPhoto(o,s).then(l=>l(this.axios,this.basePath))}}const we=function(e){return{createUser:async(o,s={})=>{h("createUser","user",o);const l="/v1.0/users",t=new URL(l,v);let a;e&&(a=e.baseOptions);const r={method:"POST",...a,...s},n={},c={};S(r,e),n["Content-Type"]="application/json",A(t,c);let i=a&&a.headers?a.headers:{};return r.headers={...n,...i,...s.headers},r.data=x(o,r,e),{url:O(t),options:r}},listUsers:async(o,s,l,t,a,r={})=>{const n="/v1.0/users",c=new URL(n,v);let i;e&&(i=e.baseOptions);const d={method:"GET",...i,...r},p={},U={};S(d,e),o!==void 0&&(U.$search=o),s!==void 0&&(U.$filter=s),l&&(U.$orderby=Array.from(l).join(C.csv)),t&&(U.$select=Array.from(t).join(C.csv)),a&&(U.$expand=Array.from(a).join(C.csv)),A(c,U);let y=i&&i.headers?i.headers:{};return d.headers={...p,...y,...r.headers},{url:O(c),options:d}}}},Y=function(e){const o=we(e);return{async createUser(s,l){var n,c;const t=await o.createUser(s,l),a=(e==null?void 0:e.serverIndex)??0,r=(c=(n=V["UsersApi.createUser"])==null?void 0:n[a])==null?void 0:c.url;return(i,d)=>u(t,m.axios,P,e)(i,r||d)},async listUsers(s,l,t,a,r,n){var p,U;const c=await o.listUsers(s,l,t,a,r,n),i=(e==null?void 0:e.serverIndex)??0,d=(U=(p=V["UsersApi.listUsers"])==null?void 0:p[i])==null?void 0:U.url;return(y,B)=>u(c,m.axios,P,e)(y,d||B)}}},Js=function(e,o,s){const l=Y(e);return{createUser(t,a){return l.createUser(t,a).then(r=>r(s,o))},listUsers(t,a,r,n,c,i){return l.listUsers(t,a,r,n,c,i).then(d=>d(s,o))}}};class _s extends b{createUser(o,s){return Y(this.configuration).createUser(o,s).then(l=>l(this.axios,this.basePath))}listUsers(o,s,l,t,a,r){return Y(this.configuration).listUsers(o,s,l,t,a,r).then(n=>n(this.axios,this.basePath))}}const Ks={DisplayName:"displayName",DisplayNameDesc:"displayName desc",Mail:"mail",MailDesc:"mail desc",OnPremisesSamAccountName:"onPremisesSamAccountName",OnPremisesSamAccountNameDesc:"onPremisesSamAccountName desc"},Ys={Id:"id",DisplayName:"displayName",Mail:"mail",MemberOf:"memberOf",OnPremisesSamAccountName:"onPremisesSamAccountName",Surname:"surname"},Xs={Drive:"drive",Drives:"drives",MemberOf:"memberOf",AppRoleAssignments:"appRoleAssignments"};class Zs{constructor(o={}){D(this,"apiKey");D(this,"username");D(this,"password");D(this,"accessToken");D(this,"basePath");D(this,"serverIndex");D(this,"baseOptions");D(this,"formDataCtor");var s;this.apiKey=o.apiKey,this.username=o.username,this.password=o.password,this.accessToken=o.accessToken,this.basePath=o.basePath,this.serverIndex=o.serverIndex,this.baseOptions={...o.baseOptions,headers:{...(s=o.baseOptions)==null?void 0:s.headers}},this.formDataCtor=o.formDataCtor}isJsonMime(o){const s=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return o!==null&&(s.test(o)||o.toLowerCase()==="application/json-patch+json")}}exports.ActivitiesApi=Le;exports.ActivitiesApiAxiosParamCreator=re;exports.ActivitiesApiFactory=Me;exports.ActivitiesApiFp=Z;exports.ApplicationsApi=je;exports.ApplicationsApiAxiosParamCreator=ae;exports.ApplicationsApiFactory=Ge;exports.ApplicationsApiFp=k;exports.Configuration=Zs;exports.DriveItemApi=$e;exports.DriveItemApiAxiosParamCreator=te;exports.DriveItemApiFactory=He;exports.DriveItemApiFp=H;exports.DrivesApi=Qe;exports.DrivesApiAxiosParamCreator=oe;exports.DrivesApiFactory=qe;exports.DrivesApiFp=L;exports.DrivesGetDrivesApi=We;exports.DrivesGetDrivesApiAxiosParamCreator=le;exports.DrivesGetDrivesApiFactory=ke;exports.DrivesGetDrivesApiFp=W;exports.DrivesPermissionsApi=_e;exports.DrivesPermissionsApiAxiosParamCreator=ne;exports.DrivesPermissionsApiFactory=Je;exports.DrivesPermissionsApiFp=F;exports.DrivesRootApi=Xe;exports.DrivesRootApiAxiosParamCreator=ce;exports.DrivesRootApiFactory=Ye;exports.DrivesRootApiFp=I;exports.EducationClassApi=fe;exports.EducationClassApiAxiosParamCreator=ie;exports.EducationClassApiFactory=ge;exports.EducationClassApiFp=E;exports.EducationClassClassificationEnum=Te;exports.EducationClassTeachersApi=ss;exports.EducationClassTeachersApiAxiosParamCreator=de;exports.EducationClassTeachersApiFactory=es;exports.EducationClassTeachersApiFp=$;exports.EducationSchoolApi=as;exports.EducationSchoolApiAxiosParamCreator=pe;exports.EducationSchoolApiFactory=rs;exports.EducationSchoolApiFp=w;exports.EducationUserApi=os;exports.EducationUserApiAxiosParamCreator=he;exports.EducationUserApiFactory=ts;exports.EducationUserApiFp=M;exports.GetDriveSelectEnum=Ne;exports.GetEducationUserExpandEnum=ls;exports.GetGroupExpandEnum=hs;exports.GetGroupSelectEnum=ps;exports.GetOwnUserExpandEnum=Bs;exports.GetUserExpandEnum=Qs;exports.GetUserSelectEnum=qs;exports.GroupApi=ds;exports.GroupApiAxiosParamCreator=me;exports.GroupApiFactory=is;exports.GroupApiFp=T;exports.GroupsApi=Ps;exports.GroupsApiAxiosParamCreator=Pe;exports.GroupsApiFactory=ms;exports.GroupsApiFp=z;exports.ListAllDrivesBetaSelectEnum=ze;exports.ListEducationUsersExpandEnum=cs;exports.ListEducationUsersOrderbyEnum=ns;exports.ListGroupsExpandEnum=As;exports.ListGroupsOrderbyEnum=Vs;exports.ListGroupsSelectEnum=vs;exports.ListMyDrivesBetaSelectEnum=Is;exports.ListPermissionsSelectEnum=Ke;exports.ListPermissionsSpaceRootSelectEnum=Ze;exports.ListUsersExpandEnum=Xs;exports.ListUsersOrderbyEnum=Ks;exports.ListUsersSelectEnum=Ys;exports.MeChangepasswordApi=us;exports.MeChangepasswordApiAxiosParamCreator=Ve;exports.MeChangepasswordApiFactory=Os;exports.MeChangepasswordApiFp=g;exports.MeDriveApi=Ss;exports.MeDriveApiAxiosParamCreator=ve;exports.MeDriveApiFactory=Us;exports.MeDriveApiFp=q;exports.MeDriveRootApi=Rs;exports.MeDriveRootApiAxiosParamCreator=Ae;exports.MeDriveRootApiFactory=xs;exports.MeDriveRootApiFp=f;exports.MeDriveRootChildrenApi=bs;exports.MeDriveRootChildrenApiAxiosParamCreator=Oe;exports.MeDriveRootChildrenApiFactory=ys;exports.MeDriveRootChildrenApiFp=ee;exports.MeDrivesApi=ws;exports.MeDrivesApiAxiosParamCreator=ue;exports.MeDrivesApiFactory=Cs;exports.MeDrivesApiFp=J;exports.MePhotoApi=Es;exports.MePhotoApiAxiosParamCreator=Ue;exports.MePhotoApiFactory=Ds;exports.MePhotoApiFp=G;exports.MeUserApi=Ts;exports.MeUserApiAxiosParamCreator=Se;exports.MeUserApiFactory=Fs;exports.MeUserApiFp=_;exports.RoleManagementApi=Ls;exports.RoleManagementApiAxiosParamCreator=xe;exports.RoleManagementApiFactory=Ms;exports.RoleManagementApiFp=K;exports.SharingLinkType=Be;exports.TagsApi=js;exports.TagsApiAxiosParamCreator=Re;exports.TagsApiFactory=Gs;exports.TagsApiFp=Q;exports.UserApi=$s;exports.UserApiAxiosParamCreator=ye;exports.UserApiFactory=Hs;exports.UserApiFp=j;exports.UserAppRoleAssignmentApi=ks;exports.UserAppRoleAssignmentApiAxiosParamCreator=be;exports.UserAppRoleAssignmentApiFactory=Ns;exports.UserAppRoleAssignmentApiFp=N;exports.UserPhotoApi=zs;exports.UserPhotoApiAxiosParamCreator=Ce;exports.UserPhotoApiFactory=Ws;exports.UserPhotoApiFp=se;exports.UsersApi=_s;exports.UsersApiAxiosParamCreator=we;exports.UsersApiFactory=Js;exports.UsersApiFp=Y;
|
|
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;
|