@opencloud-eu/web-client 6.0.0 → 6.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/axios-B1HWJqDx.js +1682 -0
  2. package/dist/dist-SL1_CMpG.js +809 -0
  3. package/dist/generated-DPf3CPe4.js +3317 -0
  4. package/dist/graph-Cld6mTON.js +372 -0
  5. package/dist/helpers-DoHY9e_0.js +1463 -0
  6. package/dist/ocs-B7FkclLT.js +2919 -0
  7. package/dist/src/graph/activities/activities.d.ts +2 -2
  8. package/dist/src/graph/activities/types.d.ts +2 -2
  9. package/dist/src/graph/applications/applications.d.ts +2 -2
  10. package/dist/src/graph/applications/types.d.ts +2 -2
  11. package/dist/src/graph/driveItems/driveItems.d.ts +2 -2
  12. package/dist/src/graph/driveItems/types.d.ts +3 -1
  13. package/dist/src/graph/drives/drives.d.ts +2 -2
  14. package/dist/src/graph/drives/types.d.ts +4 -3
  15. package/dist/src/graph/generated/api.d.ts +394 -1720
  16. package/dist/src/graph/generated/base.d.ts +11 -24
  17. package/dist/src/graph/generated/common.d.ts +15 -35
  18. package/dist/src/graph/generated/configuration.d.ts +24 -17
  19. package/dist/src/graph/generated/index.d.ts +2 -2
  20. package/dist/src/graph/groups/groups.d.ts +2 -2
  21. package/dist/src/graph/groups/types.d.ts +2 -2
  22. package/dist/src/graph/index.d.ts +2 -2
  23. package/dist/src/graph/permissions/permissions.d.ts +2 -2
  24. package/dist/src/graph/permissions/types.d.ts +2 -2
  25. package/dist/src/graph/photos/photo.d.ts +2 -2
  26. package/dist/src/graph/photos/types.d.ts +1 -1
  27. package/dist/src/graph/tags/tags.d.ts +2 -2
  28. package/dist/src/graph/tags/types.d.ts +2 -2
  29. package/dist/src/graph/types.d.ts +2 -2
  30. package/dist/src/graph/users/types.d.ts +2 -2
  31. package/dist/src/graph/users/users.d.ts +2 -2
  32. package/dist/src/helpers/space/functions.d.ts +1 -1
  33. package/dist/src/webdav/clearTrashBin.d.ts +1 -1
  34. package/dist/src/webdav/copyFiles.d.ts +1 -1
  35. package/dist/src/webdav/deleteFile.d.ts +1 -1
  36. package/dist/src/webdav/listFileVersions.d.ts +1 -1
  37. package/dist/src/webdav/moveFiles.d.ts +1 -1
  38. package/dist/src/webdav/putFileContents.d.ts +1 -1
  39. package/dist/src/webdav/restoreFile.d.ts +1 -1
  40. package/dist/src/webdav/restoreFileVersion.d.ts +1 -1
  41. package/dist/src/webdav/setFavorite.d.ts +1 -1
  42. package/dist/src/webdav/types.d.ts +0 -2
  43. package/dist/toString-DAQZ_8iK.js +287 -0
  44. package/dist/web-client/graph/generated.js +2 -5757
  45. package/dist/web-client/graph.js +2 -5
  46. package/dist/web-client/ocs.js +2 -5
  47. package/dist/web-client/sse.js +195 -201
  48. package/dist/web-client/webdav.js +3 -10
  49. package/dist/web-client.js +6 -82
  50. package/dist/webdav-BMNOaQXh.js +4425 -0
  51. package/package.json +9 -15
  52. package/dist/functions-BBKWOL6l.js +0 -1189
  53. package/dist/functions-VxhUeT1u.cjs +0 -1
  54. package/dist/index-BYnmk_Nt.cjs +0 -13
  55. package/dist/index-Bf956okn.js +0 -3874
  56. package/dist/index-Bjx4f50a.js +0 -1999
  57. package/dist/index-C32gBO3b.cjs +0 -6
  58. package/dist/index-D0bnLDAA.cjs +0 -1
  59. package/dist/index-Di51ZQKD.cjs +0 -4
  60. package/dist/index-Dn8UfKx7.js +0 -1520
  61. package/dist/index-Sp7XASDj.js +0 -688
  62. package/dist/index-_S-l3FmE.cjs +0 -1
  63. package/dist/index-cttW6Cve.js +0 -1018
  64. package/dist/src/webdav/listFavoriteFiles.d.ts +0 -12
  65. package/dist/toString-CKeGA2IK.js +0 -255
  66. package/dist/toString-DsGM1XcL.cjs +0 -1
  67. package/dist/vite.config.d.ts +0 -2
  68. package/dist/web-client/graph/generated.cjs +0 -1
  69. package/dist/web-client/graph.cjs +0 -1
  70. package/dist/web-client/ocs.cjs +0 -1
  71. package/dist/web-client/sse.cjs +0 -2
  72. package/dist/web-client/webdav.cjs +0 -1
  73. package/dist/web-client.cjs +0 -1
@@ -0,0 +1,3317 @@
1
+ import { t as e } from "./axios-B1HWJqDx.js";
2
+ //#region src/graph/generated/base.ts
3
+ var t = "https://localhost:9200/graph".replace(/\/+$/, ""), n = {
4
+ csv: ",",
5
+ ssv: " ",
6
+ tsv: " ",
7
+ pipes: "|"
8
+ }, r = class {
9
+ configuration;
10
+ constructor(n, r = t, i = e) {
11
+ this.basePath = r, this.axios = i, n && (this.configuration = n, this.basePath = n.basePath ?? r);
12
+ }
13
+ }, i = class extends Error {
14
+ constructor(e, t) {
15
+ super(t), this.field = e, this.name = "RequiredError";
16
+ }
17
+ }, a = {}, o = "https://example.com", s = function(e, t, n) {
18
+ if (n == null) throw new i(t, `Required parameter ${t} was null or undefined when calling ${e}.`);
19
+ }, c = function(e, t) {
20
+ t && (t.username || t.password) && (e.auth = {
21
+ username: t.username,
22
+ password: t.password
23
+ });
24
+ }, l = async function(e, t) {
25
+ t && t.accessToken && (e.Authorization = "Bearer " + (typeof t.accessToken == "function" ? await t.accessToken() : await t.accessToken));
26
+ };
27
+ function u(e, t, n = "") {
28
+ t != null && (typeof t == "object" ? Array.isArray(t) || t instanceof Set ? t.forEach((t) => u(e, t, n)) : Object.keys(t).forEach((r) => u(e, t[r], `${n}${n === "" ? "" : "."}${r}`)) : e.has(n) ? e.append(n, t) : e.set(n, t));
29
+ }
30
+ var d = function(e, ...t) {
31
+ let n = new URLSearchParams(e.search);
32
+ u(n, t), e.search = n.toString();
33
+ }, f = function(e, t) {
34
+ return t instanceof Set ? Array.from(t) : t;
35
+ }, p = function(e, t, n) {
36
+ let r = typeof e != "string";
37
+ return (r && n && n.isJsonMime ? n.isJsonMime(t.headers["Content-Type"]) : r) ? JSON.stringify(e === void 0 ? {} : e, f) : e || "";
38
+ }, m = function(e) {
39
+ return e.pathname + e.search + e.hash;
40
+ }, h = function(e, t, n, r) {
41
+ return (i = t, a = n) => {
42
+ let o = {
43
+ ...e.options,
44
+ url: (i.defaults.baseURL ? "" : r?.basePath ?? a) + e.url
45
+ };
46
+ return i.request(o);
47
+ };
48
+ }, g = {
49
+ Class: "class",
50
+ Course: "course"
51
+ }, _ = {
52
+ Internal: "internal",
53
+ View: "view",
54
+ Upload: "upload",
55
+ Edit: "edit",
56
+ CreateOnly: "createOnly",
57
+ BlocksDownload: "blocksDownload"
58
+ }, v = function(e) {
59
+ return { getActivities: async (t, n = {}) => {
60
+ let r = new URL("/v1beta1/extensions/org.libregraph/activities", o), i;
61
+ e && (i = e.baseOptions);
62
+ let a = {
63
+ method: "GET",
64
+ ...i,
65
+ ...n
66
+ }, s = {}, l = {};
67
+ c(a, e), t !== void 0 && (l.kql = t), s.Accept = "application/json", d(r, l);
68
+ let u = i && i.headers ? i.headers : {};
69
+ return a.headers = {
70
+ ...s,
71
+ ...u,
72
+ ...n.headers
73
+ }, {
74
+ url: m(r),
75
+ options: a
76
+ };
77
+ } };
78
+ }, y = function(n) {
79
+ let r = v(n);
80
+ return { async getActivities(i, o) {
81
+ let s = await r.getActivities(i, o), c = n?.serverIndex ?? 0, l = a["ActivitiesApi.getActivities"]?.[c]?.url;
82
+ return (r, i) => h(s, e, t, n)(r, l || i);
83
+ } };
84
+ }, ee = function(e, t, n) {
85
+ let r = y(e);
86
+ return { getActivities(e, i) {
87
+ return r.getActivities(e, i).then((e) => e(n, t));
88
+ } };
89
+ }, te = class extends r {
90
+ getActivities(e, t) {
91
+ return y(this.configuration).getActivities(e, t).then((e) => e(this.axios, this.basePath));
92
+ }
93
+ }, ne = function(e) {
94
+ return {
95
+ getApplication: async (t, n = {}) => {
96
+ s("getApplication", "applicationId", t);
97
+ let r = "/v1.0/applications/{application-id}".replace("{application-id}", encodeURIComponent(String(t))), i = new URL(r, o), a;
98
+ e && (a = e.baseOptions);
99
+ let l = {
100
+ method: "GET",
101
+ ...a,
102
+ ...n
103
+ }, u = {};
104
+ c(l, e), u.Accept = "application/json", d(i, {});
105
+ let f = a && a.headers ? a.headers : {};
106
+ return l.headers = {
107
+ ...u,
108
+ ...f,
109
+ ...n.headers
110
+ }, {
111
+ url: m(i),
112
+ options: l
113
+ };
114
+ },
115
+ listApplications: async (t = {}) => {
116
+ let n = new URL("/v1.0/applications", o), r;
117
+ e && (r = e.baseOptions);
118
+ let i = {
119
+ method: "GET",
120
+ ...r,
121
+ ...t
122
+ }, a = {};
123
+ c(i, e), a.Accept = "application/json", d(n, {});
124
+ let s = r && r.headers ? r.headers : {};
125
+ return i.headers = {
126
+ ...a,
127
+ ...s,
128
+ ...t.headers
129
+ }, {
130
+ url: m(n),
131
+ options: i
132
+ };
133
+ }
134
+ };
135
+ }, b = function(n) {
136
+ let r = ne(n);
137
+ return {
138
+ async getApplication(i, o) {
139
+ let s = await r.getApplication(i, o), c = n?.serverIndex ?? 0, l = a["ApplicationsApi.getApplication"]?.[c]?.url;
140
+ return (r, i) => h(s, e, t, n)(r, l || i);
141
+ },
142
+ async listApplications(i) {
143
+ let o = await r.listApplications(i), s = n?.serverIndex ?? 0, c = a["ApplicationsApi.listApplications"]?.[s]?.url;
144
+ return (r, i) => h(o, e, t, n)(r, c || i);
145
+ }
146
+ };
147
+ }, re = function(e, t, n) {
148
+ let r = b(e);
149
+ return {
150
+ getApplication(e, i) {
151
+ return r.getApplication(e, i).then((e) => e(n, t));
152
+ },
153
+ listApplications(e) {
154
+ return r.listApplications(e).then((e) => e(n, t));
155
+ }
156
+ };
157
+ }, ie = class extends r {
158
+ getApplication(e, t) {
159
+ return b(this.configuration).getApplication(e, t).then((e) => e(this.axios, this.basePath));
160
+ }
161
+ listApplications(e) {
162
+ return b(this.configuration).listApplications(e).then((e) => e(this.axios, this.basePath));
163
+ }
164
+ }, x = function(e) {
165
+ return {
166
+ deleteDriveItem: async (t, n, r = {}) => {
167
+ s("deleteDriveItem", "driveId", t), s("deleteDriveItem", "itemId", n);
168
+ let i = "/v1beta1/drives/{drive-id}/items/{item-id}".replace("{drive-id}", encodeURIComponent(String(t))).replace("{item-id}", encodeURIComponent(String(n))), a = new URL(i, o), l;
169
+ e && (l = e.baseOptions);
170
+ let u = {
171
+ method: "DELETE",
172
+ ...l,
173
+ ...r
174
+ }, f = {};
175
+ c(u, e), f.Accept = "application/json", d(a, {});
176
+ let p = l && l.headers ? l.headers : {};
177
+ return u.headers = {
178
+ ...f,
179
+ ...p,
180
+ ...r.headers
181
+ }, {
182
+ url: m(a),
183
+ options: u
184
+ };
185
+ },
186
+ getDriveItem: async (t, n, r = {}) => {
187
+ s("getDriveItem", "driveId", t), s("getDriveItem", "itemId", n);
188
+ let i = "/v1beta1/drives/{drive-id}/items/{item-id}".replace("{drive-id}", encodeURIComponent(String(t))).replace("{item-id}", encodeURIComponent(String(n))), a = new URL(i, o), l;
189
+ e && (l = e.baseOptions);
190
+ let u = {
191
+ method: "GET",
192
+ ...l,
193
+ ...r
194
+ }, f = {};
195
+ c(u, e), f.Accept = "application/json", d(a, {});
196
+ let p = l && l.headers ? l.headers : {};
197
+ return u.headers = {
198
+ ...f,
199
+ ...p,
200
+ ...r.headers
201
+ }, {
202
+ url: m(a),
203
+ options: u
204
+ };
205
+ },
206
+ updateDriveItem: async (t, n, r, i = {}) => {
207
+ s("updateDriveItem", "driveId", t), s("updateDriveItem", "itemId", n), s("updateDriveItem", "driveItem", r);
208
+ let a = "/v1beta1/drives/{drive-id}/items/{item-id}".replace("{drive-id}", encodeURIComponent(String(t))).replace("{item-id}", encodeURIComponent(String(n))), l = new URL(a, o), u;
209
+ e && (u = e.baseOptions);
210
+ let f = {
211
+ method: "PATCH",
212
+ ...u,
213
+ ...i
214
+ }, h = {};
215
+ c(f, e), h["Content-Type"] = "application/json", h.Accept = "application/json", d(l, {});
216
+ let g = u && u.headers ? u.headers : {};
217
+ return f.headers = {
218
+ ...h,
219
+ ...g,
220
+ ...i.headers
221
+ }, f.data = p(r, f, e), {
222
+ url: m(l),
223
+ options: f
224
+ };
225
+ }
226
+ };
227
+ }, S = function(n) {
228
+ let r = x(n);
229
+ return {
230
+ async deleteDriveItem(i, o, s) {
231
+ let c = await r.deleteDriveItem(i, o, s), l = n?.serverIndex ?? 0, u = a["DriveItemApi.deleteDriveItem"]?.[l]?.url;
232
+ return (r, i) => h(c, e, t, n)(r, u || i);
233
+ },
234
+ async getDriveItem(i, o, s) {
235
+ let c = await r.getDriveItem(i, o, s), l = n?.serverIndex ?? 0, u = a["DriveItemApi.getDriveItem"]?.[l]?.url;
236
+ return (r, i) => h(c, e, t, n)(r, u || i);
237
+ },
238
+ async updateDriveItem(i, o, s, c) {
239
+ let l = await r.updateDriveItem(i, o, s, c), u = n?.serverIndex ?? 0, d = a["DriveItemApi.updateDriveItem"]?.[u]?.url;
240
+ return (r, i) => h(l, e, t, n)(r, d || i);
241
+ }
242
+ };
243
+ }, ae = function(e, t, n) {
244
+ let r = S(e);
245
+ return {
246
+ deleteDriveItem(e, i, a) {
247
+ return r.deleteDriveItem(e, i, a).then((e) => e(n, t));
248
+ },
249
+ getDriveItem(e, i, a) {
250
+ return r.getDriveItem(e, i, a).then((e) => e(n, t));
251
+ },
252
+ updateDriveItem(e, i, a, o) {
253
+ return r.updateDriveItem(e, i, a, o).then((e) => e(n, t));
254
+ }
255
+ };
256
+ }, oe = class extends r {
257
+ deleteDriveItem(e, t, n) {
258
+ return S(this.configuration).deleteDriveItem(e, t, n).then((e) => e(this.axios, this.basePath));
259
+ }
260
+ getDriveItem(e, t, n) {
261
+ return S(this.configuration).getDriveItem(e, t, n).then((e) => e(this.axios, this.basePath));
262
+ }
263
+ updateDriveItem(e, t, n, r) {
264
+ return S(this.configuration).updateDriveItem(e, t, n, r).then((e) => e(this.axios, this.basePath));
265
+ }
266
+ }, se = function(e) {
267
+ return {
268
+ createDrive: async (t, n = {}) => {
269
+ s("createDrive", "drive", t);
270
+ let r = new URL("/v1.0/drives", o), i;
271
+ e && (i = e.baseOptions);
272
+ let a = {
273
+ method: "POST",
274
+ ...i,
275
+ ...n
276
+ }, l = {};
277
+ c(a, e), l["Content-Type"] = "application/json", l.Accept = "application/json", d(r, {});
278
+ let u = i && i.headers ? i.headers : {};
279
+ return a.headers = {
280
+ ...l,
281
+ ...u,
282
+ ...n.headers
283
+ }, a.data = p(t, a, e), {
284
+ url: m(r),
285
+ options: a
286
+ };
287
+ },
288
+ deleteDrive: async (t, n, r = {}) => {
289
+ s("deleteDrive", "driveId", t);
290
+ let i = "/v1.0/drives/{drive-id}".replace("{drive-id}", encodeURIComponent(String(t))), a = new URL(i, o), l;
291
+ e && (l = e.baseOptions);
292
+ let u = {
293
+ method: "DELETE",
294
+ ...l,
295
+ ...r
296
+ }, f = {};
297
+ c(u, e), f.Accept = "application/json", n != null && (f["If-Match"] = String(n)), d(a, {});
298
+ let p = l && l.headers ? l.headers : {};
299
+ return u.headers = {
300
+ ...f,
301
+ ...p,
302
+ ...r.headers
303
+ }, {
304
+ url: m(a),
305
+ options: u
306
+ };
307
+ },
308
+ getDrive: async (t, r, i = {}) => {
309
+ s("getDrive", "driveId", t);
310
+ let a = "/v1.0/drives/{drive-id}".replace("{drive-id}", encodeURIComponent(String(t))), l = new URL(a, o), u;
311
+ e && (u = e.baseOptions);
312
+ let f = {
313
+ method: "GET",
314
+ ...u,
315
+ ...i
316
+ }, p = {}, h = {};
317
+ c(f, e), r && (h.$select = Array.from(r).join(n.csv)), p.Accept = "application/json", d(l, h);
318
+ let g = u && u.headers ? u.headers : {};
319
+ return f.headers = {
320
+ ...p,
321
+ ...g,
322
+ ...i.headers
323
+ }, {
324
+ url: m(l),
325
+ options: f
326
+ };
327
+ },
328
+ updateDrive: async (t, n, r = {}) => {
329
+ s("updateDrive", "driveId", t), s("updateDrive", "driveUpdate", n);
330
+ let i = "/v1.0/drives/{drive-id}".replace("{drive-id}", encodeURIComponent(String(t))), a = new URL(i, o), l;
331
+ e && (l = e.baseOptions);
332
+ let u = {
333
+ method: "PATCH",
334
+ ...l,
335
+ ...r
336
+ }, f = {};
337
+ c(u, e), f["Content-Type"] = "application/json", f.Accept = "application/json", d(a, {});
338
+ let h = l && l.headers ? l.headers : {};
339
+ return u.headers = {
340
+ ...f,
341
+ ...h,
342
+ ...r.headers
343
+ }, u.data = p(n, u, e), {
344
+ url: m(a),
345
+ options: u
346
+ };
347
+ }
348
+ };
349
+ }, C = function(n) {
350
+ let r = se(n);
351
+ return {
352
+ async createDrive(i, o) {
353
+ let s = await r.createDrive(i, o), c = n?.serverIndex ?? 0, l = a["DrivesApi.createDrive"]?.[c]?.url;
354
+ return (r, i) => h(s, e, t, n)(r, l || i);
355
+ },
356
+ async deleteDrive(i, o, s) {
357
+ let c = await r.deleteDrive(i, o, s), l = n?.serverIndex ?? 0, u = a["DrivesApi.deleteDrive"]?.[l]?.url;
358
+ return (r, i) => h(c, e, t, n)(r, u || i);
359
+ },
360
+ async getDrive(i, o, s) {
361
+ let c = await r.getDrive(i, o, s), l = n?.serverIndex ?? 0, u = a["DrivesApi.getDrive"]?.[l]?.url;
362
+ return (r, i) => h(c, e, t, n)(r, u || i);
363
+ },
364
+ async updateDrive(i, o, s) {
365
+ let c = await r.updateDrive(i, o, s), l = n?.serverIndex ?? 0, u = a["DrivesApi.updateDrive"]?.[l]?.url;
366
+ return (r, i) => h(c, e, t, n)(r, u || i);
367
+ }
368
+ };
369
+ }, ce = function(e, t, n) {
370
+ let r = C(e);
371
+ return {
372
+ createDrive(e, i) {
373
+ return r.createDrive(e, i).then((e) => e(n, t));
374
+ },
375
+ deleteDrive(e, i, a) {
376
+ return r.deleteDrive(e, i, a).then((e) => e(n, t));
377
+ },
378
+ getDrive(e, i, a) {
379
+ return r.getDrive(e, i, a).then((e) => e(n, t));
380
+ },
381
+ updateDrive(e, i, a) {
382
+ return r.updateDrive(e, i, a).then((e) => e(n, t));
383
+ }
384
+ };
385
+ }, le = class extends r {
386
+ createDrive(e, t) {
387
+ return C(this.configuration).createDrive(e, t).then((e) => e(this.axios, this.basePath));
388
+ }
389
+ deleteDrive(e, t, n) {
390
+ return C(this.configuration).deleteDrive(e, t, n).then((e) => e(this.axios, this.basePath));
391
+ }
392
+ getDrive(e, t, n) {
393
+ return C(this.configuration).getDrive(e, t, n).then((e) => e(this.axios, this.basePath));
394
+ }
395
+ updateDrive(e, t, n) {
396
+ return C(this.configuration).updateDrive(e, t, n).then((e) => e(this.axios, this.basePath));
397
+ }
398
+ }, ue = { LibreGraphHasTrashedItems: "@libre.graph.hasTrashedItems" }, de = function(e) {
399
+ return {
400
+ listAllDrives: async (t, n, r = {}) => {
401
+ let i = new URL("/v1.0/drives", o), a;
402
+ e && (a = e.baseOptions);
403
+ let s = {
404
+ method: "GET",
405
+ ...a,
406
+ ...r
407
+ }, l = {}, u = {};
408
+ c(s, e), t !== void 0 && (u.$orderby = t), n !== void 0 && (u.$filter = n), l.Accept = "application/json", d(i, u);
409
+ let f = a && a.headers ? a.headers : {};
410
+ return s.headers = {
411
+ ...l,
412
+ ...f,
413
+ ...r.headers
414
+ }, {
415
+ url: m(i),
416
+ options: s
417
+ };
418
+ },
419
+ listAllDrivesBeta: async (t, r, i, a, s = {}) => {
420
+ let l = new URL("/v1beta1/drives", o), u;
421
+ e && (u = e.baseOptions);
422
+ let f = {
423
+ method: "GET",
424
+ ...u,
425
+ ...s
426
+ }, p = {}, h = {};
427
+ c(f, e), t !== void 0 && (h.$orderby = t), r !== void 0 && (h.$filter = r), i !== void 0 && (h.$expand = i), a && (h.$select = Array.from(a).join(n.csv)), p.Accept = "application/json", d(l, h);
428
+ let g = u && u.headers ? u.headers : {};
429
+ return f.headers = {
430
+ ...p,
431
+ ...g,
432
+ ...s.headers
433
+ }, {
434
+ url: m(l),
435
+ options: f
436
+ };
437
+ }
438
+ };
439
+ }, w = function(n) {
440
+ let r = de(n);
441
+ return {
442
+ async listAllDrives(i, o, s) {
443
+ let c = await r.listAllDrives(i, o, s), l = n?.serverIndex ?? 0, u = a["DrivesGetDrivesApi.listAllDrives"]?.[l]?.url;
444
+ return (r, i) => h(c, e, t, n)(r, u || i);
445
+ },
446
+ async listAllDrivesBeta(i, o, s, c, l) {
447
+ let u = await r.listAllDrivesBeta(i, o, s, c, l), d = n?.serverIndex ?? 0, f = a["DrivesGetDrivesApi.listAllDrivesBeta"]?.[d]?.url;
448
+ return (r, i) => h(u, e, t, n)(r, f || i);
449
+ }
450
+ };
451
+ }, fe = function(e, t, n) {
452
+ let r = w(e);
453
+ return {
454
+ listAllDrives(e, i, a) {
455
+ return r.listAllDrives(e, i, a).then((e) => e(n, t));
456
+ },
457
+ listAllDrivesBeta(e, i, a, o, s) {
458
+ return r.listAllDrivesBeta(e, i, a, o, s).then((e) => e(n, t));
459
+ }
460
+ };
461
+ }, pe = class extends r {
462
+ listAllDrives(e, t, n) {
463
+ return w(this.configuration).listAllDrives(e, t, n).then((e) => e(this.axios, this.basePath));
464
+ }
465
+ listAllDrivesBeta(e, t, n, r, i) {
466
+ return w(this.configuration).listAllDrivesBeta(e, t, n, r, i).then((e) => e(this.axios, this.basePath));
467
+ }
468
+ }, me = { LibreGraphHasTrashedItems: "@libre.graph.hasTrashedItems" }, he = function(e) {
469
+ return {
470
+ createLink: async (t, n, r, i = {}) => {
471
+ s("createLink", "driveId", t), s("createLink", "itemId", n);
472
+ let a = "/v1beta1/drives/{drive-id}/items/{item-id}/createLink".replace("{drive-id}", encodeURIComponent(String(t))).replace("{item-id}", encodeURIComponent(String(n))), l = new URL(a, o), u;
473
+ e && (u = e.baseOptions);
474
+ let f = {
475
+ method: "POST",
476
+ ...u,
477
+ ...i
478
+ }, h = {};
479
+ c(f, e), h["Content-Type"] = "application/json", h.Accept = "application/json", d(l, {});
480
+ let g = u && u.headers ? u.headers : {};
481
+ return f.headers = {
482
+ ...h,
483
+ ...g,
484
+ ...i.headers
485
+ }, f.data = p(r, f, e), {
486
+ url: m(l),
487
+ options: f
488
+ };
489
+ },
490
+ deletePermission: async (t, n, r, i = {}) => {
491
+ s("deletePermission", "driveId", t), s("deletePermission", "itemId", n), s("deletePermission", "permId", r);
492
+ let a = "/v1beta1/drives/{drive-id}/items/{item-id}/permissions/{perm-id}".replace("{drive-id}", encodeURIComponent(String(t))).replace("{item-id}", encodeURIComponent(String(n))).replace("{perm-id}", encodeURIComponent(String(r))), l = new URL(a, o), u;
493
+ e && (u = e.baseOptions);
494
+ let f = {
495
+ method: "DELETE",
496
+ ...u,
497
+ ...i
498
+ }, p = {};
499
+ c(f, e), p.Accept = "application/json", d(l, {});
500
+ let h = u && u.headers ? u.headers : {};
501
+ return f.headers = {
502
+ ...p,
503
+ ...h,
504
+ ...i.headers
505
+ }, {
506
+ url: m(l),
507
+ options: f
508
+ };
509
+ },
510
+ getPermission: async (t, n, r, i = {}) => {
511
+ s("getPermission", "driveId", t), s("getPermission", "itemId", n), s("getPermission", "permId", r);
512
+ let a = "/v1beta1/drives/{drive-id}/items/{item-id}/permissions/{perm-id}".replace("{drive-id}", encodeURIComponent(String(t))).replace("{item-id}", encodeURIComponent(String(n))).replace("{perm-id}", encodeURIComponent(String(r))), l = new URL(a, o), u;
513
+ e && (u = e.baseOptions);
514
+ let f = {
515
+ method: "GET",
516
+ ...u,
517
+ ...i
518
+ }, p = {};
519
+ c(f, e), p.Accept = "application/json", d(l, {});
520
+ let h = u && u.headers ? u.headers : {};
521
+ return f.headers = {
522
+ ...p,
523
+ ...h,
524
+ ...i.headers
525
+ }, {
526
+ url: m(l),
527
+ options: f
528
+ };
529
+ },
530
+ invite: async (t, n, r, i = {}) => {
531
+ s("invite", "driveId", t), s("invite", "itemId", n);
532
+ let a = "/v1beta1/drives/{drive-id}/items/{item-id}/invite".replace("{drive-id}", encodeURIComponent(String(t))).replace("{item-id}", encodeURIComponent(String(n))), l = new URL(a, o), u;
533
+ e && (u = e.baseOptions);
534
+ let f = {
535
+ method: "POST",
536
+ ...u,
537
+ ...i
538
+ }, h = {};
539
+ c(f, e), h["Content-Type"] = "application/json", h.Accept = "application/json", d(l, {});
540
+ let g = u && u.headers ? u.headers : {};
541
+ return f.headers = {
542
+ ...h,
543
+ ...g,
544
+ ...i.headers
545
+ }, f.data = p(r, f, e), {
546
+ url: m(l),
547
+ options: f
548
+ };
549
+ },
550
+ listPermissions: async (t, r, i, a, l, u, f = {}) => {
551
+ s("listPermissions", "driveId", t), s("listPermissions", "itemId", r);
552
+ let p = "/v1beta1/drives/{drive-id}/items/{item-id}/permissions".replace("{drive-id}", encodeURIComponent(String(t))).replace("{item-id}", encodeURIComponent(String(r))), h = new URL(p, o), g;
553
+ e && (g = e.baseOptions);
554
+ let _ = {
555
+ method: "GET",
556
+ ...g,
557
+ ...f
558
+ }, v = {}, y = {};
559
+ c(_, e), i !== void 0 && (y.$filter = i), a && (y.$select = Array.from(a).join(n.csv)), l !== void 0 && (y.$count = l), u !== void 0 && (y.$top = u), v.Accept = "application/json", d(h, y);
560
+ let ee = g && g.headers ? g.headers : {};
561
+ return _.headers = {
562
+ ...v,
563
+ ...ee,
564
+ ...f.headers
565
+ }, {
566
+ url: m(h),
567
+ options: _
568
+ };
569
+ },
570
+ setPermissionPassword: async (t, n, r, i, a = {}) => {
571
+ s("setPermissionPassword", "driveId", t), s("setPermissionPassword", "itemId", n), s("setPermissionPassword", "permId", r), s("setPermissionPassword", "sharingLinkPassword", i);
572
+ let l = "/v1beta1/drives/{drive-id}/items/{item-id}/permissions/{perm-id}/setPassword".replace("{drive-id}", encodeURIComponent(String(t))).replace("{item-id}", encodeURIComponent(String(n))).replace("{perm-id}", encodeURIComponent(String(r))), u = new URL(l, o), f;
573
+ e && (f = e.baseOptions);
574
+ let h = {
575
+ method: "POST",
576
+ ...f,
577
+ ...a
578
+ }, g = {};
579
+ c(h, e), g["Content-Type"] = "application/json", g.Accept = "application/json", d(u, {});
580
+ let _ = f && f.headers ? f.headers : {};
581
+ return h.headers = {
582
+ ...g,
583
+ ..._,
584
+ ...a.headers
585
+ }, h.data = p(i, h, e), {
586
+ url: m(u),
587
+ options: h
588
+ };
589
+ },
590
+ updatePermission: async (t, n, r, i, a = {}) => {
591
+ s("updatePermission", "driveId", t), s("updatePermission", "itemId", n), s("updatePermission", "permId", r), s("updatePermission", "permission", i);
592
+ let l = "/v1beta1/drives/{drive-id}/items/{item-id}/permissions/{perm-id}".replace("{drive-id}", encodeURIComponent(String(t))).replace("{item-id}", encodeURIComponent(String(n))).replace("{perm-id}", encodeURIComponent(String(r))), u = new URL(l, o), f;
593
+ e && (f = e.baseOptions);
594
+ let h = {
595
+ method: "PATCH",
596
+ ...f,
597
+ ...a
598
+ }, g = {};
599
+ c(h, e), g["Content-Type"] = "application/json", g.Accept = "application/json", d(u, {});
600
+ let _ = f && f.headers ? f.headers : {};
601
+ return h.headers = {
602
+ ...g,
603
+ ..._,
604
+ ...a.headers
605
+ }, h.data = p(i, h, e), {
606
+ url: m(u),
607
+ options: h
608
+ };
609
+ }
610
+ };
611
+ }, T = function(n) {
612
+ let r = he(n);
613
+ return {
614
+ async createLink(i, o, s, c) {
615
+ let l = await r.createLink(i, o, s, c), u = n?.serverIndex ?? 0, d = a["DrivesPermissionsApi.createLink"]?.[u]?.url;
616
+ return (r, i) => h(l, e, t, n)(r, d || i);
617
+ },
618
+ async deletePermission(i, o, s, c) {
619
+ let l = await r.deletePermission(i, o, s, c), u = n?.serverIndex ?? 0, d = a["DrivesPermissionsApi.deletePermission"]?.[u]?.url;
620
+ return (r, i) => h(l, e, t, n)(r, d || i);
621
+ },
622
+ async getPermission(i, o, s, c) {
623
+ let l = await r.getPermission(i, o, s, c), u = n?.serverIndex ?? 0, d = a["DrivesPermissionsApi.getPermission"]?.[u]?.url;
624
+ return (r, i) => h(l, e, t, n)(r, d || i);
625
+ },
626
+ async invite(i, o, s, c) {
627
+ let l = await r.invite(i, o, s, c), u = n?.serverIndex ?? 0, d = a["DrivesPermissionsApi.invite"]?.[u]?.url;
628
+ return (r, i) => h(l, e, t, n)(r, d || i);
629
+ },
630
+ async listPermissions(i, o, s, c, l, u, d) {
631
+ let f = await r.listPermissions(i, o, s, c, l, u, d), p = n?.serverIndex ?? 0, m = a["DrivesPermissionsApi.listPermissions"]?.[p]?.url;
632
+ return (r, i) => h(f, e, t, n)(r, m || i);
633
+ },
634
+ async setPermissionPassword(i, o, s, c, l) {
635
+ let u = await r.setPermissionPassword(i, o, s, c, l), d = n?.serverIndex ?? 0, f = a["DrivesPermissionsApi.setPermissionPassword"]?.[d]?.url;
636
+ return (r, i) => h(u, e, t, n)(r, f || i);
637
+ },
638
+ async updatePermission(i, o, s, c, l) {
639
+ let u = await r.updatePermission(i, o, s, c, l), d = n?.serverIndex ?? 0, f = a["DrivesPermissionsApi.updatePermission"]?.[d]?.url;
640
+ return (r, i) => h(u, e, t, n)(r, f || i);
641
+ }
642
+ };
643
+ }, ge = function(e, t, n) {
644
+ let r = T(e);
645
+ return {
646
+ createLink(e, i, a, o) {
647
+ return r.createLink(e, i, a, o).then((e) => e(n, t));
648
+ },
649
+ deletePermission(e, i, a, o) {
650
+ return r.deletePermission(e, i, a, o).then((e) => e(n, t));
651
+ },
652
+ getPermission(e, i, a, o) {
653
+ return r.getPermission(e, i, a, o).then((e) => e(n, t));
654
+ },
655
+ invite(e, i, a, o) {
656
+ return r.invite(e, i, a, o).then((e) => e(n, t));
657
+ },
658
+ listPermissions(e, i, a, o, s, c, l) {
659
+ return r.listPermissions(e, i, a, o, s, c, l).then((e) => e(n, t));
660
+ },
661
+ setPermissionPassword(e, i, a, o, s) {
662
+ return r.setPermissionPassword(e, i, a, o, s).then((e) => e(n, t));
663
+ },
664
+ updatePermission(e, i, a, o, s) {
665
+ return r.updatePermission(e, i, a, o, s).then((e) => e(n, t));
666
+ }
667
+ };
668
+ }, _e = class extends r {
669
+ createLink(e, t, n, r) {
670
+ return T(this.configuration).createLink(e, t, n, r).then((e) => e(this.axios, this.basePath));
671
+ }
672
+ deletePermission(e, t, n, r) {
673
+ return T(this.configuration).deletePermission(e, t, n, r).then((e) => e(this.axios, this.basePath));
674
+ }
675
+ getPermission(e, t, n, r) {
676
+ return T(this.configuration).getPermission(e, t, n, r).then((e) => e(this.axios, this.basePath));
677
+ }
678
+ invite(e, t, n, r) {
679
+ return T(this.configuration).invite(e, t, n, r).then((e) => e(this.axios, this.basePath));
680
+ }
681
+ listPermissions(e, t, n, r, i, a, o) {
682
+ return T(this.configuration).listPermissions(e, t, n, r, i, a, o).then((e) => e(this.axios, this.basePath));
683
+ }
684
+ setPermissionPassword(e, t, n, r, i) {
685
+ return T(this.configuration).setPermissionPassword(e, t, n, r, i).then((e) => e(this.axios, this.basePath));
686
+ }
687
+ updatePermission(e, t, n, r, i) {
688
+ return T(this.configuration).updatePermission(e, t, n, r, i).then((e) => e(this.axios, this.basePath));
689
+ }
690
+ }, ve = {
691
+ LibreGraphPermissionsActionsAllowedValues: "@libre.graph.permissions.actions.allowedValues",
692
+ LibreGraphPermissionsRolesAllowedValues: "@libre.graph.permissions.roles.allowedValues",
693
+ Value: "value"
694
+ }, ye = function(e) {
695
+ return {
696
+ createDriveItem: async (t, n, r = {}) => {
697
+ s("createDriveItem", "driveId", t);
698
+ let i = "/v1beta1/drives/{drive-id}/root/children".replace("{drive-id}", encodeURIComponent(String(t))), a = new URL(i, o), l;
699
+ e && (l = e.baseOptions);
700
+ let u = {
701
+ method: "POST",
702
+ ...l,
703
+ ...r
704
+ }, f = {};
705
+ c(u, e), f["Content-Type"] = "application/json", f.Accept = "application/json", d(a, {});
706
+ let h = l && l.headers ? l.headers : {};
707
+ return u.headers = {
708
+ ...f,
709
+ ...h,
710
+ ...r.headers
711
+ }, u.data = p(n, u, e), {
712
+ url: m(a),
713
+ options: u
714
+ };
715
+ },
716
+ createLinkSpaceRoot: async (t, n, r = {}) => {
717
+ s("createLinkSpaceRoot", "driveId", t);
718
+ let i = "/v1beta1/drives/{drive-id}/root/createLink".replace("{drive-id}", encodeURIComponent(String(t))), a = new URL(i, o), l;
719
+ e && (l = e.baseOptions);
720
+ let u = {
721
+ method: "POST",
722
+ ...l,
723
+ ...r
724
+ }, f = {};
725
+ c(u, e), f["Content-Type"] = "application/json", f.Accept = "application/json", d(a, {});
726
+ let h = l && l.headers ? l.headers : {};
727
+ return u.headers = {
728
+ ...f,
729
+ ...h,
730
+ ...r.headers
731
+ }, u.data = p(n, u, e), {
732
+ url: m(a),
733
+ options: u
734
+ };
735
+ },
736
+ deletePermissionSpaceRoot: async (t, n, r = {}) => {
737
+ s("deletePermissionSpaceRoot", "driveId", t), s("deletePermissionSpaceRoot", "permId", n);
738
+ let i = "/v1beta1/drives/{drive-id}/root/permissions/{perm-id}".replace("{drive-id}", encodeURIComponent(String(t))).replace("{perm-id}", encodeURIComponent(String(n))), a = new URL(i, o), l;
739
+ e && (l = e.baseOptions);
740
+ let u = {
741
+ method: "DELETE",
742
+ ...l,
743
+ ...r
744
+ }, f = {};
745
+ c(u, e), f.Accept = "application/json", d(a, {});
746
+ let p = l && l.headers ? l.headers : {};
747
+ return u.headers = {
748
+ ...f,
749
+ ...p,
750
+ ...r.headers
751
+ }, {
752
+ url: m(a),
753
+ options: u
754
+ };
755
+ },
756
+ getPermissionSpaceRoot: async (t, n, r = {}) => {
757
+ s("getPermissionSpaceRoot", "driveId", t), s("getPermissionSpaceRoot", "permId", n);
758
+ let i = "/v1beta1/drives/{drive-id}/root/permissions/{perm-id}".replace("{drive-id}", encodeURIComponent(String(t))).replace("{perm-id}", encodeURIComponent(String(n))), a = new URL(i, o), l;
759
+ e && (l = e.baseOptions);
760
+ let u = {
761
+ method: "GET",
762
+ ...l,
763
+ ...r
764
+ }, f = {};
765
+ c(u, e), f.Accept = "application/json", d(a, {});
766
+ let p = l && l.headers ? l.headers : {};
767
+ return u.headers = {
768
+ ...f,
769
+ ...p,
770
+ ...r.headers
771
+ }, {
772
+ url: m(a),
773
+ options: u
774
+ };
775
+ },
776
+ getRoot: async (t, n = {}) => {
777
+ s("getRoot", "driveId", t);
778
+ let r = "/v1.0/drives/{drive-id}/root".replace("{drive-id}", encodeURIComponent(String(t))), i = new URL(r, o), a;
779
+ e && (a = e.baseOptions);
780
+ let l = {
781
+ method: "GET",
782
+ ...a,
783
+ ...n
784
+ }, u = {};
785
+ c(l, e), u.Accept = "application/json", d(i, {});
786
+ let f = a && a.headers ? a.headers : {};
787
+ return l.headers = {
788
+ ...u,
789
+ ...f,
790
+ ...n.headers
791
+ }, {
792
+ url: m(i),
793
+ options: l
794
+ };
795
+ },
796
+ inviteSpaceRoot: async (t, n, r = {}) => {
797
+ s("inviteSpaceRoot", "driveId", t);
798
+ let i = "/v1beta1/drives/{drive-id}/root/invite".replace("{drive-id}", encodeURIComponent(String(t))), a = new URL(i, o), l;
799
+ e && (l = e.baseOptions);
800
+ let u = {
801
+ method: "POST",
802
+ ...l,
803
+ ...r
804
+ }, f = {};
805
+ c(u, e), f["Content-Type"] = "application/json", f.Accept = "application/json", d(a, {});
806
+ let h = l && l.headers ? l.headers : {};
807
+ return u.headers = {
808
+ ...f,
809
+ ...h,
810
+ ...r.headers
811
+ }, u.data = p(n, u, e), {
812
+ url: m(a),
813
+ options: u
814
+ };
815
+ },
816
+ listPermissionsSpaceRoot: async (t, r, i, a, l, u = {}) => {
817
+ s("listPermissionsSpaceRoot", "driveId", t);
818
+ let f = "/v1beta1/drives/{drive-id}/root/permissions".replace("{drive-id}", encodeURIComponent(String(t))), p = new URL(f, o), h;
819
+ e && (h = e.baseOptions);
820
+ let g = {
821
+ method: "GET",
822
+ ...h,
823
+ ...u
824
+ }, _ = {}, v = {};
825
+ c(g, e), r !== void 0 && (v.$filter = r), i && (v.$select = Array.from(i).join(n.csv)), a !== void 0 && (v.$count = a), l !== void 0 && (v.$top = l), _.Accept = "application/json", d(p, v);
826
+ let y = h && h.headers ? h.headers : {};
827
+ return g.headers = {
828
+ ..._,
829
+ ...y,
830
+ ...u.headers
831
+ }, {
832
+ url: m(p),
833
+ options: g
834
+ };
835
+ },
836
+ setPermissionPasswordSpaceRoot: async (t, n, r, i = {}) => {
837
+ s("setPermissionPasswordSpaceRoot", "driveId", t), s("setPermissionPasswordSpaceRoot", "permId", n), s("setPermissionPasswordSpaceRoot", "sharingLinkPassword", r);
838
+ let a = "/v1beta1/drives/{drive-id}/root/permissions/{perm-id}/setPassword".replace("{drive-id}", encodeURIComponent(String(t))).replace("{perm-id}", encodeURIComponent(String(n))), l = new URL(a, o), u;
839
+ e && (u = e.baseOptions);
840
+ let f = {
841
+ method: "POST",
842
+ ...u,
843
+ ...i
844
+ }, h = {};
845
+ c(f, e), h["Content-Type"] = "application/json", h.Accept = "application/json", d(l, {});
846
+ let g = u && u.headers ? u.headers : {};
847
+ return f.headers = {
848
+ ...h,
849
+ ...g,
850
+ ...i.headers
851
+ }, f.data = p(r, f, e), {
852
+ url: m(l),
853
+ options: f
854
+ };
855
+ },
856
+ updatePermissionSpaceRoot: async (t, n, r, i = {}) => {
857
+ s("updatePermissionSpaceRoot", "driveId", t), s("updatePermissionSpaceRoot", "permId", n), s("updatePermissionSpaceRoot", "permission", r);
858
+ let a = "/v1beta1/drives/{drive-id}/root/permissions/{perm-id}".replace("{drive-id}", encodeURIComponent(String(t))).replace("{perm-id}", encodeURIComponent(String(n))), l = new URL(a, o), u;
859
+ e && (u = e.baseOptions);
860
+ let f = {
861
+ method: "PATCH",
862
+ ...u,
863
+ ...i
864
+ }, h = {};
865
+ c(f, e), h["Content-Type"] = "application/json", h.Accept = "application/json", d(l, {});
866
+ let g = u && u.headers ? u.headers : {};
867
+ return f.headers = {
868
+ ...h,
869
+ ...g,
870
+ ...i.headers
871
+ }, f.data = p(r, f, e), {
872
+ url: m(l),
873
+ options: f
874
+ };
875
+ }
876
+ };
877
+ }, E = function(n) {
878
+ let r = ye(n);
879
+ return {
880
+ async createDriveItem(i, o, s) {
881
+ let c = await r.createDriveItem(i, o, s), l = n?.serverIndex ?? 0, u = a["DrivesRootApi.createDriveItem"]?.[l]?.url;
882
+ return (r, i) => h(c, e, t, n)(r, u || i);
883
+ },
884
+ async createLinkSpaceRoot(i, o, s) {
885
+ let c = await r.createLinkSpaceRoot(i, o, s), l = n?.serverIndex ?? 0, u = a["DrivesRootApi.createLinkSpaceRoot"]?.[l]?.url;
886
+ return (r, i) => h(c, e, t, n)(r, u || i);
887
+ },
888
+ async deletePermissionSpaceRoot(i, o, s) {
889
+ let c = await r.deletePermissionSpaceRoot(i, o, s), l = n?.serverIndex ?? 0, u = a["DrivesRootApi.deletePermissionSpaceRoot"]?.[l]?.url;
890
+ return (r, i) => h(c, e, t, n)(r, u || i);
891
+ },
892
+ async getPermissionSpaceRoot(i, o, s) {
893
+ let c = await r.getPermissionSpaceRoot(i, o, s), l = n?.serverIndex ?? 0, u = a["DrivesRootApi.getPermissionSpaceRoot"]?.[l]?.url;
894
+ return (r, i) => h(c, e, t, n)(r, u || i);
895
+ },
896
+ async getRoot(i, o) {
897
+ let s = await r.getRoot(i, o), c = n?.serverIndex ?? 0, l = a["DrivesRootApi.getRoot"]?.[c]?.url;
898
+ return (r, i) => h(s, e, t, n)(r, l || i);
899
+ },
900
+ async inviteSpaceRoot(i, o, s) {
901
+ let c = await r.inviteSpaceRoot(i, o, s), l = n?.serverIndex ?? 0, u = a["DrivesRootApi.inviteSpaceRoot"]?.[l]?.url;
902
+ return (r, i) => h(c, e, t, n)(r, u || i);
903
+ },
904
+ async listPermissionsSpaceRoot(i, o, s, c, l, u) {
905
+ let d = await r.listPermissionsSpaceRoot(i, o, s, c, l, u), f = n?.serverIndex ?? 0, p = a["DrivesRootApi.listPermissionsSpaceRoot"]?.[f]?.url;
906
+ return (r, i) => h(d, e, t, n)(r, p || i);
907
+ },
908
+ async setPermissionPasswordSpaceRoot(i, o, s, c) {
909
+ let l = await r.setPermissionPasswordSpaceRoot(i, o, s, c), u = n?.serverIndex ?? 0, d = a["DrivesRootApi.setPermissionPasswordSpaceRoot"]?.[u]?.url;
910
+ return (r, i) => h(l, e, t, n)(r, d || i);
911
+ },
912
+ async updatePermissionSpaceRoot(i, o, s, c) {
913
+ let l = await r.updatePermissionSpaceRoot(i, o, s, c), u = n?.serverIndex ?? 0, d = a["DrivesRootApi.updatePermissionSpaceRoot"]?.[u]?.url;
914
+ return (r, i) => h(l, e, t, n)(r, d || i);
915
+ }
916
+ };
917
+ }, be = function(e, t, n) {
918
+ let r = E(e);
919
+ return {
920
+ createDriveItem(e, i, a) {
921
+ return r.createDriveItem(e, i, a).then((e) => e(n, t));
922
+ },
923
+ createLinkSpaceRoot(e, i, a) {
924
+ return r.createLinkSpaceRoot(e, i, a).then((e) => e(n, t));
925
+ },
926
+ deletePermissionSpaceRoot(e, i, a) {
927
+ return r.deletePermissionSpaceRoot(e, i, a).then((e) => e(n, t));
928
+ },
929
+ getPermissionSpaceRoot(e, i, a) {
930
+ return r.getPermissionSpaceRoot(e, i, a).then((e) => e(n, t));
931
+ },
932
+ getRoot(e, i) {
933
+ return r.getRoot(e, i).then((e) => e(n, t));
934
+ },
935
+ inviteSpaceRoot(e, i, a) {
936
+ return r.inviteSpaceRoot(e, i, a).then((e) => e(n, t));
937
+ },
938
+ listPermissionsSpaceRoot(e, i, a, o, s, c) {
939
+ return r.listPermissionsSpaceRoot(e, i, a, o, s, c).then((e) => e(n, t));
940
+ },
941
+ setPermissionPasswordSpaceRoot(e, i, a, o) {
942
+ return r.setPermissionPasswordSpaceRoot(e, i, a, o).then((e) => e(n, t));
943
+ },
944
+ updatePermissionSpaceRoot(e, i, a, o) {
945
+ return r.updatePermissionSpaceRoot(e, i, a, o).then((e) => e(n, t));
946
+ }
947
+ };
948
+ }, xe = class extends r {
949
+ createDriveItem(e, t, n) {
950
+ return E(this.configuration).createDriveItem(e, t, n).then((e) => e(this.axios, this.basePath));
951
+ }
952
+ createLinkSpaceRoot(e, t, n) {
953
+ return E(this.configuration).createLinkSpaceRoot(e, t, n).then((e) => e(this.axios, this.basePath));
954
+ }
955
+ deletePermissionSpaceRoot(e, t, n) {
956
+ return E(this.configuration).deletePermissionSpaceRoot(e, t, n).then((e) => e(this.axios, this.basePath));
957
+ }
958
+ getPermissionSpaceRoot(e, t, n) {
959
+ return E(this.configuration).getPermissionSpaceRoot(e, t, n).then((e) => e(this.axios, this.basePath));
960
+ }
961
+ getRoot(e, t) {
962
+ return E(this.configuration).getRoot(e, t).then((e) => e(this.axios, this.basePath));
963
+ }
964
+ inviteSpaceRoot(e, t, n) {
965
+ return E(this.configuration).inviteSpaceRoot(e, t, n).then((e) => e(this.axios, this.basePath));
966
+ }
967
+ listPermissionsSpaceRoot(e, t, n, r, i, a) {
968
+ return E(this.configuration).listPermissionsSpaceRoot(e, t, n, r, i, a).then((e) => e(this.axios, this.basePath));
969
+ }
970
+ setPermissionPasswordSpaceRoot(e, t, n, r) {
971
+ return E(this.configuration).setPermissionPasswordSpaceRoot(e, t, n, r).then((e) => e(this.axios, this.basePath));
972
+ }
973
+ updatePermissionSpaceRoot(e, t, n, r) {
974
+ return E(this.configuration).updatePermissionSpaceRoot(e, t, n, r).then((e) => e(this.axios, this.basePath));
975
+ }
976
+ }, Se = {
977
+ LibreGraphPermissionsActionsAllowedValues: "@libre.graph.permissions.actions.allowedValues",
978
+ LibreGraphPermissionsRolesAllowedValues: "@libre.graph.permissions.roles.allowedValues",
979
+ Value: "value"
980
+ }, D = function(e) {
981
+ return {
982
+ addUserToClass: async (t, n, r = {}) => {
983
+ s("addUserToClass", "classId", t), s("addUserToClass", "classMemberReference", n);
984
+ let i = "/v1.0/education/classes/{class-id}/members/$ref".replace("{class-id}", encodeURIComponent(String(t))), a = new URL(i, o), c;
985
+ e && (c = e.baseOptions);
986
+ let u = {
987
+ method: "POST",
988
+ ...c,
989
+ ...r
990
+ }, f = {};
991
+ await l(f, e), f["Content-Type"] = "application/json", f.Accept = "application/json", d(a, {});
992
+ let h = c && c.headers ? c.headers : {};
993
+ return u.headers = {
994
+ ...f,
995
+ ...h,
996
+ ...r.headers
997
+ }, u.data = p(n, u, e), {
998
+ url: m(a),
999
+ options: u
1000
+ };
1001
+ },
1002
+ createClass: async (t, n = {}) => {
1003
+ s("createClass", "educationClass", t);
1004
+ let r = new URL("/v1.0/education/classes", o), i;
1005
+ e && (i = e.baseOptions);
1006
+ let a = {
1007
+ method: "POST",
1008
+ ...i,
1009
+ ...n
1010
+ }, c = {};
1011
+ await l(c, e), c["Content-Type"] = "application/json", c.Accept = "application/json", d(r, {});
1012
+ let u = i && i.headers ? i.headers : {};
1013
+ return a.headers = {
1014
+ ...c,
1015
+ ...u,
1016
+ ...n.headers
1017
+ }, a.data = p(t, a, e), {
1018
+ url: m(r),
1019
+ options: a
1020
+ };
1021
+ },
1022
+ deleteClass: async (t, n = {}) => {
1023
+ s("deleteClass", "classId", t);
1024
+ let r = "/v1.0/education/classes/{class-id}".replace("{class-id}", encodeURIComponent(String(t))), i = new URL(r, o), a;
1025
+ e && (a = e.baseOptions);
1026
+ let c = {
1027
+ method: "DELETE",
1028
+ ...a,
1029
+ ...n
1030
+ }, u = {};
1031
+ await l(u, e), u.Accept = "application/json", d(i, {});
1032
+ let f = a && a.headers ? a.headers : {};
1033
+ return c.headers = {
1034
+ ...u,
1035
+ ...f,
1036
+ ...n.headers
1037
+ }, {
1038
+ url: m(i),
1039
+ options: c
1040
+ };
1041
+ },
1042
+ deleteUserFromClass: async (t, n, r = {}) => {
1043
+ s("deleteUserFromClass", "classId", t), s("deleteUserFromClass", "userId", n);
1044
+ let i = "/v1.0/education/classes/{class-id}/members/{user-id}/$ref".replace("{class-id}", encodeURIComponent(String(t))).replace("{user-id}", encodeURIComponent(String(n))), a = new URL(i, o), c;
1045
+ e && (c = e.baseOptions);
1046
+ let u = {
1047
+ method: "DELETE",
1048
+ ...c,
1049
+ ...r
1050
+ }, f = {};
1051
+ await l(f, e), f.Accept = "application/json", d(a, {});
1052
+ let p = c && c.headers ? c.headers : {};
1053
+ return u.headers = {
1054
+ ...f,
1055
+ ...p,
1056
+ ...r.headers
1057
+ }, {
1058
+ url: m(a),
1059
+ options: u
1060
+ };
1061
+ },
1062
+ getClass: async (t, n = {}) => {
1063
+ s("getClass", "classId", t);
1064
+ let r = "/v1.0/education/classes/{class-id}".replace("{class-id}", encodeURIComponent(String(t))), i = new URL(r, o), a;
1065
+ e && (a = e.baseOptions);
1066
+ let c = {
1067
+ method: "GET",
1068
+ ...a,
1069
+ ...n
1070
+ }, u = {};
1071
+ await l(u, e), u.Accept = "application/json", d(i, {});
1072
+ let f = a && a.headers ? a.headers : {};
1073
+ return c.headers = {
1074
+ ...u,
1075
+ ...f,
1076
+ ...n.headers
1077
+ }, {
1078
+ url: m(i),
1079
+ options: c
1080
+ };
1081
+ },
1082
+ listClassMembers: async (t, n = {}) => {
1083
+ s("listClassMembers", "classId", t);
1084
+ let r = "/v1.0/education/classes/{class-id}/members".replace("{class-id}", encodeURIComponent(String(t))), i = new URL(r, o), a;
1085
+ e && (a = e.baseOptions);
1086
+ let c = {
1087
+ method: "GET",
1088
+ ...a,
1089
+ ...n
1090
+ }, u = {};
1091
+ await l(u, e), u.Accept = "application/json", d(i, {});
1092
+ let f = a && a.headers ? a.headers : {};
1093
+ return c.headers = {
1094
+ ...u,
1095
+ ...f,
1096
+ ...n.headers
1097
+ }, {
1098
+ url: m(i),
1099
+ options: c
1100
+ };
1101
+ },
1102
+ listClasses: async (t = {}) => {
1103
+ let n = new URL("/v1.0/education/classes", o), r;
1104
+ e && (r = e.baseOptions);
1105
+ let i = {
1106
+ method: "GET",
1107
+ ...r,
1108
+ ...t
1109
+ }, a = {};
1110
+ await l(a, e), a.Accept = "application/json", d(n, {});
1111
+ let s = r && r.headers ? r.headers : {};
1112
+ return i.headers = {
1113
+ ...a,
1114
+ ...s,
1115
+ ...t.headers
1116
+ }, {
1117
+ url: m(n),
1118
+ options: i
1119
+ };
1120
+ },
1121
+ updateClass: async (t, n, r = {}) => {
1122
+ s("updateClass", "classId", t), s("updateClass", "educationClass", n);
1123
+ let i = "/v1.0/education/classes/{class-id}".replace("{class-id}", encodeURIComponent(String(t))), a = new URL(i, o), c;
1124
+ e && (c = e.baseOptions);
1125
+ let u = {
1126
+ method: "PATCH",
1127
+ ...c,
1128
+ ...r
1129
+ }, f = {};
1130
+ await l(f, e), f["Content-Type"] = "application/json", f.Accept = "application/json", d(a, {});
1131
+ let h = c && c.headers ? c.headers : {};
1132
+ return u.headers = {
1133
+ ...f,
1134
+ ...h,
1135
+ ...r.headers
1136
+ }, u.data = p(n, u, e), {
1137
+ url: m(a),
1138
+ options: u
1139
+ };
1140
+ }
1141
+ };
1142
+ }, O = function(n) {
1143
+ let r = D(n);
1144
+ return {
1145
+ async addUserToClass(i, o, s) {
1146
+ let c = await r.addUserToClass(i, o, s), l = n?.serverIndex ?? 0, u = a["EducationClassApi.addUserToClass"]?.[l]?.url;
1147
+ return (r, i) => h(c, e, t, n)(r, u || i);
1148
+ },
1149
+ async createClass(i, o) {
1150
+ let s = await r.createClass(i, o), c = n?.serverIndex ?? 0, l = a["EducationClassApi.createClass"]?.[c]?.url;
1151
+ return (r, i) => h(s, e, t, n)(r, l || i);
1152
+ },
1153
+ async deleteClass(i, o) {
1154
+ let s = await r.deleteClass(i, o), c = n?.serverIndex ?? 0, l = a["EducationClassApi.deleteClass"]?.[c]?.url;
1155
+ return (r, i) => h(s, e, t, n)(r, l || i);
1156
+ },
1157
+ async deleteUserFromClass(i, o, s) {
1158
+ let c = await r.deleteUserFromClass(i, o, s), l = n?.serverIndex ?? 0, u = a["EducationClassApi.deleteUserFromClass"]?.[l]?.url;
1159
+ return (r, i) => h(c, e, t, n)(r, u || i);
1160
+ },
1161
+ async getClass(i, o) {
1162
+ let s = await r.getClass(i, o), c = n?.serverIndex ?? 0, l = a["EducationClassApi.getClass"]?.[c]?.url;
1163
+ return (r, i) => h(s, e, t, n)(r, l || i);
1164
+ },
1165
+ async listClassMembers(i, o) {
1166
+ let s = await r.listClassMembers(i, o), c = n?.serverIndex ?? 0, l = a["EducationClassApi.listClassMembers"]?.[c]?.url;
1167
+ return (r, i) => h(s, e, t, n)(r, l || i);
1168
+ },
1169
+ async listClasses(i) {
1170
+ let o = await r.listClasses(i), s = n?.serverIndex ?? 0, c = a["EducationClassApi.listClasses"]?.[s]?.url;
1171
+ return (r, i) => h(o, e, t, n)(r, c || i);
1172
+ },
1173
+ async updateClass(i, o, s) {
1174
+ let c = await r.updateClass(i, o, s), l = n?.serverIndex ?? 0, u = a["EducationClassApi.updateClass"]?.[l]?.url;
1175
+ return (r, i) => h(c, e, t, n)(r, u || i);
1176
+ }
1177
+ };
1178
+ }, Ce = function(e, t, n) {
1179
+ let r = O(e);
1180
+ return {
1181
+ addUserToClass(e, i, a) {
1182
+ return r.addUserToClass(e, i, a).then((e) => e(n, t));
1183
+ },
1184
+ createClass(e, i) {
1185
+ return r.createClass(e, i).then((e) => e(n, t));
1186
+ },
1187
+ deleteClass(e, i) {
1188
+ return r.deleteClass(e, i).then((e) => e(n, t));
1189
+ },
1190
+ deleteUserFromClass(e, i, a) {
1191
+ return r.deleteUserFromClass(e, i, a).then((e) => e(n, t));
1192
+ },
1193
+ getClass(e, i) {
1194
+ return r.getClass(e, i).then((e) => e(n, t));
1195
+ },
1196
+ listClassMembers(e, i) {
1197
+ return r.listClassMembers(e, i).then((e) => e(n, t));
1198
+ },
1199
+ listClasses(e) {
1200
+ return r.listClasses(e).then((e) => e(n, t));
1201
+ },
1202
+ updateClass(e, i, a) {
1203
+ return r.updateClass(e, i, a).then((e) => e(n, t));
1204
+ }
1205
+ };
1206
+ }, we = class extends r {
1207
+ addUserToClass(e, t, n) {
1208
+ return O(this.configuration).addUserToClass(e, t, n).then((e) => e(this.axios, this.basePath));
1209
+ }
1210
+ createClass(e, t) {
1211
+ return O(this.configuration).createClass(e, t).then((e) => e(this.axios, this.basePath));
1212
+ }
1213
+ deleteClass(e, t) {
1214
+ return O(this.configuration).deleteClass(e, t).then((e) => e(this.axios, this.basePath));
1215
+ }
1216
+ deleteUserFromClass(e, t, n) {
1217
+ return O(this.configuration).deleteUserFromClass(e, t, n).then((e) => e(this.axios, this.basePath));
1218
+ }
1219
+ getClass(e, t) {
1220
+ return O(this.configuration).getClass(e, t).then((e) => e(this.axios, this.basePath));
1221
+ }
1222
+ listClassMembers(e, t) {
1223
+ return O(this.configuration).listClassMembers(e, t).then((e) => e(this.axios, this.basePath));
1224
+ }
1225
+ listClasses(e) {
1226
+ return O(this.configuration).listClasses(e).then((e) => e(this.axios, this.basePath));
1227
+ }
1228
+ updateClass(e, t, n) {
1229
+ return O(this.configuration).updateClass(e, t, n).then((e) => e(this.axios, this.basePath));
1230
+ }
1231
+ }, k = function(e) {
1232
+ return {
1233
+ addTeacherToClass: async (t, n, r = {}) => {
1234
+ s("addTeacherToClass", "classId", t), s("addTeacherToClass", "classTeacherReference", n);
1235
+ let i = "/v1.0/education/classes/{class-id}/teachers/$ref".replace("{class-id}", encodeURIComponent(String(t))), a = new URL(i, o), c;
1236
+ e && (c = e.baseOptions);
1237
+ let u = {
1238
+ method: "POST",
1239
+ ...c,
1240
+ ...r
1241
+ }, f = {};
1242
+ await l(f, e), f["Content-Type"] = "application/json", f.Accept = "application/json", d(a, {});
1243
+ let h = c && c.headers ? c.headers : {};
1244
+ return u.headers = {
1245
+ ...f,
1246
+ ...h,
1247
+ ...r.headers
1248
+ }, u.data = p(n, u, e), {
1249
+ url: m(a),
1250
+ options: u
1251
+ };
1252
+ },
1253
+ deleteTeacherFromClass: async (t, n, r = {}) => {
1254
+ s("deleteTeacherFromClass", "classId", t), s("deleteTeacherFromClass", "userId", n);
1255
+ let i = "/v1.0/education/classes/{class-id}/teachers/{user-id}/$ref".replace("{class-id}", encodeURIComponent(String(t))).replace("{user-id}", encodeURIComponent(String(n))), a = new URL(i, o), c;
1256
+ e && (c = e.baseOptions);
1257
+ let u = {
1258
+ method: "DELETE",
1259
+ ...c,
1260
+ ...r
1261
+ }, f = {};
1262
+ await l(f, e), f.Accept = "application/json", d(a, {});
1263
+ let p = c && c.headers ? c.headers : {};
1264
+ return u.headers = {
1265
+ ...f,
1266
+ ...p,
1267
+ ...r.headers
1268
+ }, {
1269
+ url: m(a),
1270
+ options: u
1271
+ };
1272
+ },
1273
+ getTeachers: async (t, n = {}) => {
1274
+ s("getTeachers", "classId", t);
1275
+ let r = "/v1.0/education/classes/{class-id}/teachers".replace("{class-id}", encodeURIComponent(String(t))), i = new URL(r, o), a;
1276
+ e && (a = e.baseOptions);
1277
+ let c = {
1278
+ method: "GET",
1279
+ ...a,
1280
+ ...n
1281
+ }, u = {};
1282
+ await l(u, e), u.Accept = "application/json", d(i, {});
1283
+ let f = a && a.headers ? a.headers : {};
1284
+ return c.headers = {
1285
+ ...u,
1286
+ ...f,
1287
+ ...n.headers
1288
+ }, {
1289
+ url: m(i),
1290
+ options: c
1291
+ };
1292
+ }
1293
+ };
1294
+ }, A = function(n) {
1295
+ let r = k(n);
1296
+ return {
1297
+ async addTeacherToClass(i, o, s) {
1298
+ let c = await r.addTeacherToClass(i, o, s), l = n?.serverIndex ?? 0, u = a["EducationClassTeachersApi.addTeacherToClass"]?.[l]?.url;
1299
+ return (r, i) => h(c, e, t, n)(r, u || i);
1300
+ },
1301
+ async deleteTeacherFromClass(i, o, s) {
1302
+ let c = await r.deleteTeacherFromClass(i, o, s), l = n?.serverIndex ?? 0, u = a["EducationClassTeachersApi.deleteTeacherFromClass"]?.[l]?.url;
1303
+ return (r, i) => h(c, e, t, n)(r, u || i);
1304
+ },
1305
+ async getTeachers(i, o) {
1306
+ let s = await r.getTeachers(i, o), c = n?.serverIndex ?? 0, l = a["EducationClassTeachersApi.getTeachers"]?.[c]?.url;
1307
+ return (r, i) => h(s, e, t, n)(r, l || i);
1308
+ }
1309
+ };
1310
+ }, Te = function(e, t, n) {
1311
+ let r = A(e);
1312
+ return {
1313
+ addTeacherToClass(e, i, a) {
1314
+ return r.addTeacherToClass(e, i, a).then((e) => e(n, t));
1315
+ },
1316
+ deleteTeacherFromClass(e, i, a) {
1317
+ return r.deleteTeacherFromClass(e, i, a).then((e) => e(n, t));
1318
+ },
1319
+ getTeachers(e, i) {
1320
+ return r.getTeachers(e, i).then((e) => e(n, t));
1321
+ }
1322
+ };
1323
+ }, Ee = class extends r {
1324
+ addTeacherToClass(e, t, n) {
1325
+ return A(this.configuration).addTeacherToClass(e, t, n).then((e) => e(this.axios, this.basePath));
1326
+ }
1327
+ deleteTeacherFromClass(e, t, n) {
1328
+ return A(this.configuration).deleteTeacherFromClass(e, t, n).then((e) => e(this.axios, this.basePath));
1329
+ }
1330
+ getTeachers(e, t) {
1331
+ return A(this.configuration).getTeachers(e, t).then((e) => e(this.axios, this.basePath));
1332
+ }
1333
+ }, j = function(e) {
1334
+ return {
1335
+ addClassToSchool: async (t, n, r = {}) => {
1336
+ s("addClassToSchool", "schoolId", t), s("addClassToSchool", "classReference", n);
1337
+ let i = "/v1.0/education/schools/{school-id}/classes/$ref".replace("{school-id}", encodeURIComponent(String(t))), a = new URL(i, o), c;
1338
+ e && (c = e.baseOptions);
1339
+ let u = {
1340
+ method: "POST",
1341
+ ...c,
1342
+ ...r
1343
+ }, f = {};
1344
+ await l(f, e), f["Content-Type"] = "application/json", f.Accept = "application/json", d(a, {});
1345
+ let h = c && c.headers ? c.headers : {};
1346
+ return u.headers = {
1347
+ ...f,
1348
+ ...h,
1349
+ ...r.headers
1350
+ }, u.data = p(n, u, e), {
1351
+ url: m(a),
1352
+ options: u
1353
+ };
1354
+ },
1355
+ addUserToSchool: async (t, n, r = {}) => {
1356
+ s("addUserToSchool", "schoolId", t), s("addUserToSchool", "educationUserReference", n);
1357
+ let i = "/v1.0/education/schools/{school-id}/users/$ref".replace("{school-id}", encodeURIComponent(String(t))), a = new URL(i, o), c;
1358
+ e && (c = e.baseOptions);
1359
+ let u = {
1360
+ method: "POST",
1361
+ ...c,
1362
+ ...r
1363
+ }, f = {};
1364
+ await l(f, e), f["Content-Type"] = "application/json", f.Accept = "application/json", d(a, {});
1365
+ let h = c && c.headers ? c.headers : {};
1366
+ return u.headers = {
1367
+ ...f,
1368
+ ...h,
1369
+ ...r.headers
1370
+ }, u.data = p(n, u, e), {
1371
+ url: m(a),
1372
+ options: u
1373
+ };
1374
+ },
1375
+ createSchool: async (t, n = {}) => {
1376
+ s("createSchool", "educationSchool", t);
1377
+ let r = new URL("/v1.0/education/schools", o), i;
1378
+ e && (i = e.baseOptions);
1379
+ let a = {
1380
+ method: "POST",
1381
+ ...i,
1382
+ ...n
1383
+ }, c = {};
1384
+ await l(c, e), c["Content-Type"] = "application/json", c.Accept = "application/json", d(r, {});
1385
+ let u = i && i.headers ? i.headers : {};
1386
+ return a.headers = {
1387
+ ...c,
1388
+ ...u,
1389
+ ...n.headers
1390
+ }, a.data = p(t, a, e), {
1391
+ url: m(r),
1392
+ options: a
1393
+ };
1394
+ },
1395
+ deleteClassFromSchool: async (t, n, r = {}) => {
1396
+ s("deleteClassFromSchool", "schoolId", t), s("deleteClassFromSchool", "classId", n);
1397
+ let i = "/v1.0/education/schools/{school-id}/classes/{class-id}/$ref".replace("{school-id}", encodeURIComponent(String(t))).replace("{class-id}", encodeURIComponent(String(n))), a = new URL(i, o), c;
1398
+ e && (c = e.baseOptions);
1399
+ let u = {
1400
+ method: "DELETE",
1401
+ ...c,
1402
+ ...r
1403
+ }, f = {};
1404
+ await l(f, e), f.Accept = "application/json", d(a, {});
1405
+ let p = c && c.headers ? c.headers : {};
1406
+ return u.headers = {
1407
+ ...f,
1408
+ ...p,
1409
+ ...r.headers
1410
+ }, {
1411
+ url: m(a),
1412
+ options: u
1413
+ };
1414
+ },
1415
+ deleteSchool: async (t, n = {}) => {
1416
+ s("deleteSchool", "schoolId", t);
1417
+ let r = "/v1.0/education/schools/{school-id}".replace("{school-id}", encodeURIComponent(String(t))), i = new URL(r, o), a;
1418
+ e && (a = e.baseOptions);
1419
+ let c = {
1420
+ method: "DELETE",
1421
+ ...a,
1422
+ ...n
1423
+ }, u = {};
1424
+ await l(u, e), u.Accept = "application/json", d(i, {});
1425
+ let f = a && a.headers ? a.headers : {};
1426
+ return c.headers = {
1427
+ ...u,
1428
+ ...f,
1429
+ ...n.headers
1430
+ }, {
1431
+ url: m(i),
1432
+ options: c
1433
+ };
1434
+ },
1435
+ deleteUserFromSchool: async (t, n, r = {}) => {
1436
+ s("deleteUserFromSchool", "schoolId", t), s("deleteUserFromSchool", "userId", n);
1437
+ let i = "/v1.0/education/schools/{school-id}/users/{user-id}/$ref".replace("{school-id}", encodeURIComponent(String(t))).replace("{user-id}", encodeURIComponent(String(n))), a = new URL(i, o), c;
1438
+ e && (c = e.baseOptions);
1439
+ let u = {
1440
+ method: "DELETE",
1441
+ ...c,
1442
+ ...r
1443
+ }, f = {};
1444
+ await l(f, e), f.Accept = "application/json", d(a, {});
1445
+ let p = c && c.headers ? c.headers : {};
1446
+ return u.headers = {
1447
+ ...f,
1448
+ ...p,
1449
+ ...r.headers
1450
+ }, {
1451
+ url: m(a),
1452
+ options: u
1453
+ };
1454
+ },
1455
+ getSchool: async (t, n = {}) => {
1456
+ s("getSchool", "schoolId", t);
1457
+ let r = "/v1.0/education/schools/{school-id}".replace("{school-id}", encodeURIComponent(String(t))), i = new URL(r, o), a;
1458
+ e && (a = e.baseOptions);
1459
+ let c = {
1460
+ method: "GET",
1461
+ ...a,
1462
+ ...n
1463
+ }, u = {};
1464
+ await l(u, e), u.Accept = "application/json", d(i, {});
1465
+ let f = a && a.headers ? a.headers : {};
1466
+ return c.headers = {
1467
+ ...u,
1468
+ ...f,
1469
+ ...n.headers
1470
+ }, {
1471
+ url: m(i),
1472
+ options: c
1473
+ };
1474
+ },
1475
+ listSchoolClasses: async (t, n = {}) => {
1476
+ s("listSchoolClasses", "schoolId", t);
1477
+ let r = "/v1.0/education/schools/{school-id}/classes".replace("{school-id}", encodeURIComponent(String(t))), i = new URL(r, o), a;
1478
+ e && (a = e.baseOptions);
1479
+ let c = {
1480
+ method: "GET",
1481
+ ...a,
1482
+ ...n
1483
+ }, u = {};
1484
+ await l(u, e), u.Accept = "application/json", d(i, {});
1485
+ let f = a && a.headers ? a.headers : {};
1486
+ return c.headers = {
1487
+ ...u,
1488
+ ...f,
1489
+ ...n.headers
1490
+ }, {
1491
+ url: m(i),
1492
+ options: c
1493
+ };
1494
+ },
1495
+ listSchoolUsers: async (t, n = {}) => {
1496
+ s("listSchoolUsers", "schoolId", t);
1497
+ let r = "/v1.0/education/schools/{school-id}/users".replace("{school-id}", encodeURIComponent(String(t))), i = new URL(r, o), a;
1498
+ e && (a = e.baseOptions);
1499
+ let c = {
1500
+ method: "GET",
1501
+ ...a,
1502
+ ...n
1503
+ }, u = {};
1504
+ await l(u, e), u.Accept = "application/json", d(i, {});
1505
+ let f = a && a.headers ? a.headers : {};
1506
+ return c.headers = {
1507
+ ...u,
1508
+ ...f,
1509
+ ...n.headers
1510
+ }, {
1511
+ url: m(i),
1512
+ options: c
1513
+ };
1514
+ },
1515
+ listSchools: async (t, n = {}) => {
1516
+ let r = new URL("/v1.0/education/schools", o), i;
1517
+ e && (i = e.baseOptions);
1518
+ let a = {
1519
+ method: "GET",
1520
+ ...i,
1521
+ ...n
1522
+ }, s = {}, c = {};
1523
+ await l(s, e), t !== void 0 && (c.$filter = t), s.Accept = "application/json", d(r, c);
1524
+ let u = i && i.headers ? i.headers : {};
1525
+ return a.headers = {
1526
+ ...s,
1527
+ ...u,
1528
+ ...n.headers
1529
+ }, {
1530
+ url: m(r),
1531
+ options: a
1532
+ };
1533
+ },
1534
+ updateSchool: async (t, n, r = {}) => {
1535
+ s("updateSchool", "schoolId", t), s("updateSchool", "educationSchool", n);
1536
+ let i = "/v1.0/education/schools/{school-id}".replace("{school-id}", encodeURIComponent(String(t))), a = new URL(i, o), c;
1537
+ e && (c = e.baseOptions);
1538
+ let u = {
1539
+ method: "PATCH",
1540
+ ...c,
1541
+ ...r
1542
+ }, f = {};
1543
+ await l(f, e), f["Content-Type"] = "application/json", f.Accept = "application/json", d(a, {});
1544
+ let h = c && c.headers ? c.headers : {};
1545
+ return u.headers = {
1546
+ ...f,
1547
+ ...h,
1548
+ ...r.headers
1549
+ }, u.data = p(n, u, e), {
1550
+ url: m(a),
1551
+ options: u
1552
+ };
1553
+ }
1554
+ };
1555
+ }, M = function(n) {
1556
+ let r = j(n);
1557
+ return {
1558
+ async addClassToSchool(i, o, s) {
1559
+ let c = await r.addClassToSchool(i, o, s), l = n?.serverIndex ?? 0, u = a["EducationSchoolApi.addClassToSchool"]?.[l]?.url;
1560
+ return (r, i) => h(c, e, t, n)(r, u || i);
1561
+ },
1562
+ async addUserToSchool(i, o, s) {
1563
+ let c = await r.addUserToSchool(i, o, s), l = n?.serverIndex ?? 0, u = a["EducationSchoolApi.addUserToSchool"]?.[l]?.url;
1564
+ return (r, i) => h(c, e, t, n)(r, u || i);
1565
+ },
1566
+ async createSchool(i, o) {
1567
+ let s = await r.createSchool(i, o), c = n?.serverIndex ?? 0, l = a["EducationSchoolApi.createSchool"]?.[c]?.url;
1568
+ return (r, i) => h(s, e, t, n)(r, l || i);
1569
+ },
1570
+ async deleteClassFromSchool(i, o, s) {
1571
+ let c = await r.deleteClassFromSchool(i, o, s), l = n?.serverIndex ?? 0, u = a["EducationSchoolApi.deleteClassFromSchool"]?.[l]?.url;
1572
+ return (r, i) => h(c, e, t, n)(r, u || i);
1573
+ },
1574
+ async deleteSchool(i, o) {
1575
+ let s = await r.deleteSchool(i, o), c = n?.serverIndex ?? 0, l = a["EducationSchoolApi.deleteSchool"]?.[c]?.url;
1576
+ return (r, i) => h(s, e, t, n)(r, l || i);
1577
+ },
1578
+ async deleteUserFromSchool(i, o, s) {
1579
+ let c = await r.deleteUserFromSchool(i, o, s), l = n?.serverIndex ?? 0, u = a["EducationSchoolApi.deleteUserFromSchool"]?.[l]?.url;
1580
+ return (r, i) => h(c, e, t, n)(r, u || i);
1581
+ },
1582
+ async getSchool(i, o) {
1583
+ let s = await r.getSchool(i, o), c = n?.serverIndex ?? 0, l = a["EducationSchoolApi.getSchool"]?.[c]?.url;
1584
+ return (r, i) => h(s, e, t, n)(r, l || i);
1585
+ },
1586
+ async listSchoolClasses(i, o) {
1587
+ let s = await r.listSchoolClasses(i, o), c = n?.serverIndex ?? 0, l = a["EducationSchoolApi.listSchoolClasses"]?.[c]?.url;
1588
+ return (r, i) => h(s, e, t, n)(r, l || i);
1589
+ },
1590
+ async listSchoolUsers(i, o) {
1591
+ let s = await r.listSchoolUsers(i, o), c = n?.serverIndex ?? 0, l = a["EducationSchoolApi.listSchoolUsers"]?.[c]?.url;
1592
+ return (r, i) => h(s, e, t, n)(r, l || i);
1593
+ },
1594
+ async listSchools(i, o) {
1595
+ let s = await r.listSchools(i, o), c = n?.serverIndex ?? 0, l = a["EducationSchoolApi.listSchools"]?.[c]?.url;
1596
+ return (r, i) => h(s, e, t, n)(r, l || i);
1597
+ },
1598
+ async updateSchool(i, o, s) {
1599
+ let c = await r.updateSchool(i, o, s), l = n?.serverIndex ?? 0, u = a["EducationSchoolApi.updateSchool"]?.[l]?.url;
1600
+ return (r, i) => h(c, e, t, n)(r, u || i);
1601
+ }
1602
+ };
1603
+ }, De = function(e, t, n) {
1604
+ let r = M(e);
1605
+ return {
1606
+ addClassToSchool(e, i, a) {
1607
+ return r.addClassToSchool(e, i, a).then((e) => e(n, t));
1608
+ },
1609
+ addUserToSchool(e, i, a) {
1610
+ return r.addUserToSchool(e, i, a).then((e) => e(n, t));
1611
+ },
1612
+ createSchool(e, i) {
1613
+ return r.createSchool(e, i).then((e) => e(n, t));
1614
+ },
1615
+ deleteClassFromSchool(e, i, a) {
1616
+ return r.deleteClassFromSchool(e, i, a).then((e) => e(n, t));
1617
+ },
1618
+ deleteSchool(e, i) {
1619
+ return r.deleteSchool(e, i).then((e) => e(n, t));
1620
+ },
1621
+ deleteUserFromSchool(e, i, a) {
1622
+ return r.deleteUserFromSchool(e, i, a).then((e) => e(n, t));
1623
+ },
1624
+ getSchool(e, i) {
1625
+ return r.getSchool(e, i).then((e) => e(n, t));
1626
+ },
1627
+ listSchoolClasses(e, i) {
1628
+ return r.listSchoolClasses(e, i).then((e) => e(n, t));
1629
+ },
1630
+ listSchoolUsers(e, i) {
1631
+ return r.listSchoolUsers(e, i).then((e) => e(n, t));
1632
+ },
1633
+ listSchools(e, i) {
1634
+ return r.listSchools(e, i).then((e) => e(n, t));
1635
+ },
1636
+ updateSchool(e, i, a) {
1637
+ return r.updateSchool(e, i, a).then((e) => e(n, t));
1638
+ }
1639
+ };
1640
+ }, Oe = class extends r {
1641
+ addClassToSchool(e, t, n) {
1642
+ return M(this.configuration).addClassToSchool(e, t, n).then((e) => e(this.axios, this.basePath));
1643
+ }
1644
+ addUserToSchool(e, t, n) {
1645
+ return M(this.configuration).addUserToSchool(e, t, n).then((e) => e(this.axios, this.basePath));
1646
+ }
1647
+ createSchool(e, t) {
1648
+ return M(this.configuration).createSchool(e, t).then((e) => e(this.axios, this.basePath));
1649
+ }
1650
+ deleteClassFromSchool(e, t, n) {
1651
+ return M(this.configuration).deleteClassFromSchool(e, t, n).then((e) => e(this.axios, this.basePath));
1652
+ }
1653
+ deleteSchool(e, t) {
1654
+ return M(this.configuration).deleteSchool(e, t).then((e) => e(this.axios, this.basePath));
1655
+ }
1656
+ deleteUserFromSchool(e, t, n) {
1657
+ return M(this.configuration).deleteUserFromSchool(e, t, n).then((e) => e(this.axios, this.basePath));
1658
+ }
1659
+ getSchool(e, t) {
1660
+ return M(this.configuration).getSchool(e, t).then((e) => e(this.axios, this.basePath));
1661
+ }
1662
+ listSchoolClasses(e, t) {
1663
+ return M(this.configuration).listSchoolClasses(e, t).then((e) => e(this.axios, this.basePath));
1664
+ }
1665
+ listSchoolUsers(e, t) {
1666
+ return M(this.configuration).listSchoolUsers(e, t).then((e) => e(this.axios, this.basePath));
1667
+ }
1668
+ listSchools(e, t) {
1669
+ return M(this.configuration).listSchools(e, t).then((e) => e(this.axios, this.basePath));
1670
+ }
1671
+ updateSchool(e, t, n) {
1672
+ return M(this.configuration).updateSchool(e, t, n).then((e) => e(this.axios, this.basePath));
1673
+ }
1674
+ }, N = function(e) {
1675
+ return {
1676
+ createEducationUser: async (t, n = {}) => {
1677
+ s("createEducationUser", "educationUser", t);
1678
+ let r = new URL("/v1.0/education/users", o), i;
1679
+ e && (i = e.baseOptions);
1680
+ let a = {
1681
+ method: "POST",
1682
+ ...i,
1683
+ ...n
1684
+ }, c = {};
1685
+ await l(c, e), c["Content-Type"] = "application/json", c.Accept = "application/json", d(r, {});
1686
+ let u = i && i.headers ? i.headers : {};
1687
+ return a.headers = {
1688
+ ...c,
1689
+ ...u,
1690
+ ...n.headers
1691
+ }, a.data = p(t, a, e), {
1692
+ url: m(r),
1693
+ options: a
1694
+ };
1695
+ },
1696
+ deleteEducationUser: async (t, n = {}) => {
1697
+ s("deleteEducationUser", "userId", t);
1698
+ let r = "/v1.0/education/users/{user-id}".replace("{user-id}", encodeURIComponent(String(t))), i = new URL(r, o), a;
1699
+ e && (a = e.baseOptions);
1700
+ let c = {
1701
+ method: "DELETE",
1702
+ ...a,
1703
+ ...n
1704
+ }, u = {};
1705
+ await l(u, e), u.Accept = "application/json", d(i, {});
1706
+ let f = a && a.headers ? a.headers : {};
1707
+ return c.headers = {
1708
+ ...u,
1709
+ ...f,
1710
+ ...n.headers
1711
+ }, {
1712
+ url: m(i),
1713
+ options: c
1714
+ };
1715
+ },
1716
+ getEducationUser: async (t, r, i = {}) => {
1717
+ s("getEducationUser", "userId", t);
1718
+ let a = "/v1.0/education/users/{user-id}".replace("{user-id}", encodeURIComponent(String(t))), c = new URL(a, o), u;
1719
+ e && (u = e.baseOptions);
1720
+ let f = {
1721
+ method: "GET",
1722
+ ...u,
1723
+ ...i
1724
+ }, p = {}, h = {};
1725
+ await l(p, e), r && (h.$expand = Array.from(r).join(n.csv)), p.Accept = "application/json", d(c, h);
1726
+ let g = u && u.headers ? u.headers : {};
1727
+ return f.headers = {
1728
+ ...p,
1729
+ ...g,
1730
+ ...i.headers
1731
+ }, {
1732
+ url: m(c),
1733
+ options: f
1734
+ };
1735
+ },
1736
+ listEducationUsers: async (t, r, i, a = {}) => {
1737
+ let s = new URL("/v1.0/education/users", o), c;
1738
+ e && (c = e.baseOptions);
1739
+ let u = {
1740
+ method: "GET",
1741
+ ...c,
1742
+ ...a
1743
+ }, f = {}, p = {};
1744
+ await l(f, e), t !== void 0 && (p.$filter = t), r && (p.$orderby = Array.from(r).join(n.csv)), i && (p.$expand = Array.from(i).join(n.csv)), f.Accept = "application/json", d(s, p);
1745
+ let h = c && c.headers ? c.headers : {};
1746
+ return u.headers = {
1747
+ ...f,
1748
+ ...h,
1749
+ ...a.headers
1750
+ }, {
1751
+ url: m(s),
1752
+ options: u
1753
+ };
1754
+ },
1755
+ updateEducationUser: async (t, n, r = {}) => {
1756
+ s("updateEducationUser", "userId", t), s("updateEducationUser", "educationUser", n);
1757
+ let i = "/v1.0/education/users/{user-id}".replace("{user-id}", encodeURIComponent(String(t))), a = new URL(i, o), c;
1758
+ e && (c = e.baseOptions);
1759
+ let u = {
1760
+ method: "PATCH",
1761
+ ...c,
1762
+ ...r
1763
+ }, f = {};
1764
+ await l(f, e), f["Content-Type"] = "application/json", f.Accept = "application/json", d(a, {});
1765
+ let h = c && c.headers ? c.headers : {};
1766
+ return u.headers = {
1767
+ ...f,
1768
+ ...h,
1769
+ ...r.headers
1770
+ }, u.data = p(n, u, e), {
1771
+ url: m(a),
1772
+ options: u
1773
+ };
1774
+ }
1775
+ };
1776
+ }, P = function(n) {
1777
+ let r = N(n);
1778
+ return {
1779
+ async createEducationUser(i, o) {
1780
+ let s = await r.createEducationUser(i, o), c = n?.serverIndex ?? 0, l = a["EducationUserApi.createEducationUser"]?.[c]?.url;
1781
+ return (r, i) => h(s, e, t, n)(r, l || i);
1782
+ },
1783
+ async deleteEducationUser(i, o) {
1784
+ let s = await r.deleteEducationUser(i, o), c = n?.serverIndex ?? 0, l = a["EducationUserApi.deleteEducationUser"]?.[c]?.url;
1785
+ return (r, i) => h(s, e, t, n)(r, l || i);
1786
+ },
1787
+ async getEducationUser(i, o, s) {
1788
+ let c = await r.getEducationUser(i, o, s), l = n?.serverIndex ?? 0, u = a["EducationUserApi.getEducationUser"]?.[l]?.url;
1789
+ return (r, i) => h(c, e, t, n)(r, u || i);
1790
+ },
1791
+ async listEducationUsers(i, o, s, c) {
1792
+ let l = await r.listEducationUsers(i, o, s, c), u = n?.serverIndex ?? 0, d = a["EducationUserApi.listEducationUsers"]?.[u]?.url;
1793
+ return (r, i) => h(l, e, t, n)(r, d || i);
1794
+ },
1795
+ async updateEducationUser(i, o, s) {
1796
+ let c = await r.updateEducationUser(i, o, s), l = n?.serverIndex ?? 0, u = a["EducationUserApi.updateEducationUser"]?.[l]?.url;
1797
+ return (r, i) => h(c, e, t, n)(r, u || i);
1798
+ }
1799
+ };
1800
+ }, ke = function(e, t, n) {
1801
+ let r = P(e);
1802
+ return {
1803
+ createEducationUser(e, i) {
1804
+ return r.createEducationUser(e, i).then((e) => e(n, t));
1805
+ },
1806
+ deleteEducationUser(e, i) {
1807
+ return r.deleteEducationUser(e, i).then((e) => e(n, t));
1808
+ },
1809
+ getEducationUser(e, i, a) {
1810
+ return r.getEducationUser(e, i, a).then((e) => e(n, t));
1811
+ },
1812
+ listEducationUsers(e, i, a, o) {
1813
+ return r.listEducationUsers(e, i, a, o).then((e) => e(n, t));
1814
+ },
1815
+ updateEducationUser(e, i, a) {
1816
+ return r.updateEducationUser(e, i, a).then((e) => e(n, t));
1817
+ }
1818
+ };
1819
+ }, Ae = class extends r {
1820
+ createEducationUser(e, t) {
1821
+ return P(this.configuration).createEducationUser(e, t).then((e) => e(this.axios, this.basePath));
1822
+ }
1823
+ deleteEducationUser(e, t) {
1824
+ return P(this.configuration).deleteEducationUser(e, t).then((e) => e(this.axios, this.basePath));
1825
+ }
1826
+ getEducationUser(e, t, n) {
1827
+ return P(this.configuration).getEducationUser(e, t, n).then((e) => e(this.axios, this.basePath));
1828
+ }
1829
+ listEducationUsers(e, t, n, r) {
1830
+ return P(this.configuration).listEducationUsers(e, t, n, r).then((e) => e(this.axios, this.basePath));
1831
+ }
1832
+ updateEducationUser(e, t, n) {
1833
+ return P(this.configuration).updateEducationUser(e, t, n).then((e) => e(this.axios, this.basePath));
1834
+ }
1835
+ }, je = { MemberOf: "memberOf" }, Me = {
1836
+ DisplayName: "displayName",
1837
+ DisplayNameDesc: "displayName desc",
1838
+ Mail: "mail",
1839
+ MailDesc: "mail desc",
1840
+ OnPremisesSamAccountName: "onPremisesSamAccountName",
1841
+ OnPremisesSamAccountNameDesc: "onPremisesSamAccountName desc"
1842
+ }, Ne = { MemberOf: "memberOf" }, F = function(e) {
1843
+ return {
1844
+ addMember: async (t, n, r = {}) => {
1845
+ s("addMember", "groupId", t), s("addMember", "memberReference", n);
1846
+ let i = "/v1.0/groups/{group-id}/members/$ref".replace("{group-id}", encodeURIComponent(String(t))), a = new URL(i, o), l;
1847
+ e && (l = e.baseOptions);
1848
+ let u = {
1849
+ method: "POST",
1850
+ ...l,
1851
+ ...r
1852
+ }, f = {};
1853
+ c(u, e), f["Content-Type"] = "application/json", f.Accept = "application/json", d(a, {});
1854
+ let h = l && l.headers ? l.headers : {};
1855
+ return u.headers = {
1856
+ ...f,
1857
+ ...h,
1858
+ ...r.headers
1859
+ }, u.data = p(n, u, e), {
1860
+ url: m(a),
1861
+ options: u
1862
+ };
1863
+ },
1864
+ deleteGroup: async (t, n, r = {}) => {
1865
+ s("deleteGroup", "groupId", t);
1866
+ let i = "/v1.0/groups/{group-id}".replace("{group-id}", encodeURIComponent(String(t))), a = new URL(i, o), l;
1867
+ e && (l = e.baseOptions);
1868
+ let u = {
1869
+ method: "DELETE",
1870
+ ...l,
1871
+ ...r
1872
+ }, f = {};
1873
+ c(u, e), f.Accept = "application/json", n != null && (f["If-Match"] = String(n)), d(a, {});
1874
+ let p = l && l.headers ? l.headers : {};
1875
+ return u.headers = {
1876
+ ...f,
1877
+ ...p,
1878
+ ...r.headers
1879
+ }, {
1880
+ url: m(a),
1881
+ options: u
1882
+ };
1883
+ },
1884
+ deleteMember: async (t, n, r, i = {}) => {
1885
+ s("deleteMember", "groupId", t), s("deleteMember", "directoryObjectId", n);
1886
+ let a = "/v1.0/groups/{group-id}/members/{directory-object-id}/$ref".replace("{group-id}", encodeURIComponent(String(t))).replace("{directory-object-id}", encodeURIComponent(String(n))), l = new URL(a, o), u;
1887
+ e && (u = e.baseOptions);
1888
+ let f = {
1889
+ method: "DELETE",
1890
+ ...u,
1891
+ ...i
1892
+ }, p = {};
1893
+ c(f, e), p.Accept = "application/json", r != null && (p["If-Match"] = String(r)), d(l, {});
1894
+ let h = u && u.headers ? u.headers : {};
1895
+ return f.headers = {
1896
+ ...p,
1897
+ ...h,
1898
+ ...i.headers
1899
+ }, {
1900
+ url: m(l),
1901
+ options: f
1902
+ };
1903
+ },
1904
+ getGroup: async (t, r, i, a = {}) => {
1905
+ s("getGroup", "groupId", t);
1906
+ let l = "/v1.0/groups/{group-id}".replace("{group-id}", encodeURIComponent(String(t))), u = new URL(l, o), f;
1907
+ e && (f = e.baseOptions);
1908
+ let p = {
1909
+ method: "GET",
1910
+ ...f,
1911
+ ...a
1912
+ }, h = {}, g = {};
1913
+ c(p, e), r && (g.$select = Array.from(r).join(n.csv)), i && (g.$expand = Array.from(i).join(n.csv)), h.Accept = "application/json", d(u, g);
1914
+ let _ = f && f.headers ? f.headers : {};
1915
+ return p.headers = {
1916
+ ...h,
1917
+ ..._,
1918
+ ...a.headers
1919
+ }, {
1920
+ url: m(u),
1921
+ options: p
1922
+ };
1923
+ },
1924
+ listMembers: async (t, n = {}) => {
1925
+ s("listMembers", "groupId", t);
1926
+ let r = "/v1.0/groups/{group-id}/members".replace("{group-id}", encodeURIComponent(String(t))), i = new URL(r, o), a;
1927
+ e && (a = e.baseOptions);
1928
+ let l = {
1929
+ method: "GET",
1930
+ ...a,
1931
+ ...n
1932
+ }, u = {};
1933
+ c(l, e), u.Accept = "application/json", d(i, {});
1934
+ let f = a && a.headers ? a.headers : {};
1935
+ return l.headers = {
1936
+ ...u,
1937
+ ...f,
1938
+ ...n.headers
1939
+ }, {
1940
+ url: m(i),
1941
+ options: l
1942
+ };
1943
+ },
1944
+ updateGroup: async (t, n, r = {}) => {
1945
+ s("updateGroup", "groupId", t), s("updateGroup", "group", n);
1946
+ let i = "/v1.0/groups/{group-id}".replace("{group-id}", encodeURIComponent(String(t))), a = new URL(i, o), l;
1947
+ e && (l = e.baseOptions);
1948
+ let u = {
1949
+ method: "PATCH",
1950
+ ...l,
1951
+ ...r
1952
+ }, f = {};
1953
+ c(u, e), f["Content-Type"] = "application/json", f.Accept = "application/json", d(a, {});
1954
+ let h = l && l.headers ? l.headers : {};
1955
+ return u.headers = {
1956
+ ...f,
1957
+ ...h,
1958
+ ...r.headers
1959
+ }, u.data = p(n, u, e), {
1960
+ url: m(a),
1961
+ options: u
1962
+ };
1963
+ }
1964
+ };
1965
+ }, I = function(n) {
1966
+ let r = F(n);
1967
+ return {
1968
+ async addMember(i, o, s) {
1969
+ let c = await r.addMember(i, o, s), l = n?.serverIndex ?? 0, u = a["GroupApi.addMember"]?.[l]?.url;
1970
+ return (r, i) => h(c, e, t, n)(r, u || i);
1971
+ },
1972
+ async deleteGroup(i, o, s) {
1973
+ let c = await r.deleteGroup(i, o, s), l = n?.serverIndex ?? 0, u = a["GroupApi.deleteGroup"]?.[l]?.url;
1974
+ return (r, i) => h(c, e, t, n)(r, u || i);
1975
+ },
1976
+ async deleteMember(i, o, s, c) {
1977
+ let l = await r.deleteMember(i, o, s, c), u = n?.serverIndex ?? 0, d = a["GroupApi.deleteMember"]?.[u]?.url;
1978
+ return (r, i) => h(l, e, t, n)(r, d || i);
1979
+ },
1980
+ async getGroup(i, o, s, c) {
1981
+ let l = await r.getGroup(i, o, s, c), u = n?.serverIndex ?? 0, d = a["GroupApi.getGroup"]?.[u]?.url;
1982
+ return (r, i) => h(l, e, t, n)(r, d || i);
1983
+ },
1984
+ async listMembers(i, o) {
1985
+ let s = await r.listMembers(i, o), c = n?.serverIndex ?? 0, l = a["GroupApi.listMembers"]?.[c]?.url;
1986
+ return (r, i) => h(s, e, t, n)(r, l || i);
1987
+ },
1988
+ async updateGroup(i, o, s) {
1989
+ let c = await r.updateGroup(i, o, s), l = n?.serverIndex ?? 0, u = a["GroupApi.updateGroup"]?.[l]?.url;
1990
+ return (r, i) => h(c, e, t, n)(r, u || i);
1991
+ }
1992
+ };
1993
+ }, Pe = function(e, t, n) {
1994
+ let r = I(e);
1995
+ return {
1996
+ addMember(e, i, a) {
1997
+ return r.addMember(e, i, a).then((e) => e(n, t));
1998
+ },
1999
+ deleteGroup(e, i, a) {
2000
+ return r.deleteGroup(e, i, a).then((e) => e(n, t));
2001
+ },
2002
+ deleteMember(e, i, a, o) {
2003
+ return r.deleteMember(e, i, a, o).then((e) => e(n, t));
2004
+ },
2005
+ getGroup(e, i, a, o) {
2006
+ return r.getGroup(e, i, a, o).then((e) => e(n, t));
2007
+ },
2008
+ listMembers(e, i) {
2009
+ return r.listMembers(e, i).then((e) => e(n, t));
2010
+ },
2011
+ updateGroup(e, i, a) {
2012
+ return r.updateGroup(e, i, a).then((e) => e(n, t));
2013
+ }
2014
+ };
2015
+ }, Fe = class extends r {
2016
+ addMember(e, t, n) {
2017
+ return I(this.configuration).addMember(e, t, n).then((e) => e(this.axios, this.basePath));
2018
+ }
2019
+ deleteGroup(e, t, n) {
2020
+ return I(this.configuration).deleteGroup(e, t, n).then((e) => e(this.axios, this.basePath));
2021
+ }
2022
+ deleteMember(e, t, n, r) {
2023
+ return I(this.configuration).deleteMember(e, t, n, r).then((e) => e(this.axios, this.basePath));
2024
+ }
2025
+ getGroup(e, t, n, r) {
2026
+ return I(this.configuration).getGroup(e, t, n, r).then((e) => e(this.axios, this.basePath));
2027
+ }
2028
+ listMembers(e, t) {
2029
+ return I(this.configuration).listMembers(e, t).then((e) => e(this.axios, this.basePath));
2030
+ }
2031
+ updateGroup(e, t, n) {
2032
+ return I(this.configuration).updateGroup(e, t, n).then((e) => e(this.axios, this.basePath));
2033
+ }
2034
+ }, Ie = {
2035
+ Id: "id",
2036
+ Description: "description",
2037
+ DisplayName: "displayName",
2038
+ Members: "members"
2039
+ }, Le = { Members: "members" }, Re = function(e) {
2040
+ return {
2041
+ createGroup: async (t, n = {}) => {
2042
+ s("createGroup", "group", t);
2043
+ let r = new URL("/v1.0/groups", o), i;
2044
+ e && (i = e.baseOptions);
2045
+ let a = {
2046
+ method: "POST",
2047
+ ...i,
2048
+ ...n
2049
+ }, l = {};
2050
+ c(a, e), l["Content-Type"] = "application/json", l.Accept = "application/json", d(r, {});
2051
+ let u = i && i.headers ? i.headers : {};
2052
+ return a.headers = {
2053
+ ...l,
2054
+ ...u,
2055
+ ...n.headers
2056
+ }, a.data = p(t, a, e), {
2057
+ url: m(r),
2058
+ options: a
2059
+ };
2060
+ },
2061
+ listGroups: async (t, r, i, a, s = {}) => {
2062
+ let l = new URL("/v1.0/groups", o), u;
2063
+ e && (u = e.baseOptions);
2064
+ let f = {
2065
+ method: "GET",
2066
+ ...u,
2067
+ ...s
2068
+ }, p = {}, h = {};
2069
+ c(f, e), t !== void 0 && (h.$search = t), r && (h.$orderby = Array.from(r).join(n.csv)), i && (h.$select = Array.from(i).join(n.csv)), a && (h.$expand = Array.from(a).join(n.csv)), p.Accept = "application/json", d(l, h);
2070
+ let g = u && u.headers ? u.headers : {};
2071
+ return f.headers = {
2072
+ ...p,
2073
+ ...g,
2074
+ ...s.headers
2075
+ }, {
2076
+ url: m(l),
2077
+ options: f
2078
+ };
2079
+ }
2080
+ };
2081
+ }, L = function(n) {
2082
+ let r = Re(n);
2083
+ return {
2084
+ async createGroup(i, o) {
2085
+ let s = await r.createGroup(i, o), c = n?.serverIndex ?? 0, l = a["GroupsApi.createGroup"]?.[c]?.url;
2086
+ return (r, i) => h(s, e, t, n)(r, l || i);
2087
+ },
2088
+ async listGroups(i, o, s, c, l) {
2089
+ let u = await r.listGroups(i, o, s, c, l), d = n?.serverIndex ?? 0, f = a["GroupsApi.listGroups"]?.[d]?.url;
2090
+ return (r, i) => h(u, e, t, n)(r, f || i);
2091
+ }
2092
+ };
2093
+ }, ze = function(e, t, n) {
2094
+ let r = L(e);
2095
+ return {
2096
+ createGroup(e, i) {
2097
+ return r.createGroup(e, i).then((e) => e(n, t));
2098
+ },
2099
+ listGroups(e, i, a, o, s) {
2100
+ return r.listGroups(e, i, a, o, s).then((e) => e(n, t));
2101
+ }
2102
+ };
2103
+ }, Be = class extends r {
2104
+ createGroup(e, t) {
2105
+ return L(this.configuration).createGroup(e, t).then((e) => e(this.axios, this.basePath));
2106
+ }
2107
+ listGroups(e, t, n, r, i) {
2108
+ return L(this.configuration).listGroups(e, t, n, r, i).then((e) => e(this.axios, this.basePath));
2109
+ }
2110
+ }, Ve = {
2111
+ DisplayName: "displayName",
2112
+ DisplayNameDesc: "displayName desc"
2113
+ }, He = {
2114
+ Id: "id",
2115
+ Description: "description",
2116
+ DisplayName: "displayName",
2117
+ Mail: "mail",
2118
+ Members: "members"
2119
+ }, Ue = { Members: "members" }, We = function(e) {
2120
+ return {
2121
+ createInvitation: async (t, n = {}) => {
2122
+ let r = new URL("/v1.0/invitations", o), i;
2123
+ e && (i = e.baseOptions);
2124
+ let a = {
2125
+ method: "POST",
2126
+ ...i,
2127
+ ...n
2128
+ }, s = {};
2129
+ c(a, e), s["Content-Type"] = "application/json", s.Accept = "application/json", d(r, {});
2130
+ let l = i && i.headers ? i.headers : {};
2131
+ return a.headers = {
2132
+ ...s,
2133
+ ...l,
2134
+ ...n.headers
2135
+ }, a.data = p(t, a, e), {
2136
+ url: m(r),
2137
+ options: a
2138
+ };
2139
+ },
2140
+ getInvitation: async (t, n = {}) => {
2141
+ s("getInvitation", "invitationId", t);
2142
+ let r = "/v1.0/invitations/{invitation-id}".replace("{invitation-id}", encodeURIComponent(String(t))), i = new URL(r, o), a;
2143
+ e && (a = e.baseOptions);
2144
+ let l = {
2145
+ method: "GET",
2146
+ ...a,
2147
+ ...n
2148
+ }, u = {};
2149
+ c(l, e), u.Accept = "application/json", d(i, {});
2150
+ let f = a && a.headers ? a.headers : {};
2151
+ return l.headers = {
2152
+ ...u,
2153
+ ...f,
2154
+ ...n.headers
2155
+ }, {
2156
+ url: m(i),
2157
+ options: l
2158
+ };
2159
+ },
2160
+ listInvitations: async (t = {}) => {
2161
+ let n = new URL("/v1.0/invitations", o), r;
2162
+ e && (r = e.baseOptions);
2163
+ let i = {
2164
+ method: "GET",
2165
+ ...r,
2166
+ ...t
2167
+ }, a = {};
2168
+ c(i, e), a.Accept = "application/json", d(n, {});
2169
+ let s = r && r.headers ? r.headers : {};
2170
+ return i.headers = {
2171
+ ...a,
2172
+ ...s,
2173
+ ...t.headers
2174
+ }, {
2175
+ url: m(n),
2176
+ options: i
2177
+ };
2178
+ }
2179
+ };
2180
+ }, R = function(n) {
2181
+ let r = We(n);
2182
+ return {
2183
+ async createInvitation(i, o) {
2184
+ let s = await r.createInvitation(i, o), c = n?.serverIndex ?? 0, l = a["InvitationsApi.createInvitation"]?.[c]?.url;
2185
+ return (r, i) => h(s, e, t, n)(r, l || i);
2186
+ },
2187
+ async getInvitation(i, o) {
2188
+ let s = await r.getInvitation(i, o), c = n?.serverIndex ?? 0, l = a["InvitationsApi.getInvitation"]?.[c]?.url;
2189
+ return (r, i) => h(s, e, t, n)(r, l || i);
2190
+ },
2191
+ async listInvitations(i) {
2192
+ let o = await r.listInvitations(i), s = n?.serverIndex ?? 0, c = a["InvitationsApi.listInvitations"]?.[s]?.url;
2193
+ return (r, i) => h(o, e, t, n)(r, c || i);
2194
+ }
2195
+ };
2196
+ }, Ge = function(e, t, n) {
2197
+ let r = R(e);
2198
+ return {
2199
+ createInvitation(e, i) {
2200
+ return r.createInvitation(e, i).then((e) => e(n, t));
2201
+ },
2202
+ getInvitation(e, i) {
2203
+ return r.getInvitation(e, i).then((e) => e(n, t));
2204
+ },
2205
+ listInvitations(e) {
2206
+ return r.listInvitations(e).then((e) => e(n, t));
2207
+ }
2208
+ };
2209
+ }, Ke = class extends r {
2210
+ createInvitation(e, t) {
2211
+ return R(this.configuration).createInvitation(e, t).then((e) => e(this.axios, this.basePath));
2212
+ }
2213
+ getInvitation(e, t) {
2214
+ return R(this.configuration).getInvitation(e, t).then((e) => e(this.axios, this.basePath));
2215
+ }
2216
+ listInvitations(e) {
2217
+ return R(this.configuration).listInvitations(e).then((e) => e(this.axios, this.basePath));
2218
+ }
2219
+ }, qe = function(e) {
2220
+ return { changeOwnPassword: async (t, n = {}) => {
2221
+ s("changeOwnPassword", "passwordChange", t);
2222
+ let r = new URL("/v1.0/me/changePassword", o), i;
2223
+ e && (i = e.baseOptions);
2224
+ let a = {
2225
+ method: "POST",
2226
+ ...i,
2227
+ ...n
2228
+ }, l = {};
2229
+ c(a, e), l["Content-Type"] = "application/json", l.Accept = "application/json", d(r, {});
2230
+ let u = i && i.headers ? i.headers : {};
2231
+ return a.headers = {
2232
+ ...l,
2233
+ ...u,
2234
+ ...n.headers
2235
+ }, a.data = p(t, a, e), {
2236
+ url: m(r),
2237
+ options: a
2238
+ };
2239
+ } };
2240
+ }, z = function(n) {
2241
+ let r = qe(n);
2242
+ return { async changeOwnPassword(i, o) {
2243
+ let s = await r.changeOwnPassword(i, o), c = n?.serverIndex ?? 0, l = a["MeChangepasswordApi.changeOwnPassword"]?.[c]?.url;
2244
+ return (r, i) => h(s, e, t, n)(r, l || i);
2245
+ } };
2246
+ }, Je = function(e, t, n) {
2247
+ let r = z(e);
2248
+ return { changeOwnPassword(e, i) {
2249
+ return r.changeOwnPassword(e, i).then((e) => e(n, t));
2250
+ } };
2251
+ }, Ye = class extends r {
2252
+ changeOwnPassword(e, t) {
2253
+ return z(this.configuration).changeOwnPassword(e, t).then((e) => e(this.axios, this.basePath));
2254
+ }
2255
+ }, Xe = function(e) {
2256
+ return {
2257
+ followDriveItem: async (t, n = {}) => {
2258
+ s("followDriveItem", "itemId", t);
2259
+ let r = "/v1.0/me/drive/items/{item-id}/follow".replace("{item-id}", encodeURIComponent(String(t))), i = new URL(r, o), a;
2260
+ e && (a = e.baseOptions);
2261
+ let l = {
2262
+ method: "POST",
2263
+ ...a,
2264
+ ...n
2265
+ }, u = {};
2266
+ c(l, e), u.Accept = "application/json", d(i, {});
2267
+ let f = a && a.headers ? a.headers : {};
2268
+ return l.headers = {
2269
+ ...u,
2270
+ ...f,
2271
+ ...n.headers
2272
+ }, {
2273
+ url: m(i),
2274
+ options: l
2275
+ };
2276
+ },
2277
+ getHome: async (t = {}) => {
2278
+ let n = new URL("/v1.0/me/drive", o), r;
2279
+ e && (r = e.baseOptions);
2280
+ let i = {
2281
+ method: "GET",
2282
+ ...r,
2283
+ ...t
2284
+ }, a = {};
2285
+ c(i, e), a.Accept = "application/json", d(n, {});
2286
+ let s = r && r.headers ? r.headers : {};
2287
+ return i.headers = {
2288
+ ...a,
2289
+ ...s,
2290
+ ...t.headers
2291
+ }, {
2292
+ url: m(n),
2293
+ options: i
2294
+ };
2295
+ },
2296
+ listSharedByMe: async (t, r = {}) => {
2297
+ let i = new URL("/v1beta1/me/drive/sharedByMe", o), a;
2298
+ e && (a = e.baseOptions);
2299
+ let s = {
2300
+ method: "GET",
2301
+ ...a,
2302
+ ...r
2303
+ }, l = {}, u = {};
2304
+ c(s, e), t && (u.$expand = Array.from(t).join(n.csv)), l.Accept = "application/json", d(i, u);
2305
+ let f = a && a.headers ? a.headers : {};
2306
+ return s.headers = {
2307
+ ...l,
2308
+ ...f,
2309
+ ...r.headers
2310
+ }, {
2311
+ url: m(i),
2312
+ options: s
2313
+ };
2314
+ },
2315
+ listSharedWithMe: async (t, r = {}) => {
2316
+ let i = new URL("/v1beta1/me/drive/sharedWithMe", o), a;
2317
+ e && (a = e.baseOptions);
2318
+ let s = {
2319
+ method: "GET",
2320
+ ...a,
2321
+ ...r
2322
+ }, l = {}, u = {};
2323
+ c(s, e), t && (u.$expand = Array.from(t).join(n.csv)), l.Accept = "application/json", d(i, u);
2324
+ let f = a && a.headers ? a.headers : {};
2325
+ return s.headers = {
2326
+ ...l,
2327
+ ...f,
2328
+ ...r.headers
2329
+ }, {
2330
+ url: m(i),
2331
+ options: s
2332
+ };
2333
+ },
2334
+ unfollowDriveItem: async (t, n = {}) => {
2335
+ s("unfollowDriveItem", "itemId", t);
2336
+ let r = "/v1.0/me/drive/following/{item-id}".replace("{item-id}", encodeURIComponent(String(t))), i = new URL(r, o), a;
2337
+ e && (a = e.baseOptions);
2338
+ let l = {
2339
+ method: "DELETE",
2340
+ ...a,
2341
+ ...n
2342
+ }, u = {};
2343
+ c(l, e), u.Accept = "application/json", d(i, {});
2344
+ let f = a && a.headers ? a.headers : {};
2345
+ return l.headers = {
2346
+ ...u,
2347
+ ...f,
2348
+ ...n.headers
2349
+ }, {
2350
+ url: m(i),
2351
+ options: l
2352
+ };
2353
+ }
2354
+ };
2355
+ }, B = function(n) {
2356
+ let r = Xe(n);
2357
+ return {
2358
+ async followDriveItem(i, o) {
2359
+ let s = await r.followDriveItem(i, o), c = n?.serverIndex ?? 0, l = a["MeDriveApi.followDriveItem"]?.[c]?.url;
2360
+ return (r, i) => h(s, e, t, n)(r, l || i);
2361
+ },
2362
+ async getHome(i) {
2363
+ let o = await r.getHome(i), s = n?.serverIndex ?? 0, c = a["MeDriveApi.getHome"]?.[s]?.url;
2364
+ return (r, i) => h(o, e, t, n)(r, c || i);
2365
+ },
2366
+ async listSharedByMe(i, o) {
2367
+ let s = await r.listSharedByMe(i, o), c = n?.serverIndex ?? 0, l = a["MeDriveApi.listSharedByMe"]?.[c]?.url;
2368
+ return (r, i) => h(s, e, t, n)(r, l || i);
2369
+ },
2370
+ async listSharedWithMe(i, o) {
2371
+ let s = await r.listSharedWithMe(i, o), c = n?.serverIndex ?? 0, l = a["MeDriveApi.listSharedWithMe"]?.[c]?.url;
2372
+ return (r, i) => h(s, e, t, n)(r, l || i);
2373
+ },
2374
+ async unfollowDriveItem(i, o) {
2375
+ let s = await r.unfollowDriveItem(i, o), c = n?.serverIndex ?? 0, l = a["MeDriveApi.unfollowDriveItem"]?.[c]?.url;
2376
+ return (r, i) => h(s, e, t, n)(r, l || i);
2377
+ }
2378
+ };
2379
+ }, Ze = function(e, t, n) {
2380
+ let r = B(e);
2381
+ return {
2382
+ followDriveItem(e, i) {
2383
+ return r.followDriveItem(e, i).then((e) => e(n, t));
2384
+ },
2385
+ getHome(e) {
2386
+ return r.getHome(e).then((e) => e(n, t));
2387
+ },
2388
+ listSharedByMe(e, i) {
2389
+ return r.listSharedByMe(e, i).then((e) => e(n, t));
2390
+ },
2391
+ listSharedWithMe(e, i) {
2392
+ return r.listSharedWithMe(e, i).then((e) => e(n, t));
2393
+ },
2394
+ unfollowDriveItem(e, i) {
2395
+ return r.unfollowDriveItem(e, i).then((e) => e(n, t));
2396
+ }
2397
+ };
2398
+ }, Qe = class extends r {
2399
+ followDriveItem(e, t) {
2400
+ return B(this.configuration).followDriveItem(e, t).then((e) => e(this.axios, this.basePath));
2401
+ }
2402
+ getHome(e) {
2403
+ return B(this.configuration).getHome(e).then((e) => e(this.axios, this.basePath));
2404
+ }
2405
+ listSharedByMe(e, t) {
2406
+ return B(this.configuration).listSharedByMe(e, t).then((e) => e(this.axios, this.basePath));
2407
+ }
2408
+ listSharedWithMe(e, t) {
2409
+ return B(this.configuration).listSharedWithMe(e, t).then((e) => e(this.axios, this.basePath));
2410
+ }
2411
+ unfollowDriveItem(e, t) {
2412
+ return B(this.configuration).unfollowDriveItem(e, t).then((e) => e(this.axios, this.basePath));
2413
+ }
2414
+ }, $e = { Thumbnails: "thumbnails" }, et = { Thumbnails: "thumbnails" }, tt = function(e) {
2415
+ return { homeGetRoot: async (t = {}) => {
2416
+ let n = new URL("/v1.0/me/drive/root", o), r;
2417
+ e && (r = e.baseOptions);
2418
+ let i = {
2419
+ method: "GET",
2420
+ ...r,
2421
+ ...t
2422
+ }, a = {};
2423
+ c(i, e), a.Accept = "application/json", d(n, {});
2424
+ let s = r && r.headers ? r.headers : {};
2425
+ return i.headers = {
2426
+ ...a,
2427
+ ...s,
2428
+ ...t.headers
2429
+ }, {
2430
+ url: m(n),
2431
+ options: i
2432
+ };
2433
+ } };
2434
+ }, V = function(n) {
2435
+ let r = tt(n);
2436
+ return { async homeGetRoot(i) {
2437
+ let o = await r.homeGetRoot(i), s = n?.serverIndex ?? 0, c = a["MeDriveRootApi.homeGetRoot"]?.[s]?.url;
2438
+ return (r, i) => h(o, e, t, n)(r, c || i);
2439
+ } };
2440
+ }, nt = function(e, t, n) {
2441
+ let r = V(e);
2442
+ return { homeGetRoot(e) {
2443
+ return r.homeGetRoot(e).then((e) => e(n, t));
2444
+ } };
2445
+ }, rt = class extends r {
2446
+ homeGetRoot(e) {
2447
+ return V(this.configuration).homeGetRoot(e).then((e) => e(this.axios, this.basePath));
2448
+ }
2449
+ }, it = function(e) {
2450
+ return { homeGetChildren: async (t = {}) => {
2451
+ let n = new URL("/v1.0/me/drive/root/children", o), r;
2452
+ e && (r = e.baseOptions);
2453
+ let i = {
2454
+ method: "GET",
2455
+ ...r,
2456
+ ...t
2457
+ }, a = {};
2458
+ c(i, e), a.Accept = "application/json", d(n, {});
2459
+ let s = r && r.headers ? r.headers : {};
2460
+ return i.headers = {
2461
+ ...a,
2462
+ ...s,
2463
+ ...t.headers
2464
+ }, {
2465
+ url: m(n),
2466
+ options: i
2467
+ };
2468
+ } };
2469
+ }, H = function(n) {
2470
+ let r = it(n);
2471
+ return { async homeGetChildren(i) {
2472
+ let o = await r.homeGetChildren(i), s = n?.serverIndex ?? 0, c = a["MeDriveRootChildrenApi.homeGetChildren"]?.[s]?.url;
2473
+ return (r, i) => h(o, e, t, n)(r, c || i);
2474
+ } };
2475
+ }, at = function(e, t, n) {
2476
+ let r = H(e);
2477
+ return { homeGetChildren(e) {
2478
+ return r.homeGetChildren(e).then((e) => e(n, t));
2479
+ } };
2480
+ }, ot = class extends r {
2481
+ homeGetChildren(e) {
2482
+ return H(this.configuration).homeGetChildren(e).then((e) => e(this.axios, this.basePath));
2483
+ }
2484
+ }, st = function(e) {
2485
+ return {
2486
+ listMyDrives: async (t, n, r = {}) => {
2487
+ let i = new URL("/v1.0/me/drives", o), a;
2488
+ e && (a = e.baseOptions);
2489
+ let s = {
2490
+ method: "GET",
2491
+ ...a,
2492
+ ...r
2493
+ }, l = {}, u = {};
2494
+ c(s, e), t !== void 0 && (u.$orderby = t), n !== void 0 && (u.$filter = n), l.Accept = "application/json", d(i, u);
2495
+ let f = a && a.headers ? a.headers : {};
2496
+ return s.headers = {
2497
+ ...l,
2498
+ ...f,
2499
+ ...r.headers
2500
+ }, {
2501
+ url: m(i),
2502
+ options: s
2503
+ };
2504
+ },
2505
+ listMyDrivesBeta: async (t, r, i, a, s = {}) => {
2506
+ let l = new URL("/v1beta1/me/drives", o), u;
2507
+ e && (u = e.baseOptions);
2508
+ let f = {
2509
+ method: "GET",
2510
+ ...u,
2511
+ ...s
2512
+ }, p = {}, h = {};
2513
+ c(f, e), t !== void 0 && (h.$orderby = t), r !== void 0 && (h.$filter = r), i !== void 0 && (h.$expand = i), a && (h.$select = Array.from(a).join(n.csv)), p.Accept = "application/json", d(l, h);
2514
+ let g = u && u.headers ? u.headers : {};
2515
+ return f.headers = {
2516
+ ...p,
2517
+ ...g,
2518
+ ...s.headers
2519
+ }, {
2520
+ url: m(l),
2521
+ options: f
2522
+ };
2523
+ }
2524
+ };
2525
+ }, U = function(n) {
2526
+ let r = st(n);
2527
+ return {
2528
+ async listMyDrives(i, o, s) {
2529
+ let c = await r.listMyDrives(i, o, s), l = n?.serverIndex ?? 0, u = a["MeDrivesApi.listMyDrives"]?.[l]?.url;
2530
+ return (r, i) => h(c, e, t, n)(r, u || i);
2531
+ },
2532
+ async listMyDrivesBeta(i, o, s, c, l) {
2533
+ let u = await r.listMyDrivesBeta(i, o, s, c, l), d = n?.serverIndex ?? 0, f = a["MeDrivesApi.listMyDrivesBeta"]?.[d]?.url;
2534
+ return (r, i) => h(u, e, t, n)(r, f || i);
2535
+ }
2536
+ };
2537
+ }, ct = function(e, t, n) {
2538
+ let r = U(e);
2539
+ return {
2540
+ listMyDrives(e, i, a) {
2541
+ return r.listMyDrives(e, i, a).then((e) => e(n, t));
2542
+ },
2543
+ listMyDrivesBeta(e, i, a, o, s) {
2544
+ return r.listMyDrivesBeta(e, i, a, o, s).then((e) => e(n, t));
2545
+ }
2546
+ };
2547
+ }, lt = class extends r {
2548
+ listMyDrives(e, t, n) {
2549
+ return U(this.configuration).listMyDrives(e, t, n).then((e) => e(this.axios, this.basePath));
2550
+ }
2551
+ listMyDrivesBeta(e, t, n, r, i) {
2552
+ return U(this.configuration).listMyDrivesBeta(e, t, n, r, i).then((e) => e(this.axios, this.basePath));
2553
+ }
2554
+ }, ut = { LibreGraphHasTrashedItems: "@libre.graph.hasTrashedItems" }, dt = function(e) {
2555
+ return {
2556
+ deleteOwnUserPhoto: async (t = {}) => {
2557
+ let n = new URL("/v1.0/me/photo/$value", o), r;
2558
+ e && (r = e.baseOptions);
2559
+ let i = {
2560
+ method: "DELETE",
2561
+ ...r,
2562
+ ...t
2563
+ }, a = {};
2564
+ c(i, e), a.Accept = "application/json", d(n, {});
2565
+ let s = r && r.headers ? r.headers : {};
2566
+ return i.headers = {
2567
+ ...a,
2568
+ ...s,
2569
+ ...t.headers
2570
+ }, {
2571
+ url: m(n),
2572
+ options: i
2573
+ };
2574
+ },
2575
+ getOwnUserPhoto: async (t = {}) => {
2576
+ let n = new URL("/v1.0/me/photo/$value", o), r;
2577
+ e && (r = e.baseOptions);
2578
+ let i = {
2579
+ method: "GET",
2580
+ ...r,
2581
+ ...t
2582
+ }, a = {};
2583
+ c(i, e), a.Accept = "image/jpeg,application/json", d(n, {});
2584
+ let s = r && r.headers ? r.headers : {};
2585
+ return i.headers = {
2586
+ ...a,
2587
+ ...s,
2588
+ ...t.headers
2589
+ }, {
2590
+ url: m(n),
2591
+ options: i
2592
+ };
2593
+ },
2594
+ updateOwnUserPhotoPatch: async (t, n = {}) => {
2595
+ let r = new URL("/v1.0/me/photo/$value", o), i;
2596
+ e && (i = e.baseOptions);
2597
+ let a = {
2598
+ method: "PATCH",
2599
+ ...i,
2600
+ ...n
2601
+ }, s = {};
2602
+ c(a, e), s["Content-Type"] = "image/jpeg", s.Accept = "application/json", d(r, {});
2603
+ let l = i && i.headers ? i.headers : {};
2604
+ return a.headers = {
2605
+ ...s,
2606
+ ...l,
2607
+ ...n.headers
2608
+ }, a.data = p(t, a, e), {
2609
+ url: m(r),
2610
+ options: a
2611
+ };
2612
+ },
2613
+ updateOwnUserPhotoPut: async (t, n = {}) => {
2614
+ let r = new URL("/v1.0/me/photo/$value", o), i;
2615
+ e && (i = e.baseOptions);
2616
+ let a = {
2617
+ method: "PUT",
2618
+ ...i,
2619
+ ...n
2620
+ }, s = {};
2621
+ c(a, e), s["Content-Type"] = "image/jpeg", s.Accept = "application/json", d(r, {});
2622
+ let l = i && i.headers ? i.headers : {};
2623
+ return a.headers = {
2624
+ ...s,
2625
+ ...l,
2626
+ ...n.headers
2627
+ }, a.data = p(t, a, e), {
2628
+ url: m(r),
2629
+ options: a
2630
+ };
2631
+ }
2632
+ };
2633
+ }, W = function(n) {
2634
+ let r = dt(n);
2635
+ return {
2636
+ async deleteOwnUserPhoto(i) {
2637
+ let o = await r.deleteOwnUserPhoto(i), s = n?.serverIndex ?? 0, c = a["MePhotoApi.deleteOwnUserPhoto"]?.[s]?.url;
2638
+ return (r, i) => h(o, e, t, n)(r, c || i);
2639
+ },
2640
+ async getOwnUserPhoto(i) {
2641
+ let o = await r.getOwnUserPhoto(i), s = n?.serverIndex ?? 0, c = a["MePhotoApi.getOwnUserPhoto"]?.[s]?.url;
2642
+ return (r, i) => h(o, e, t, n)(r, c || i);
2643
+ },
2644
+ async updateOwnUserPhotoPatch(i, o) {
2645
+ let s = await r.updateOwnUserPhotoPatch(i, o), c = n?.serverIndex ?? 0, l = a["MePhotoApi.updateOwnUserPhotoPatch"]?.[c]?.url;
2646
+ return (r, i) => h(s, e, t, n)(r, l || i);
2647
+ },
2648
+ async updateOwnUserPhotoPut(i, o) {
2649
+ let s = await r.updateOwnUserPhotoPut(i, o), c = n?.serverIndex ?? 0, l = a["MePhotoApi.updateOwnUserPhotoPut"]?.[c]?.url;
2650
+ return (r, i) => h(s, e, t, n)(r, l || i);
2651
+ }
2652
+ };
2653
+ }, ft = function(e, t, n) {
2654
+ let r = W(e);
2655
+ return {
2656
+ deleteOwnUserPhoto(e) {
2657
+ return r.deleteOwnUserPhoto(e).then((e) => e(n, t));
2658
+ },
2659
+ getOwnUserPhoto(e) {
2660
+ return r.getOwnUserPhoto(e).then((e) => e(n, t));
2661
+ },
2662
+ updateOwnUserPhotoPatch(e, i) {
2663
+ return r.updateOwnUserPhotoPatch(e, i).then((e) => e(n, t));
2664
+ },
2665
+ updateOwnUserPhotoPut(e, i) {
2666
+ return r.updateOwnUserPhotoPut(e, i).then((e) => e(n, t));
2667
+ }
2668
+ };
2669
+ }, pt = class extends r {
2670
+ deleteOwnUserPhoto(e) {
2671
+ return W(this.configuration).deleteOwnUserPhoto(e).then((e) => e(this.axios, this.basePath));
2672
+ }
2673
+ getOwnUserPhoto(e) {
2674
+ return W(this.configuration).getOwnUserPhoto(e).then((e) => e(this.axios, this.basePath));
2675
+ }
2676
+ updateOwnUserPhotoPatch(e, t) {
2677
+ return W(this.configuration).updateOwnUserPhotoPatch(e, t).then((e) => e(this.axios, this.basePath));
2678
+ }
2679
+ updateOwnUserPhotoPut(e, t) {
2680
+ return W(this.configuration).updateOwnUserPhotoPut(e, t).then((e) => e(this.axios, this.basePath));
2681
+ }
2682
+ }, mt = function(e) {
2683
+ return {
2684
+ getOwnUser: async (t, r = {}) => {
2685
+ let i = new URL("/v1.0/me", o), a;
2686
+ e && (a = e.baseOptions);
2687
+ let s = {
2688
+ method: "GET",
2689
+ ...a,
2690
+ ...r
2691
+ }, l = {}, u = {};
2692
+ c(s, e), t && (u.$expand = Array.from(t).join(n.csv)), l.Accept = "application/json", d(i, u);
2693
+ let f = a && a.headers ? a.headers : {};
2694
+ return s.headers = {
2695
+ ...l,
2696
+ ...f,
2697
+ ...r.headers
2698
+ }, {
2699
+ url: m(i),
2700
+ options: s
2701
+ };
2702
+ },
2703
+ updateOwnUser: async (t, n = {}) => {
2704
+ let r = new URL("/v1.0/me", o), i;
2705
+ e && (i = e.baseOptions);
2706
+ let a = {
2707
+ method: "PATCH",
2708
+ ...i,
2709
+ ...n
2710
+ }, s = {};
2711
+ c(a, e), s["Content-Type"] = "application/json", s.Accept = "application/json", d(r, {});
2712
+ let l = i && i.headers ? i.headers : {};
2713
+ return a.headers = {
2714
+ ...s,
2715
+ ...l,
2716
+ ...n.headers
2717
+ }, a.data = p(t, a, e), {
2718
+ url: m(r),
2719
+ options: a
2720
+ };
2721
+ }
2722
+ };
2723
+ }, G = function(n) {
2724
+ let r = mt(n);
2725
+ return {
2726
+ async getOwnUser(i, o) {
2727
+ let s = await r.getOwnUser(i, o), c = n?.serverIndex ?? 0, l = a["MeUserApi.getOwnUser"]?.[c]?.url;
2728
+ return (r, i) => h(s, e, t, n)(r, l || i);
2729
+ },
2730
+ async updateOwnUser(i, o) {
2731
+ let s = await r.updateOwnUser(i, o), c = n?.serverIndex ?? 0, l = a["MeUserApi.updateOwnUser"]?.[c]?.url;
2732
+ return (r, i) => h(s, e, t, n)(r, l || i);
2733
+ }
2734
+ };
2735
+ }, ht = function(e, t, n) {
2736
+ let r = G(e);
2737
+ return {
2738
+ getOwnUser(e, i) {
2739
+ return r.getOwnUser(e, i).then((e) => e(n, t));
2740
+ },
2741
+ updateOwnUser(e, i) {
2742
+ return r.updateOwnUser(e, i).then((e) => e(n, t));
2743
+ }
2744
+ };
2745
+ }, gt = class extends r {
2746
+ getOwnUser(e, t) {
2747
+ return G(this.configuration).getOwnUser(e, t).then((e) => e(this.axios, this.basePath));
2748
+ }
2749
+ updateOwnUser(e, t) {
2750
+ return G(this.configuration).updateOwnUser(e, t).then((e) => e(this.axios, this.basePath));
2751
+ }
2752
+ }, _t = { MemberOf: "memberOf" }, vt = function(e) {
2753
+ return {
2754
+ getPermissionRoleDefinition: async (t, n = {}) => {
2755
+ s("getPermissionRoleDefinition", "roleId", t);
2756
+ let r = "/v1beta1/roleManagement/permissions/roleDefinitions/{role-id}".replace("{role-id}", encodeURIComponent(String(t))), i = new URL(r, o), a;
2757
+ e && (a = e.baseOptions);
2758
+ let l = {
2759
+ method: "GET",
2760
+ ...a,
2761
+ ...n
2762
+ }, u = {};
2763
+ c(l, e), u.Accept = "application/json", d(i, {});
2764
+ let f = a && a.headers ? a.headers : {};
2765
+ return l.headers = {
2766
+ ...u,
2767
+ ...f,
2768
+ ...n.headers
2769
+ }, {
2770
+ url: m(i),
2771
+ options: l
2772
+ };
2773
+ },
2774
+ listPermissionRoleDefinitions: async (t = {}) => {
2775
+ let n = new URL("/v1beta1/roleManagement/permissions/roleDefinitions", o), r;
2776
+ e && (r = e.baseOptions);
2777
+ let i = {
2778
+ method: "GET",
2779
+ ...r,
2780
+ ...t
2781
+ }, a = {};
2782
+ c(i, e), a.Accept = "application/json", d(n, {});
2783
+ let s = r && r.headers ? r.headers : {};
2784
+ return i.headers = {
2785
+ ...a,
2786
+ ...s,
2787
+ ...t.headers
2788
+ }, {
2789
+ url: m(n),
2790
+ options: i
2791
+ };
2792
+ }
2793
+ };
2794
+ }, K = function(n) {
2795
+ let r = vt(n);
2796
+ return {
2797
+ async getPermissionRoleDefinition(i, o) {
2798
+ let s = await r.getPermissionRoleDefinition(i, o), c = n?.serverIndex ?? 0, l = a["RoleManagementApi.getPermissionRoleDefinition"]?.[c]?.url;
2799
+ return (r, i) => h(s, e, t, n)(r, l || i);
2800
+ },
2801
+ async listPermissionRoleDefinitions(i) {
2802
+ let o = await r.listPermissionRoleDefinitions(i), s = n?.serverIndex ?? 0, c = a["RoleManagementApi.listPermissionRoleDefinitions"]?.[s]?.url;
2803
+ return (r, i) => h(o, e, t, n)(r, c || i);
2804
+ }
2805
+ };
2806
+ }, yt = function(e, t, n) {
2807
+ let r = K(e);
2808
+ return {
2809
+ getPermissionRoleDefinition(e, i) {
2810
+ return r.getPermissionRoleDefinition(e, i).then((e) => e(n, t));
2811
+ },
2812
+ listPermissionRoleDefinitions(e) {
2813
+ return r.listPermissionRoleDefinitions(e).then((e) => e(n, t));
2814
+ }
2815
+ };
2816
+ }, bt = class extends r {
2817
+ getPermissionRoleDefinition(e, t) {
2818
+ return K(this.configuration).getPermissionRoleDefinition(e, t).then((e) => e(this.axios, this.basePath));
2819
+ }
2820
+ listPermissionRoleDefinitions(e) {
2821
+ return K(this.configuration).listPermissionRoleDefinitions(e).then((e) => e(this.axios, this.basePath));
2822
+ }
2823
+ }, xt = function(e) {
2824
+ return {
2825
+ assignTags: async (t, n = {}) => {
2826
+ let r = new URL("/v1.0/extensions/org.libregraph/tags", o), i;
2827
+ e && (i = e.baseOptions);
2828
+ let a = {
2829
+ method: "PUT",
2830
+ ...i,
2831
+ ...n
2832
+ }, s = {};
2833
+ c(a, e), s["Content-Type"] = "application/json", s.Accept = "application/json", d(r, {});
2834
+ let l = i && i.headers ? i.headers : {};
2835
+ return a.headers = {
2836
+ ...s,
2837
+ ...l,
2838
+ ...n.headers
2839
+ }, a.data = p(t, a, e), {
2840
+ url: m(r),
2841
+ options: a
2842
+ };
2843
+ },
2844
+ getTags: async (t = {}) => {
2845
+ let n = new URL("/v1.0/extensions/org.libregraph/tags", o), r;
2846
+ e && (r = e.baseOptions);
2847
+ let i = {
2848
+ method: "GET",
2849
+ ...r,
2850
+ ...t
2851
+ }, a = {};
2852
+ c(i, e), a.Accept = "application/json", d(n, {});
2853
+ let s = r && r.headers ? r.headers : {};
2854
+ return i.headers = {
2855
+ ...a,
2856
+ ...s,
2857
+ ...t.headers
2858
+ }, {
2859
+ url: m(n),
2860
+ options: i
2861
+ };
2862
+ },
2863
+ unassignTags: async (t, n = {}) => {
2864
+ let r = new URL("/v1.0/extensions/org.libregraph/tags", o), i;
2865
+ e && (i = e.baseOptions);
2866
+ let a = {
2867
+ method: "DELETE",
2868
+ ...i,
2869
+ ...n
2870
+ }, s = {};
2871
+ c(a, e), s["Content-Type"] = "application/json", s.Accept = "application/json", d(r, {});
2872
+ let l = i && i.headers ? i.headers : {};
2873
+ return a.headers = {
2874
+ ...s,
2875
+ ...l,
2876
+ ...n.headers
2877
+ }, a.data = p(t, a, e), {
2878
+ url: m(r),
2879
+ options: a
2880
+ };
2881
+ }
2882
+ };
2883
+ }, q = function(n) {
2884
+ let r = xt(n);
2885
+ return {
2886
+ async assignTags(i, o) {
2887
+ let s = await r.assignTags(i, o), c = n?.serverIndex ?? 0, l = a["TagsApi.assignTags"]?.[c]?.url;
2888
+ return (r, i) => h(s, e, t, n)(r, l || i);
2889
+ },
2890
+ async getTags(i) {
2891
+ let o = await r.getTags(i), s = n?.serverIndex ?? 0, c = a["TagsApi.getTags"]?.[s]?.url;
2892
+ return (r, i) => h(o, e, t, n)(r, c || i);
2893
+ },
2894
+ async unassignTags(i, o) {
2895
+ let s = await r.unassignTags(i, o), c = n?.serverIndex ?? 0, l = a["TagsApi.unassignTags"]?.[c]?.url;
2896
+ return (r, i) => h(s, e, t, n)(r, l || i);
2897
+ }
2898
+ };
2899
+ }, St = function(e, t, n) {
2900
+ let r = q(e);
2901
+ return {
2902
+ assignTags(e, i) {
2903
+ return r.assignTags(e, i).then((e) => e(n, t));
2904
+ },
2905
+ getTags(e) {
2906
+ return r.getTags(e).then((e) => e(n, t));
2907
+ },
2908
+ unassignTags(e, i) {
2909
+ return r.unassignTags(e, i).then((e) => e(n, t));
2910
+ }
2911
+ };
2912
+ }, Ct = class extends r {
2913
+ assignTags(e, t) {
2914
+ return q(this.configuration).assignTags(e, t).then((e) => e(this.axios, this.basePath));
2915
+ }
2916
+ getTags(e) {
2917
+ return q(this.configuration).getTags(e).then((e) => e(this.axios, this.basePath));
2918
+ }
2919
+ unassignTags(e, t) {
2920
+ return q(this.configuration).unassignTags(e, t).then((e) => e(this.axios, this.basePath));
2921
+ }
2922
+ }, J = function(e) {
2923
+ return {
2924
+ deleteUser: async (t, n, r = {}) => {
2925
+ s("deleteUser", "userId", t);
2926
+ let i = "/v1.0/users/{user-id}".replace("{user-id}", encodeURIComponent(String(t))), a = new URL(i, o), l;
2927
+ e && (l = e.baseOptions);
2928
+ let u = {
2929
+ method: "DELETE",
2930
+ ...l,
2931
+ ...r
2932
+ }, f = {};
2933
+ c(u, e), f.Accept = "application/json", n != null && (f["If-Match"] = String(n)), d(a, {});
2934
+ let p = l && l.headers ? l.headers : {};
2935
+ return u.headers = {
2936
+ ...f,
2937
+ ...p,
2938
+ ...r.headers
2939
+ }, {
2940
+ url: m(a),
2941
+ options: u
2942
+ };
2943
+ },
2944
+ exportPersonalData: async (t, n, r = {}) => {
2945
+ s("exportPersonalData", "userId", t);
2946
+ let i = "/v1.0/users/{user-id}/exportPersonalData".replace("{user-id}", encodeURIComponent(String(t))), a = new URL(i, o), l;
2947
+ e && (l = e.baseOptions);
2948
+ let u = {
2949
+ method: "POST",
2950
+ ...l,
2951
+ ...r
2952
+ }, f = {};
2953
+ c(u, e), f["Content-Type"] = "application/json", f.Accept = "application/json", d(a, {});
2954
+ let h = l && l.headers ? l.headers : {};
2955
+ return u.headers = {
2956
+ ...f,
2957
+ ...h,
2958
+ ...r.headers
2959
+ }, u.data = p(n, u, e), {
2960
+ url: m(a),
2961
+ options: u
2962
+ };
2963
+ },
2964
+ getUser: async (t, r, i, a = {}) => {
2965
+ s("getUser", "userId", t);
2966
+ let l = "/v1.0/users/{user-id}".replace("{user-id}", encodeURIComponent(String(t))), u = new URL(l, o), f;
2967
+ e && (f = e.baseOptions);
2968
+ let p = {
2969
+ method: "GET",
2970
+ ...f,
2971
+ ...a
2972
+ }, h = {}, g = {};
2973
+ c(p, e), r && (g.$select = Array.from(r).join(n.csv)), i && (g.$expand = Array.from(i).join(n.csv)), h.Accept = "application/json", d(u, g);
2974
+ let _ = f && f.headers ? f.headers : {};
2975
+ return p.headers = {
2976
+ ...h,
2977
+ ..._,
2978
+ ...a.headers
2979
+ }, {
2980
+ url: m(u),
2981
+ options: p
2982
+ };
2983
+ },
2984
+ updateUser: async (t, n, r = {}) => {
2985
+ s("updateUser", "userId", t), s("updateUser", "userUpdate", n);
2986
+ let i = "/v1.0/users/{user-id}".replace("{user-id}", encodeURIComponent(String(t))), a = new URL(i, o), l;
2987
+ e && (l = e.baseOptions);
2988
+ let u = {
2989
+ method: "PATCH",
2990
+ ...l,
2991
+ ...r
2992
+ }, f = {};
2993
+ c(u, e), f["Content-Type"] = "application/json", f.Accept = "application/json", d(a, {});
2994
+ let h = l && l.headers ? l.headers : {};
2995
+ return u.headers = {
2996
+ ...f,
2997
+ ...h,
2998
+ ...r.headers
2999
+ }, u.data = p(n, u, e), {
3000
+ url: m(a),
3001
+ options: u
3002
+ };
3003
+ }
3004
+ };
3005
+ }, Y = function(n) {
3006
+ let r = J(n);
3007
+ return {
3008
+ async deleteUser(i, o, s) {
3009
+ let c = await r.deleteUser(i, o, s), l = n?.serverIndex ?? 0, u = a["UserApi.deleteUser"]?.[l]?.url;
3010
+ return (r, i) => h(c, e, t, n)(r, u || i);
3011
+ },
3012
+ async exportPersonalData(i, o, s) {
3013
+ let c = await r.exportPersonalData(i, o, s), l = n?.serverIndex ?? 0, u = a["UserApi.exportPersonalData"]?.[l]?.url;
3014
+ return (r, i) => h(c, e, t, n)(r, u || i);
3015
+ },
3016
+ async getUser(i, o, s, c) {
3017
+ let l = await r.getUser(i, o, s, c), u = n?.serverIndex ?? 0, d = a["UserApi.getUser"]?.[u]?.url;
3018
+ return (r, i) => h(l, e, t, n)(r, d || i);
3019
+ },
3020
+ async updateUser(i, o, s) {
3021
+ let c = await r.updateUser(i, o, s), l = n?.serverIndex ?? 0, u = a["UserApi.updateUser"]?.[l]?.url;
3022
+ return (r, i) => h(c, e, t, n)(r, u || i);
3023
+ }
3024
+ };
3025
+ }, wt = function(e, t, n) {
3026
+ let r = Y(e);
3027
+ return {
3028
+ deleteUser(e, i, a) {
3029
+ return r.deleteUser(e, i, a).then((e) => e(n, t));
3030
+ },
3031
+ exportPersonalData(e, i, a) {
3032
+ return r.exportPersonalData(e, i, a).then((e) => e(n, t));
3033
+ },
3034
+ getUser(e, i, a, o) {
3035
+ return r.getUser(e, i, a, o).then((e) => e(n, t));
3036
+ },
3037
+ updateUser(e, i, a) {
3038
+ return r.updateUser(e, i, a).then((e) => e(n, t));
3039
+ }
3040
+ };
3041
+ }, Tt = class extends r {
3042
+ deleteUser(e, t, n) {
3043
+ return Y(this.configuration).deleteUser(e, t, n).then((e) => e(this.axios, this.basePath));
3044
+ }
3045
+ exportPersonalData(e, t, n) {
3046
+ return Y(this.configuration).exportPersonalData(e, t, n).then((e) => e(this.axios, this.basePath));
3047
+ }
3048
+ getUser(e, t, n, r) {
3049
+ return Y(this.configuration).getUser(e, t, n, r).then((e) => e(this.axios, this.basePath));
3050
+ }
3051
+ updateUser(e, t, n) {
3052
+ return Y(this.configuration).updateUser(e, t, n).then((e) => e(this.axios, this.basePath));
3053
+ }
3054
+ }, Et = {
3055
+ Id: "id",
3056
+ DisplayName: "displayName",
3057
+ Drive: "drive",
3058
+ Drives: "drives",
3059
+ Mail: "mail",
3060
+ MemberOf: "memberOf",
3061
+ OnPremisesSamAccountName: "onPremisesSamAccountName",
3062
+ Surname: "surname"
3063
+ }, Dt = {
3064
+ Drive: "drive",
3065
+ Drives: "drives",
3066
+ MemberOf: "memberOf",
3067
+ AppRoleAssignments: "appRoleAssignments"
3068
+ }, Ot = function(e) {
3069
+ return {
3070
+ userCreateAppRoleAssignments: async (t, n, r = {}) => {
3071
+ s("userCreateAppRoleAssignments", "userId", t), s("userCreateAppRoleAssignments", "appRoleAssignment", n);
3072
+ let i = "/v1.0/users/{user-id}/appRoleAssignments".replace("{user-id}", encodeURIComponent(String(t))), a = new URL(i, o), l;
3073
+ e && (l = e.baseOptions);
3074
+ let u = {
3075
+ method: "POST",
3076
+ ...l,
3077
+ ...r
3078
+ }, f = {};
3079
+ c(u, e), f["Content-Type"] = "application/json", f.Accept = "application/json", d(a, {});
3080
+ let h = l && l.headers ? l.headers : {};
3081
+ return u.headers = {
3082
+ ...f,
3083
+ ...h,
3084
+ ...r.headers
3085
+ }, u.data = p(n, u, e), {
3086
+ url: m(a),
3087
+ options: u
3088
+ };
3089
+ },
3090
+ userDeleteAppRoleAssignments: async (t, n, r, i = {}) => {
3091
+ s("userDeleteAppRoleAssignments", "userId", t), s("userDeleteAppRoleAssignments", "appRoleAssignmentId", n);
3092
+ let a = "/v1.0/users/{user-id}/appRoleAssignments/{appRoleAssignment-id}".replace("{user-id}", encodeURIComponent(String(t))).replace("{appRoleAssignment-id}", encodeURIComponent(String(n))), l = new URL(a, o), u;
3093
+ e && (u = e.baseOptions);
3094
+ let f = {
3095
+ method: "DELETE",
3096
+ ...u,
3097
+ ...i
3098
+ }, p = {};
3099
+ c(f, e), p.Accept = "application/json", r != null && (p["If-Match"] = String(r)), d(l, {});
3100
+ let h = u && u.headers ? u.headers : {};
3101
+ return f.headers = {
3102
+ ...p,
3103
+ ...h,
3104
+ ...i.headers
3105
+ }, {
3106
+ url: m(l),
3107
+ options: f
3108
+ };
3109
+ },
3110
+ userListAppRoleAssignments: async (t, n = {}) => {
3111
+ s("userListAppRoleAssignments", "userId", t);
3112
+ let r = "/v1.0/users/{user-id}/appRoleAssignments".replace("{user-id}", encodeURIComponent(String(t))), i = new URL(r, o), a;
3113
+ e && (a = e.baseOptions);
3114
+ let l = {
3115
+ method: "GET",
3116
+ ...a,
3117
+ ...n
3118
+ }, u = {};
3119
+ c(l, e), u.Accept = "application/json", d(i, {});
3120
+ let f = a && a.headers ? a.headers : {};
3121
+ return l.headers = {
3122
+ ...u,
3123
+ ...f,
3124
+ ...n.headers
3125
+ }, {
3126
+ url: m(i),
3127
+ options: l
3128
+ };
3129
+ }
3130
+ };
3131
+ }, X = function(n) {
3132
+ let r = Ot(n);
3133
+ return {
3134
+ async userCreateAppRoleAssignments(i, o, s) {
3135
+ let c = await r.userCreateAppRoleAssignments(i, o, s), l = n?.serverIndex ?? 0, u = a["UserAppRoleAssignmentApi.userCreateAppRoleAssignments"]?.[l]?.url;
3136
+ return (r, i) => h(c, e, t, n)(r, u || i);
3137
+ },
3138
+ async userDeleteAppRoleAssignments(i, o, s, c) {
3139
+ let l = await r.userDeleteAppRoleAssignments(i, o, s, c), u = n?.serverIndex ?? 0, d = a["UserAppRoleAssignmentApi.userDeleteAppRoleAssignments"]?.[u]?.url;
3140
+ return (r, i) => h(l, e, t, n)(r, d || i);
3141
+ },
3142
+ async userListAppRoleAssignments(i, o) {
3143
+ let s = await r.userListAppRoleAssignments(i, o), c = n?.serverIndex ?? 0, l = a["UserAppRoleAssignmentApi.userListAppRoleAssignments"]?.[c]?.url;
3144
+ return (r, i) => h(s, e, t, n)(r, l || i);
3145
+ }
3146
+ };
3147
+ }, kt = function(e, t, n) {
3148
+ let r = X(e);
3149
+ return {
3150
+ userCreateAppRoleAssignments(e, i, a) {
3151
+ return r.userCreateAppRoleAssignments(e, i, a).then((e) => e(n, t));
3152
+ },
3153
+ userDeleteAppRoleAssignments(e, i, a, o) {
3154
+ return r.userDeleteAppRoleAssignments(e, i, a, o).then((e) => e(n, t));
3155
+ },
3156
+ userListAppRoleAssignments(e, i) {
3157
+ return r.userListAppRoleAssignments(e, i).then((e) => e(n, t));
3158
+ }
3159
+ };
3160
+ }, At = class extends r {
3161
+ userCreateAppRoleAssignments(e, t, n) {
3162
+ return X(this.configuration).userCreateAppRoleAssignments(e, t, n).then((e) => e(this.axios, this.basePath));
3163
+ }
3164
+ userDeleteAppRoleAssignments(e, t, n, r) {
3165
+ return X(this.configuration).userDeleteAppRoleAssignments(e, t, n, r).then((e) => e(this.axios, this.basePath));
3166
+ }
3167
+ userListAppRoleAssignments(e, t) {
3168
+ return X(this.configuration).userListAppRoleAssignments(e, t).then((e) => e(this.axios, this.basePath));
3169
+ }
3170
+ }, jt = function(e) {
3171
+ return { getUserPhoto: async (t, n = {}) => {
3172
+ s("getUserPhoto", "userId", t);
3173
+ let r = "/v1.0/users/{user-id}/photo/$value".replace("{user-id}", encodeURIComponent(String(t))), i = new URL(r, o), a;
3174
+ e && (a = e.baseOptions);
3175
+ let l = {
3176
+ method: "GET",
3177
+ ...a,
3178
+ ...n
3179
+ }, u = {};
3180
+ c(l, e), u.Accept = "image/jpeg,application/json", d(i, {});
3181
+ let f = a && a.headers ? a.headers : {};
3182
+ return l.headers = {
3183
+ ...u,
3184
+ ...f,
3185
+ ...n.headers
3186
+ }, {
3187
+ url: m(i),
3188
+ options: l
3189
+ };
3190
+ } };
3191
+ }, Z = function(n) {
3192
+ let r = jt(n);
3193
+ return { async getUserPhoto(i, o) {
3194
+ let s = await r.getUserPhoto(i, o), c = n?.serverIndex ?? 0, l = a["UserPhotoApi.getUserPhoto"]?.[c]?.url;
3195
+ return (r, i) => h(s, e, t, n)(r, l || i);
3196
+ } };
3197
+ }, Mt = function(e, t, n) {
3198
+ let r = Z(e);
3199
+ return { getUserPhoto(e, i) {
3200
+ return r.getUserPhoto(e, i).then((e) => e(n, t));
3201
+ } };
3202
+ }, Nt = class extends r {
3203
+ getUserPhoto(e, t) {
3204
+ return Z(this.configuration).getUserPhoto(e, t).then((e) => e(this.axios, this.basePath));
3205
+ }
3206
+ }, Q = function(e) {
3207
+ return {
3208
+ createUser: async (t, n = {}) => {
3209
+ s("createUser", "user", t);
3210
+ let r = new URL("/v1.0/users", o), i;
3211
+ e && (i = e.baseOptions);
3212
+ let a = {
3213
+ method: "POST",
3214
+ ...i,
3215
+ ...n
3216
+ }, l = {};
3217
+ c(a, e), l["Content-Type"] = "application/json", l.Accept = "application/json", d(r, {});
3218
+ let u = i && i.headers ? i.headers : {};
3219
+ return a.headers = {
3220
+ ...l,
3221
+ ...u,
3222
+ ...n.headers
3223
+ }, a.data = p(t, a, e), {
3224
+ url: m(r),
3225
+ options: a
3226
+ };
3227
+ },
3228
+ listUsers: async (t, r, i, a, s, l = {}) => {
3229
+ let u = new URL("/v1.0/users", o), f;
3230
+ e && (f = e.baseOptions);
3231
+ let p = {
3232
+ method: "GET",
3233
+ ...f,
3234
+ ...l
3235
+ }, h = {}, g = {};
3236
+ c(p, e), t !== void 0 && (g.$search = t), r !== void 0 && (g.$filter = r), i && (g.$orderby = Array.from(i).join(n.csv)), a && (g.$select = Array.from(a).join(n.csv)), s && (g.$expand = Array.from(s).join(n.csv)), h.Accept = "application/json", d(u, g);
3237
+ let _ = f && f.headers ? f.headers : {};
3238
+ return p.headers = {
3239
+ ...h,
3240
+ ..._,
3241
+ ...l.headers
3242
+ }, {
3243
+ url: m(u),
3244
+ options: p
3245
+ };
3246
+ }
3247
+ };
3248
+ }, $ = function(n) {
3249
+ let r = Q(n);
3250
+ return {
3251
+ async createUser(i, o) {
3252
+ let s = await r.createUser(i, o), c = n?.serverIndex ?? 0, l = a["UsersApi.createUser"]?.[c]?.url;
3253
+ return (r, i) => h(s, e, t, n)(r, l || i);
3254
+ },
3255
+ async listUsers(i, o, s, c, l, u) {
3256
+ let d = await r.listUsers(i, o, s, c, l, u), f = n?.serverIndex ?? 0, p = a["UsersApi.listUsers"]?.[f]?.url;
3257
+ return (r, i) => h(d, e, t, n)(r, p || i);
3258
+ }
3259
+ };
3260
+ }, Pt = function(e, t, n) {
3261
+ let r = $(e);
3262
+ return {
3263
+ createUser(e, i) {
3264
+ return r.createUser(e, i).then((e) => e(n, t));
3265
+ },
3266
+ listUsers(e, i, a, o, s, c) {
3267
+ return r.listUsers(e, i, a, o, s, c).then((e) => e(n, t));
3268
+ }
3269
+ };
3270
+ }, Ft = class extends r {
3271
+ createUser(e, t) {
3272
+ return $(this.configuration).createUser(e, t).then((e) => e(this.axios, this.basePath));
3273
+ }
3274
+ listUsers(e, t, n, r, i, a) {
3275
+ return $(this.configuration).listUsers(e, t, n, r, i, a).then((e) => e(this.axios, this.basePath));
3276
+ }
3277
+ }, It = {
3278
+ DisplayName: "displayName",
3279
+ DisplayNameDesc: "displayName desc",
3280
+ Mail: "mail",
3281
+ MailDesc: "mail desc",
3282
+ OnPremisesSamAccountName: "onPremisesSamAccountName",
3283
+ OnPremisesSamAccountNameDesc: "onPremisesSamAccountName desc"
3284
+ }, Lt = {
3285
+ Id: "id",
3286
+ DisplayName: "displayName",
3287
+ Mail: "mail",
3288
+ MemberOf: "memberOf",
3289
+ OnPremisesSamAccountName: "onPremisesSamAccountName",
3290
+ Surname: "surname"
3291
+ }, Rt = {
3292
+ Drive: "drive",
3293
+ Drives: "drives",
3294
+ MemberOf: "memberOf",
3295
+ AppRoleAssignments: "appRoleAssignments"
3296
+ }, zt = class {
3297
+ apiKey;
3298
+ username;
3299
+ password;
3300
+ accessToken;
3301
+ awsv4;
3302
+ basePath;
3303
+ serverIndex;
3304
+ baseOptions;
3305
+ formDataCtor;
3306
+ constructor(e = {}) {
3307
+ this.apiKey = e.apiKey, this.username = e.username, this.password = e.password, this.accessToken = e.accessToken, this.awsv4 = e.awsv4, this.basePath = e.basePath, this.serverIndex = e.serverIndex, this.baseOptions = {
3308
+ ...e.baseOptions,
3309
+ headers: { ...e.baseOptions?.headers }
3310
+ }, this.formDataCtor = e.formDataCtor;
3311
+ }
3312
+ isJsonMime(e) {
3313
+ return e !== null && ((/* @__PURE__ */ RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$", "i")).test(e) || e.toLowerCase() === "application/json-patch+json");
3314
+ }
3315
+ };
3316
+ //#endregion
3317
+ export { Et as $, G as $t, we as A, Qe as At, j as B, at as Bt, he as C, Pt as Cn, Rt as Ct, ye as D, qe as Dt, xe as E, Ye as Et, Ee as F, tt as Ft, ke as G, U as Gt, M as H, lt as Ht, k as I, nt as It, je as J, ft as Jt, P as K, pt as Kt, Te as L, V as Lt, Ce as M, Ze as Mt, O as N, B as Nt, be as O, Je as Ot, g as P, rt as Pt, Dt as Q, ht as Qt, A as R, ot as Rt, _e as S, Q as Sn, et as St, T, Lt as Tt, Ae as U, st as Ut, De as V, H as Vt, N as W, ct as Wt, Ie as X, gt as Xt, Le as Y, W as Yt, _t as Z, mt as Zt, C as _, Nt as _n, He as _t, y as a, Ct as an, Re as at, fe as b, Z as bn, Se as bt, re as c, q as cn, Ke as ct, x as d, wt as dn, R as dt, bt as en, Fe as et, ae as f, Y as fn, me as ft, ce as g, X as gn, Ve as gt, se as h, kt as hn, Ue as ht, ee as i, _ as in, Be as it, D as j, Xe as jt, E as k, z as kt, b as l, Tt as ln, We as lt, le as m, Ot as mn, Me as mt, te as n, yt as nn, Pe as nt, ie as o, xt as on, ze as ot, S as p, At as pn, Ne as pt, ue as q, dt as qt, v as r, K as rn, I as rt, ne as s, St as sn, L as st, zt as t, vt as tn, F as tt, oe as u, J as un, Ge as ut, pe as v, jt as vn, ut as vt, ge as w, $ as wn, It as wt, w as x, Ft as xn, $e as xt, de as y, Mt as yn, ve as yt, Oe as z, it as zt };