@coscine/api-client 3.22.0 → 3.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ## API Client Library
2
2
 
3
- [[_TOC_]]
3
+ [[_TOC_]]
4
4
 
5
5
  ## 📝 Overview
6
6
 
package/dist/index.js CHANGED
@@ -103,22 +103,22 @@ const { toString: it } = Object.prototype, { getPrototypeOf: be } = Object, le =
103
103
  return e[o] || (e[o] = o.slice(8, -1).toLowerCase());
104
104
  })(/* @__PURE__ */ Object.create(null)), M = (e) => (e = e.toLowerCase(), (s) => le(s) === e), ne = (e) => (s) => typeof s === e, { isArray: Z } = Array, g = ne("undefined");
105
105
  function dt(e) {
106
- return e !== null && !g(e) && e.constructor !== null && !g(e.constructor) && H(e.constructor.isBuffer) && e.constructor.isBuffer(e);
106
+ return e !== null && !g(e) && e.constructor !== null && !g(e.constructor) && N(e.constructor.isBuffer) && e.constructor.isBuffer(e);
107
107
  }
108
108
  const De = M("ArrayBuffer");
109
109
  function ht(e) {
110
110
  let s;
111
111
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? s = ArrayBuffer.isView(e) : s = e && e.buffer && De(e.buffer), s;
112
112
  }
113
- const Ot = ne("string"), H = ne("function"), ke = ne("number"), ce = (e) => e !== null && typeof e == "object", Vt = (e) => e === !0 || e === !1, re = (e) => {
113
+ const Ot = ne("string"), N = ne("function"), ke = ne("number"), ce = (e) => e !== null && typeof e == "object", Vt = (e) => e === !0 || e === !1, re = (e) => {
114
114
  if (le(e) !== "object")
115
115
  return !1;
116
116
  const s = be(e);
117
117
  return (s === null || s === Object.prototype || Object.getPrototypeOf(s) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
118
- }, ut = M("Date"), At = M("File"), Pt = M("Blob"), mt = M("FileList"), Rt = (e) => ce(e) && H(e.pipe), yt = (e) => {
118
+ }, ut = M("Date"), At = M("File"), Pt = M("Blob"), mt = M("FileList"), Rt = (e) => ce(e) && N(e.pipe), yt = (e) => {
119
119
  let s;
120
- return e && (typeof FormData == "function" && e instanceof FormData || H(e.append) && ((s = le(e)) === "formdata" || // detect form-data instance
121
- s === "object" && H(e.toString) && e.toString() === "[object FormData]"));
120
+ return e && (typeof FormData == "function" && e instanceof FormData || N(e.append) && ((s = le(e)) === "formdata" || // detect form-data instance
121
+ s === "object" && N(e.toString) && e.toString() === "[object FormData]"));
122
122
  }, It = M("URLSearchParams"), bt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
123
123
  function ee(e, s, { allOwnKeys: o = !1 } = {}) {
124
124
  if (e === null || typeof e > "u")
@@ -154,7 +154,7 @@ function ue() {
154
154
  return s;
155
155
  }
156
156
  const vt = (e, s, o, { allOwnKeys: l } = {}) => (ee(s, (t, r) => {
157
- o && H(t) ? e[r] = Me(t, o) : e[r] = t;
157
+ o && N(t) ? e[r] = Me(t, o) : e[r] = t;
158
158
  }, { allOwnKeys: l }), e), jt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), St = (e, s, o, l) => {
159
159
  e.prototype = Object.create(s.prototype, l), e.prototype.constructor = e, Object.defineProperty(e, "super", {
160
160
  value: s.prototype
@@ -210,12 +210,12 @@ const vt = (e, s, o, { allOwnKeys: l } = {}) => (ee(s, (t, r) => {
210
210
  let a;
211
211
  (a = s(t, r, e)) !== !1 && (l[r] = a || t);
212
212
  }), Object.defineProperties(e, l);
213
- }, Nt = (e) => {
213
+ }, Ht = (e) => {
214
214
  _e(e, (s, o) => {
215
- if (H(e) && ["arguments", "caller", "callee"].indexOf(o) !== -1)
215
+ if (N(e) && ["arguments", "caller", "callee"].indexOf(o) !== -1)
216
216
  return !1;
217
217
  const l = e[o];
218
- if (H(l)) {
218
+ if (N(l)) {
219
219
  if (s.enumerable = !1, "writable" in s) {
220
220
  s.writable = !1;
221
221
  return;
@@ -225,7 +225,7 @@ const vt = (e, s, o, { allOwnKeys: l } = {}) => (ee(s, (t, r) => {
225
225
  });
226
226
  }
227
227
  });
228
- }, Ht = (e, s) => {
228
+ }, Nt = (e, s) => {
229
229
  const o = {}, l = (t) => {
230
230
  t.forEach((r) => {
231
231
  o[r] = !0;
@@ -245,7 +245,7 @@ const vt = (e, s, o, { allOwnKeys: l } = {}) => (ee(s, (t, r) => {
245
245
  return o;
246
246
  };
247
247
  function Dt(e) {
248
- return !!(e && H(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
248
+ return !!(e && N(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
249
249
  }
250
250
  const kt = (e) => {
251
251
  const s = new Array(10), o = (l, t) => {
@@ -264,7 +264,7 @@ const kt = (e) => {
264
264
  return l;
265
265
  };
266
266
  return o(e, 0);
267
- }, Gt = M("AsyncFunction"), $t = (e) => e && (ce(e) || H(e)) && H(e.then) && H(e.catch), j = {
267
+ }, Gt = M("AsyncFunction"), $t = (e) => e && (ce(e) || N(e)) && N(e.then) && N(e.catch), j = {
268
268
  isArray: Z,
269
269
  isArrayBuffer: De,
270
270
  isBuffer: dt,
@@ -280,7 +280,7 @@ const kt = (e) => {
280
280
  isFile: At,
281
281
  isBlob: Pt,
282
282
  isRegExp: Et,
283
- isFunction: H,
283
+ isFunction: N,
284
284
  isStream: Rt,
285
285
  isURLSearchParams: It,
286
286
  isTypedArray: xt,
@@ -303,8 +303,8 @@ const kt = (e) => {
303
303
  hasOwnProp: Te,
304
304
  // an alias to avoid ESLint no-prototype-builtins detection
305
305
  reduceDescriptors: _e,
306
- freezeMethods: Nt,
307
- toObjectSet: Ht,
306
+ freezeMethods: Ht,
307
+ toObjectSet: Nt,
308
308
  toCamelCase: Lt,
309
309
  noop: zt,
310
310
  toFiniteNumber: Qt,
@@ -433,14 +433,14 @@ function pe(e, s, o) {
433
433
  if (!j.isUndefined(b)) {
434
434
  if (d.indexOf(b) !== -1)
435
435
  throw Error("Circular reference detected in " + S.join("."));
436
- d.push(b), j.forEach(b, function(C, N) {
436
+ d.push(b), j.forEach(b, function(C, H) {
437
437
  (!(j.isUndefined(C) || C === null) && t.call(
438
438
  s,
439
439
  C,
440
- j.isString(N) ? N.trim() : N,
440
+ j.isString(H) ? H.trim() : H,
441
441
  S,
442
442
  h
443
- )) === !0 && I(C, S ? S.concat(N) : [N]);
443
+ )) === !0 && I(C, S ? S.concat(H) : [H]);
444
444
  }), d.pop();
445
445
  }
446
446
  }
@@ -1081,7 +1081,7 @@ j.forEach(Pe, (e, s) => {
1081
1081
  Object.defineProperty(e, "adapterName", { value: s });
1082
1082
  }
1083
1083
  });
1084
- const Ne = (e) => `- ${e}`, Ir = (e) => j.isFunction(e) || e === null || e === !1, at = {
1084
+ const He = (e) => `- ${e}`, Ir = (e) => j.isFunction(e) || e === null || e === !1, at = {
1085
1085
  getAdapter: (e) => {
1086
1086
  e = j.isArray(e) ? e : [e];
1087
1087
  const { length: s } = e;
@@ -1101,8 +1101,8 @@ const Ne = (e) => `- ${e}`, Ir = (e) => j.isFunction(e) || e === null || e === !
1101
1101
  ([n, c]) => `adapter ${n} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
1102
1102
  );
1103
1103
  let a = s ? r.length > 1 ? `since :
1104
- ` + r.map(Ne).join(`
1105
- `) : " " + Ne(r[0]) : "as no adapter specified";
1104
+ ` + r.map(He).join(`
1105
+ `) : " " + He(r[0]) : "as no adapter specified";
1106
1106
  throw new F(
1107
1107
  "There is no suitable adapter to dispatch the request " + a,
1108
1108
  "ERR_NOT_SUPPORT"
@@ -1116,7 +1116,7 @@ function Ve(e) {
1116
1116
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1117
1117
  throw new te(null, e);
1118
1118
  }
1119
- function He(e) {
1119
+ function Ne(e) {
1120
1120
  return Ve(e), e.headers = D.from(e.headers), e.data = Oe.call(
1121
1121
  e,
1122
1122
  e.transformRequest
@@ -1296,7 +1296,7 @@ class oe {
1296
1296
  });
1297
1297
  let i, d = 0, h;
1298
1298
  if (!c) {
1299
- const b = [He.bind(this), void 0];
1299
+ const b = [Ne.bind(this), void 0];
1300
1300
  for (b.unshift.apply(b, n), b.push.apply(b, p), h = b.length, i = Promise.resolve(o); d < h; )
1301
1301
  i = i.then(b[d++], b[d++]);
1302
1302
  return i;
@@ -1313,7 +1313,7 @@ class oe {
1313
1313
  }
1314
1314
  }
1315
1315
  try {
1316
- i = He.call(this, I);
1316
+ i = Ne.call(this, I);
1317
1317
  } catch (b) {
1318
1318
  return Promise.reject(b);
1319
1319
  }
@@ -1884,7 +1884,7 @@ const m = function(e, ...s) {
1884
1884
  async getAllActivityLogs(o, l, t, r, a, n, c, p, i, d) {
1885
1885
  var S, w;
1886
1886
  const h = await s.getAllActivityLogs(o, l, t, r, a, n, c, p, i, d), I = (e == null ? void 0 : e.serverIndex) ?? 0, b = (w = (S = u["AdminApi.getAllActivityLogs"]) == null ? void 0 : S[I]) == null ? void 0 : w.url;
1887
- return (C, N) => y(h, O, V, e)(C, b || N);
1887
+ return (C, H) => y(h, O, V, e)(C, b || H);
1888
1888
  },
1889
1889
  /**
1890
1890
  * <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p>
@@ -2470,7 +2470,7 @@ const m = function(e, ...s) {
2470
2470
  };
2471
2471
  }
2472
2472
  };
2473
- }, Nr = function(e) {
2473
+ }, Hr = function(e) {
2474
2474
  const s = Er(e);
2475
2475
  return {
2476
2476
  /**
@@ -2545,8 +2545,8 @@ const m = function(e, ...s) {
2545
2545
  return (h, I) => y(n, O, V, e)(h, p || I);
2546
2546
  }
2547
2547
  };
2548
- }, Hr = function(e, s, o) {
2549
- const l = Nr(e);
2548
+ }, Nr = function(e, s, o) {
2549
+ const l = Hr(e);
2550
2550
  return {
2551
2551
  /**
2552
2552
  *
@@ -5618,7 +5618,7 @@ const m = function(e, ...s) {
5618
5618
  };
5619
5619
  }
5620
5620
  };
5621
- }, Na = function(e) {
5621
+ }, Ha = function(e) {
5622
5622
  const s = Ea(e);
5623
5623
  return {
5624
5624
  /**
@@ -5650,8 +5650,8 @@ const m = function(e, ...s) {
5650
5650
  return (I, b) => y(c, O, V, e)(I, i || b);
5651
5651
  }
5652
5652
  };
5653
- }, Ha = function(e, s, o) {
5654
- const l = Na(e);
5653
+ }, Na = function(e, s, o) {
5654
+ const l = Ha(e);
5655
5655
  return {
5656
5656
  /**
5657
5657
  *
@@ -6807,6 +6807,24 @@ const m = function(e, ...s) {
6807
6807
  options: r
6808
6808
  };
6809
6809
  },
6810
+ /**
6811
+ *
6812
+ * @summary Retrieves the number of active project roles for the currently authenticated user.
6813
+ * @param {*} [options] Override http request option.
6814
+ * @throws {RequiredError}
6815
+ */
6816
+ getActiveProjectRolesCount: async (s = {}) => {
6817
+ const o = "/api/v2/self/active-project-roles-count", l = new URL(o, A);
6818
+ let t;
6819
+ e && (t = e.baseOptions);
6820
+ const r = { method: "GET", ...t, ...s }, a = {}, n = {};
6821
+ await P(a, "Authorization", e), m(l, n);
6822
+ let c = t && t.headers ? t.headers : {};
6823
+ return r.headers = { ...a, ...c, ...s.headers }, {
6824
+ url: R(l),
6825
+ options: r
6826
+ };
6827
+ },
6810
6828
  /**
6811
6829
  *
6812
6830
  * @summary Retrieves the current authenticated user.
@@ -6951,6 +6969,17 @@ const m = function(e, ...s) {
6951
6969
  const l = await s.deleteCurrentUser(o), t = (e == null ? void 0 : e.serverIndex) ?? 0, r = (n = (a = u["SelfApi.deleteCurrentUser"]) == null ? void 0 : a[t]) == null ? void 0 : n.url;
6952
6970
  return (c, p) => y(l, O, V, e)(c, r || p);
6953
6971
  },
6972
+ /**
6973
+ *
6974
+ * @summary Retrieves the number of active project roles for the currently authenticated user.
6975
+ * @param {*} [options] Override http request option.
6976
+ * @throws {RequiredError}
6977
+ */
6978
+ async getActiveProjectRolesCount(o) {
6979
+ var a, n;
6980
+ const l = await s.getActiveProjectRolesCount(o), t = (e == null ? void 0 : e.serverIndex) ?? 0, r = (n = (a = u["SelfApi.getActiveProjectRolesCount"]) == null ? void 0 : a[t]) == null ? void 0 : n.url;
6981
+ return (c, p) => y(l, O, V, e)(c, r || p);
6982
+ },
6954
6983
  /**
6955
6984
  *
6956
6985
  * @summary Retrieves the current authenticated user.
@@ -7051,6 +7080,15 @@ const m = function(e, ...s) {
7051
7080
  deleteCurrentUser(t) {
7052
7081
  return l.deleteCurrentUser(t).then((r) => r(o, s));
7053
7082
  },
7083
+ /**
7084
+ *
7085
+ * @summary Retrieves the number of active project roles for the currently authenticated user.
7086
+ * @param {*} [options] Override http request option.
7087
+ * @throws {RequiredError}
7088
+ */
7089
+ getActiveProjectRolesCount(t) {
7090
+ return l.getActiveProjectRolesCount(t).then((r) => r(o, s));
7091
+ },
7054
7092
  /**
7055
7093
  *
7056
7094
  * @summary Retrieves the current authenticated user.
@@ -7658,7 +7696,7 @@ const m = function(e, ...s) {
7658
7696
  async getInternalMessages(o, l, t, r, a, n, c, p, i, d) {
7659
7697
  var S, w;
7660
7698
  const h = await s.getInternalMessages(o, l, t, r, a, n, c, p, i, d), I = (e == null ? void 0 : e.serverIndex) ?? 0, b = (w = (S = u["SystemStatusApi.getInternalMessages"]) == null ? void 0 : S[I]) == null ? void 0 : w.url;
7661
- return (C, N) => y(h, O, V, e)(C, b || N);
7699
+ return (C, H) => y(h, O, V, e)(C, b || H);
7662
7700
  },
7663
7701
  /**
7664
7702
  *
@@ -8246,7 +8284,7 @@ const m = function(e, ...s) {
8246
8284
  async getMetadataTree(o, l, t, r, a, n, c, p, i, d) {
8247
8285
  var S, w;
8248
8286
  const h = await s.getMetadataTree(o, l, t, r, a, n, c, p, i, d), I = (e == null ? void 0 : e.serverIndex) ?? 0, b = (w = (S = u["TreeApi.getMetadataTree"]) == null ? void 0 : S[I]) == null ? void 0 : w.url;
8249
- return (C, N) => y(h, O, V, e)(C, b || N);
8287
+ return (C, H) => y(h, O, V, e)(C, b || H);
8250
8288
  },
8251
8289
  /**
8252
8290
  *
@@ -8927,7 +8965,7 @@ const m = function(e, ...s) {
8927
8965
  };
8928
8966
  }
8929
8967
  };
8930
- }, Ns = function(e) {
8968
+ }, Hs = function(e) {
8931
8969
  const s = Es(e);
8932
8970
  return {
8933
8971
  /**
@@ -8988,8 +9026,8 @@ const m = function(e, ...s) {
8988
9026
  return (b, S) => y(p, O, V, e)(b, d || S);
8989
9027
  }
8990
9028
  };
8991
- }, Hs = function(e, s, o) {
8992
- const l = Ns(e);
9029
+ }, Ns = function(e, s, o) {
9030
+ const l = Hs(e);
8993
9031
  return {
8994
9032
  /**
8995
9033
  *
@@ -9486,7 +9524,7 @@ function fs(e) {
9486
9524
  AccountApi: Ms(new T({ accessToken: U }), "https://" + x() + "/coscine/api/Coscine.Api.STS", e),
9487
9525
  AdminApi: Br(new T({ accessToken: U }), "https://" + x() + "/coscine", e),
9488
9526
  ApplicationProfileApi: Lr(new T({ accessToken: U }), "https://" + x() + "/coscine", e),
9489
- BlobApi: Hr(new T({ accessToken: U }), "https://" + x() + "/coscine", e),
9527
+ BlobApi: Nr(new T({ accessToken: U }), "https://" + x() + "/coscine", e),
9490
9528
  DataHamsterReportApi: Mr(new T({ accessToken: U }), "https://" + x() + "/coscine", e),
9491
9529
  DisciplineApi: Gr(new T({ accessToken: U }), "https://" + x() + "/coscine", e),
9492
9530
  HandleApi: _r(new T({ accessToken: U }), "https://" + x() + "/coscine", e),
@@ -9507,7 +9545,7 @@ function fs(e) {
9507
9545
  ProjectResourceApi: Ua(new T({ accessToken: U }), "https://" + x() + "/coscine", e),
9508
9546
  ProjectResourceQuotaApi: Ba(new T({ accessToken: U }), "https://" + x() + "/coscine", e),
9509
9547
  ProjectResourceTypeApi: La(new T({ accessToken: U }), "https://" + x() + "/coscine", e),
9510
- ProjectSubProjectsApi: Ha(new T({ accessToken: U }), "https://" + x() + "/coscine", e),
9548
+ ProjectSubProjectsApi: Na(new T({ accessToken: U }), "https://" + x() + "/coscine", e),
9511
9549
  PublicationAdvisoryServiceApi: Ma(new T({ accessToken: U }), "https://" + x() + "/coscine", e),
9512
9550
  ReportApi: Ga(new T({ accessToken: U }), "https://" + x() + "/coscine", e),
9513
9551
  ResourceApi: _a(new T({ accessToken: U }), "https://" + x() + "/coscine", e),
@@ -9526,7 +9564,7 @@ function fs(e) {
9526
9564
  UserApi: Us(new T({ accessToken: U }), "https://" + x() + "/coscine", e),
9527
9565
  UserNotificationOptOutApi: Bs(new T({ accessToken: U }), "https://" + x() + "/coscine", e),
9528
9566
  VisibilityApi: Ls(new T({ accessToken: U }), "https://" + x() + "/coscine", e),
9529
- VocabularyApi: Hs(new T({ accessToken: U }), "https://" + x() + "/coscine", e)
9567
+ VocabularyApi: Ns(new T({ accessToken: U }), "https://" + x() + "/coscine", e)
9530
9568
  };
9531
9569
  }
9532
9570
  const lt = O.create({
@@ -9541,7 +9579,7 @@ function eo(e) {
9541
9579
  }
9542
9580
  }
9543
9581
  lt.interceptors.request.use((e) => (eo(e), e), (e) => Promise.reject(e), { synchronous: !0 });
9544
- const B = fs(lt), ro = B.AccountApi, ao = B.AdminApi, so = B.ApplicationProfileApi, oo = B.BlobApi, lo = B.DataHamsterReportApi, no = B.DisciplineApi, co = B.HandleApi, po = B.HomeApi, io = B.LanguageApi, ho = B.LicenseApi, Oo = B.MaintenanceApi, Vo = B.MergeApi, uo = B.NotificationApi, Ao = B.ORCiDApi, Po = B.OrganizationApi, mo = B.PidApi, Ro = B.ProjectApi, yo = B.ProjectInvitationApi, Io = B.ProjectMemberApi, bo = B.ProjectPublicationRequestApi, vo = B.ProjectQuotaApi, jo = B.ProjectResourceApi, So = B.ProjectResourceQuotaApi, wo = B.ProjectResourceTypeApi, Uo = B.ProjectSubProjectsApi, To = B.PublicationAdvisoryServiceApi, xo = B.ReportApi, Bo = B.ResourceApi, Fo = B.ResourceTypeApi, Co = B.ResourceTypeGitLabApi, Lo = B.RoleApi, Eo = B.SearchApi, No = B.SelfApi, Ho = B.SelfApiTokenApi, zo = B.ShibbolethApi, Qo = B.SystemStatusApi, Mo = B.TitleApi, Do = B.TosApi, ko = B.TreeApi, Go = B.UserApi, $o = B.UserNotificationOptOutApi, qo = B.VisibilityApi, _o = B.VocabularyApi;
9582
+ const B = fs(lt), ro = B.AccountApi, ao = B.AdminApi, so = B.ApplicationProfileApi, oo = B.BlobApi, lo = B.DataHamsterReportApi, no = B.DisciplineApi, co = B.HandleApi, po = B.HomeApi, io = B.LanguageApi, ho = B.LicenseApi, Oo = B.MaintenanceApi, Vo = B.MergeApi, uo = B.NotificationApi, Ao = B.ORCiDApi, Po = B.OrganizationApi, mo = B.PidApi, Ro = B.ProjectApi, yo = B.ProjectInvitationApi, Io = B.ProjectMemberApi, bo = B.ProjectPublicationRequestApi, vo = B.ProjectQuotaApi, jo = B.ProjectResourceApi, So = B.ProjectResourceQuotaApi, wo = B.ProjectResourceTypeApi, Uo = B.ProjectSubProjectsApi, To = B.PublicationAdvisoryServiceApi, xo = B.ReportApi, Bo = B.ResourceApi, Fo = B.ResourceTypeApi, Co = B.ResourceTypeGitLabApi, Lo = B.RoleApi, Eo = B.SearchApi, Ho = B.SelfApi, No = B.SelfApiTokenApi, zo = B.SelfSessionApi, Qo = B.ShibbolethApi, Mo = B.SystemStatusApi, Do = B.TitleApi, ko = B.TosApi, Go = B.TreeApi, $o = B.UserApi, qo = B.UserNotificationOptOutApi, _o = B.VisibilityApi, Ko = B.VocabularyApi;
9545
9583
  export {
9546
9584
  ro as AccountApi,
9547
9585
  ao as AdminApi,
@@ -9575,16 +9613,17 @@ export {
9575
9613
  Co as ResourceTypeGitLabApi,
9576
9614
  Lo as RoleApi,
9577
9615
  Eo as SearchApi,
9578
- No as SelfApi,
9579
- Ho as SelfApiTokenApi,
9580
- zo as ShibbolethApi,
9581
- Qo as SystemStatusApi,
9582
- Mo as TitleApi,
9583
- Do as TosApi,
9584
- ko as TreeApi,
9585
- Go as UserApi,
9586
- $o as UserNotificationOptOutApi,
9587
- qo as VisibilityApi,
9588
- _o as VocabularyApi,
9616
+ Ho as SelfApi,
9617
+ No as SelfApiTokenApi,
9618
+ zo as SelfSessionApi,
9619
+ Qo as ShibbolethApi,
9620
+ Mo as SystemStatusApi,
9621
+ Do as TitleApi,
9622
+ ko as TosApi,
9623
+ Go as TreeApi,
9624
+ $o as UserApi,
9625
+ qo as UserNotificationOptOutApi,
9626
+ _o as VisibilityApi,
9627
+ Ko as VocabularyApi,
9589
9628
  B as default
9590
9629
  };
@@ -16,7 +16,6 @@ import type { AcceptedLanguage } from '../../@coscine/model';
16
16
  import type { PublicationAdvisoryServiceDtoPagedResponse } from '../../@coscine/model';
17
17
  /**
18
18
  * PublicationAdvisoryServiceApi - axios parameter creator
19
- * @export
20
19
  */
21
20
  export declare const PublicationAdvisoryServiceApiAxiosParamCreator: (configuration?: Configuration) => {
22
21
  /**
@@ -41,7 +40,6 @@ export declare const PublicationAdvisoryServiceApiAxiosParamCreator: (configurat
41
40
  };
42
41
  /**
43
42
  * PublicationAdvisoryServiceApi - functional programming interface
44
- * @export
45
43
  */
46
44
  export declare const PublicationAdvisoryServiceApiFp: (configuration?: Configuration) => {
47
45
  /**
@@ -66,7 +64,6 @@ export declare const PublicationAdvisoryServiceApiFp: (configuration?: Configura
66
64
  };
67
65
  /**
68
66
  * PublicationAdvisoryServiceApi - factory interface
69
- * @export
70
67
  */
71
68
  export declare const PublicationAdvisoryServiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
72
69
  /**
@@ -87,14 +84,10 @@ export declare const PublicationAdvisoryServiceApiFactory: (configuration?: Conf
87
84
  };
88
85
  /**
89
86
  * Request parameters for getPublicationServices operation in PublicationAdvisoryServiceApi.
90
- * @export
91
- * @interface PublicationAdvisoryServiceApiGetPublicationServicesRequest
92
87
  */
93
88
  export interface PublicationAdvisoryServiceApiGetPublicationServicesRequest {
94
89
  /**
95
90
  * Gets or sets the search term used to filter organizations.
96
- * @type {string}
97
- * @memberof PublicationAdvisoryServiceApiGetPublicationServices
98
91
  */
99
92
  readonly searchTerm?: string;
100
93
  /**
@@ -105,28 +98,19 @@ export interface PublicationAdvisoryServiceApiGetPublicationServicesRequest {
105
98
  readonly language?: AcceptedLanguage;
106
99
  /**
107
100
  * The desired page number. Should be greater than or equal to 1. Default is 1.
108
- * @type {number}
109
- * @memberof PublicationAdvisoryServiceApiGetPublicationServices
110
101
  */
111
102
  readonly pageNumber?: number;
112
103
  /**
113
104
  * The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10.
114
- * @type {number}
115
- * @memberof PublicationAdvisoryServiceApiGetPublicationServices
116
105
  */
117
106
  readonly pageSize?: number;
118
107
  /**
119
108
  * Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \&quot;asc\&quot; or \&quot;desc\&quot; and separate properties by commas. Default is asc.
120
- * @type {string}
121
- * @memberof PublicationAdvisoryServiceApiGetPublicationServices
122
109
  */
123
110
  readonly orderBy?: string;
124
111
  }
125
112
  /**
126
113
  * PublicationAdvisoryServiceApi - object-oriented interface
127
- * @export
128
- * @class PublicationAdvisoryServiceApi
129
- * @extends {BaseAPI}
130
114
  */
131
115
  export declare class PublicationAdvisoryServiceApi extends BaseAPI {
132
116
  /**
@@ -134,7 +118,6 @@ export declare class PublicationAdvisoryServiceApi extends BaseAPI {
134
118
  * @summary Responds with the HTTP methods allowed for the endpoint.
135
119
  * @param {*} [options] Override http request option.
136
120
  * @throws {RequiredError}
137
- * @memberof PublicationAdvisoryServiceApi
138
121
  */
139
122
  apiV2PublicationServiceOptions(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
140
123
  /**
@@ -143,7 +126,6 @@ export declare class PublicationAdvisoryServiceApi extends BaseAPI {
143
126
  * @param {PublicationAdvisoryServiceApiGetPublicationServicesRequest} requestParameters Request parameters.
144
127
  * @param {*} [options] Override http request option.
145
128
  * @throws {RequiredError}
146
- * @memberof PublicationAdvisoryServiceApi
147
129
  */
148
130
  getPublicationServices(requestParameters?: PublicationAdvisoryServiceApiGetPublicationServicesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PublicationAdvisoryServiceDtoPagedResponse, any>>;
149
131
  }
@@ -17,6 +17,7 @@ import type { ProjectInvitationResolveDto } from '../../@coscine/model';
17
17
  import type { UserDtoResponse } from '../../@coscine/model';
18
18
  import type { UserForUpdateDto } from '../../@coscine/model';
19
19
  import type { UserMergeDtoResponse } from '../../@coscine/model';
20
+ import type { UserProjectRoleCountDtoResponse } from '../../@coscine/model';
20
21
  import type { UserTermsOfServiceAcceptDto } from '../../@coscine/model';
21
22
  /**
22
23
  * SelfApi - axios parameter creator
@@ -53,6 +54,13 @@ export declare const SelfApiAxiosParamCreator: (configuration?: Configuration) =
53
54
  * @throws {RequiredError}
54
55
  */
55
56
  deleteCurrentUser: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
57
+ /**
58
+ *
59
+ * @summary Retrieves the number of active project roles for the currently authenticated user.
60
+ * @param {*} [options] Override http request option.
61
+ * @throws {RequiredError}
62
+ */
63
+ getActiveProjectRolesCount: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
56
64
  /**
57
65
  *
58
66
  * @summary Retrieves the current authenticated user.
@@ -127,6 +135,13 @@ export declare const SelfApiFp: (configuration?: Configuration) => {
127
135
  * @throws {RequiredError}
128
136
  */
129
137
  deleteCurrentUser(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
138
+ /**
139
+ *
140
+ * @summary Retrieves the number of active project roles for the currently authenticated user.
141
+ * @param {*} [options] Override http request option.
142
+ * @throws {RequiredError}
143
+ */
144
+ getActiveProjectRolesCount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserProjectRoleCountDtoResponse>>;
130
145
  /**
131
146
  *
132
147
  * @summary Retrieves the current authenticated user.
@@ -201,6 +216,13 @@ export declare const SelfApiFactory: (configuration?: Configuration, basePath?:
201
216
  * @throws {RequiredError}
202
217
  */
203
218
  deleteCurrentUser(options?: RawAxiosRequestConfig): AxiosPromise<void>;
219
+ /**
220
+ *
221
+ * @summary Retrieves the number of active project roles for the currently authenticated user.
222
+ * @param {*} [options] Override http request option.
223
+ * @throws {RequiredError}
224
+ */
225
+ getActiveProjectRolesCount(options?: RawAxiosRequestConfig): AxiosPromise<UserProjectRoleCountDtoResponse>;
204
226
  /**
205
227
  *
206
228
  * @summary Retrieves the current authenticated user.
@@ -343,9 +365,15 @@ export declare class SelfApi extends BaseAPI {
343
365
  * @summary Deletes the current authenticated user.
344
366
  * @param {*} [options] Override http request option.
345
367
  * @throws {RequiredError}
346
- * @memberof SelfApi
347
368
  */
348
369
  deleteCurrentUser(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
370
+ /**
371
+ *
372
+ * @summary Retrieves the number of active project roles for the currently authenticated user.
373
+ * @param {*} [options] Override http request option.
374
+ * @throws {RequiredError}
375
+ */
376
+ getActiveProjectRolesCount(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserProjectRoleCountDtoResponse, any>>;
349
377
  /**
350
378
  *
351
379
  * @summary Retrieves the current authenticated user.
@@ -201,6 +201,8 @@ export * from './user-notification-opt-out-dto';
201
201
  export * from './user-notification-opt-out-dto-paged-response';
202
202
  export * from './user-notification-opt-out-dto-response';
203
203
  export * from './user-organization-dto';
204
+ export * from './user-project-role-count-dto';
205
+ export * from './user-project-role-count-dto-response';
204
206
  export * from './user-terms-of-service-accept-dto';
205
207
  export * from './variant-dto';
206
208
  export * from './visibility-dto';
@@ -11,40 +11,10 @@
11
11
  */
12
12
  import type { Pagination } from './pagination';
13
13
  import type { PublicationAdvisoryServiceDto } from './publication-advisory-service-dto';
14
- /**
15
- *
16
- * @export
17
- * @interface PublicationAdvisoryServiceDtoPagedResponse
18
- */
19
14
  export interface PublicationAdvisoryServiceDtoPagedResponse {
20
- /**
21
- *
22
- * @type {Array<PublicationAdvisoryServiceDto>}
23
- * @memberof PublicationAdvisoryServiceDtoPagedResponse
24
- */
25
15
  'data'?: Array<PublicationAdvisoryServiceDto> | null;
26
- /**
27
- *
28
- * @type {boolean}
29
- * @memberof PublicationAdvisoryServiceDtoPagedResponse
30
- */
31
16
  'isSuccess'?: boolean;
32
- /**
33
- *
34
- * @type {number}
35
- * @memberof PublicationAdvisoryServiceDtoPagedResponse
36
- */
37
17
  'statusCode'?: number | null;
38
- /**
39
- *
40
- * @type {string}
41
- * @memberof PublicationAdvisoryServiceDtoPagedResponse
42
- */
43
18
  'traceId'?: string | null;
44
- /**
45
- *
46
- * @type {Pagination}
47
- * @memberof PublicationAdvisoryServiceDtoPagedResponse
48
- */
49
19
  'pagination'?: Pagination;
50
20
  }
@@ -17,26 +17,18 @@
17
17
  export interface PublicationAdvisoryServiceDto {
18
18
  /**
19
19
  * Gets the data publication service\'s display name.
20
- * @type {string}
21
- * @memberof PublicationAdvisoryServiceDto
22
20
  */
23
21
  'displayName': string;
24
22
  /**
25
23
  * Gets the data publication service\'s email address.
26
- * @type {string}
27
- * @memberof PublicationAdvisoryServiceDto
28
24
  */
29
25
  'email': string;
30
26
  /**
31
27
  * Gets the data publication service\'s description.
32
- * @type {string}
33
- * @memberof PublicationAdvisoryServiceDto
34
28
  */
35
29
  'description'?: string | null;
36
30
  /**
37
31
  * Gets the ROR of the organization that provides this publication service.
38
- * @type {string}
39
- * @memberof PublicationAdvisoryServiceDto
40
32
  */
41
33
  'organizationRor'?: string | null;
42
34
  }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Coscine Web API
3
+ * Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project.
4
+ *
5
+ * The version of the OpenAPI document: 2.0
6
+ * Contact: servicedesk@rwth-aachen.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { UserProjectRoleCountDto } from './user-project-role-count-dto';
13
+ export interface UserProjectRoleCountDtoResponse {
14
+ 'data'?: UserProjectRoleCountDto;
15
+ 'isSuccess'?: boolean;
16
+ 'statusCode'?: number | null;
17
+ 'traceId'?: string | null;
18
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Coscine Web API
3
+ * Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project.
4
+ *
5
+ * The version of the OpenAPI document: 2.0
6
+ * Contact: servicedesk@rwth-aachen.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Represents a Data Transfer Object containing the number of active project roles for a user.
14
+ */
15
+ export interface UserProjectRoleCountDto {
16
+ /**
17
+ * Gets the total number of active project roles associated with the current authenticated user.
18
+ */
19
+ 'activeProjectRolesTotal'?: number;
20
+ }
@@ -189,6 +189,7 @@ declare function implementations(axios?: AxiosInstance): {
189
189
  apiV2SelfOptions(options?: import("axios").RawAxiosRequestConfig | undefined): import("axios").AxiosPromise<void>;
190
190
  confirmUserEmail(requestParameters: import("./Coscine.Api/api").SelfApiConfirmUserEmailRequest, options?: import("axios").RawAxiosRequestConfig | undefined): import("axios").AxiosPromise<void>;
191
191
  deleteCurrentUser(options?: import("axios").RawAxiosRequestConfig | undefined): import("axios").AxiosPromise<void>;
192
+ getActiveProjectRolesCount(options?: import("axios").RawAxiosRequestConfig | undefined): import("axios").AxiosPromise<import("./Coscine.Api").UserProjectRoleCountDtoResponse>;
192
193
  getCurrentUser(options?: import("axios").RawAxiosRequestConfig | undefined): import("axios").AxiosPromise<import("./Coscine.Api").UserDtoResponse>;
193
194
  giveDataProcessingConsent(options?: import("axios").RawAxiosRequestConfig | undefined): import("axios").AxiosPromise<void>;
194
195
  initiateUserMerge(requestParameters: import("./Coscine.Api/api").SelfApiInitiateUserMergeRequest, options?: import("axios").RawAxiosRequestConfig | undefined): import("axios").AxiosPromise<import("./Coscine.Api").UserMergeDtoResponse>;
@@ -188,6 +188,7 @@ declare const apis: {
188
188
  apiV2SelfOptions(options?: import("axios").RawAxiosRequestConfig | undefined): import("axios").AxiosPromise<void>;
189
189
  confirmUserEmail(requestParameters: import("./Coscine.Api").SelfApiConfirmUserEmailRequest, options?: import("axios").RawAxiosRequestConfig | undefined): import("axios").AxiosPromise<void>;
190
190
  deleteCurrentUser(options?: import("axios").RawAxiosRequestConfig | undefined): import("axios").AxiosPromise<void>;
191
+ getActiveProjectRolesCount(options?: import("axios").RawAxiosRequestConfig | undefined): import("axios").AxiosPromise<import("./Coscine.Api").UserProjectRoleCountDtoResponse>;
191
192
  getCurrentUser(options?: import("axios").RawAxiosRequestConfig | undefined): import("axios").AxiosPromise<import("./Coscine.Api").UserDtoResponse>;
192
193
  giveDataProcessingConsent(options?: import("axios").RawAxiosRequestConfig | undefined): import("axios").AxiosPromise<void>;
193
194
  initiateUserMerge(requestParameters: import("./Coscine.Api").SelfApiInitiateUserMergeRequest, options?: import("axios").RawAxiosRequestConfig | undefined): import("axios").AxiosPromise<import("./Coscine.Api").UserMergeDtoResponse>;
@@ -450,6 +451,7 @@ export declare const SelfApi: {
450
451
  apiV2SelfOptions(options?: import("axios").RawAxiosRequestConfig | undefined): import("axios").AxiosPromise<void>;
451
452
  confirmUserEmail(requestParameters: import("./Coscine.Api").SelfApiConfirmUserEmailRequest, options?: import("axios").RawAxiosRequestConfig | undefined): import("axios").AxiosPromise<void>;
452
453
  deleteCurrentUser(options?: import("axios").RawAxiosRequestConfig | undefined): import("axios").AxiosPromise<void>;
454
+ getActiveProjectRolesCount(options?: import("axios").RawAxiosRequestConfig | undefined): import("axios").AxiosPromise<import("./Coscine.Api").UserProjectRoleCountDtoResponse>;
453
455
  getCurrentUser(options?: import("axios").RawAxiosRequestConfig | undefined): import("axios").AxiosPromise<import("./Coscine.Api").UserDtoResponse>;
454
456
  giveDataProcessingConsent(options?: import("axios").RawAxiosRequestConfig | undefined): import("axios").AxiosPromise<void>;
455
457
  initiateUserMerge(requestParameters: import("./Coscine.Api").SelfApiInitiateUserMergeRequest, options?: import("axios").RawAxiosRequestConfig | undefined): import("axios").AxiosPromise<import("./Coscine.Api").UserMergeDtoResponse>;
@@ -463,6 +465,13 @@ export declare const SelfApiTokenApi: {
463
465
  getApiToken(requestParameters: import("./Coscine.Api").SelfApiTokenApiGetApiTokenRequest, options?: import("axios").RawAxiosRequestConfig | undefined): import("axios").AxiosPromise<import("./Coscine.Api").ApiTokenDtoResponse>;
464
466
  revokeToken(requestParameters: import("./Coscine.Api").SelfApiTokenApiRevokeTokenRequest, options?: import("axios").RawAxiosRequestConfig | undefined): import("axios").AxiosPromise<void>;
465
467
  };
468
+ export declare const SelfSessionApi: {
469
+ apiV2SelfSessionLogoutPost(options?: import("axios").RawAxiosRequestConfig | undefined): import("axios").AxiosPromise<void>;
470
+ apiV2SelfSessionOptions(options?: import("axios").RawAxiosRequestConfig | undefined): import("axios").AxiosPromise<void>;
471
+ login(options?: import("axios").RawAxiosRequestConfig | undefined): import("axios").AxiosPromise<void>;
472
+ loginWithProvider(requestParameters: import("./Coscine.Api").SelfSessionApiLoginWithProviderRequest, options?: import("axios").RawAxiosRequestConfig | undefined): import("axios").AxiosPromise<void>;
473
+ merge(requestParameters: import("./Coscine.Api").SelfSessionApiMergeRequest, options?: import("axios").RawAxiosRequestConfig | undefined): import("axios").AxiosPromise<void>;
474
+ };
466
475
  export declare const ShibbolethApi: {
467
476
  shibbolethCallback(requestParameters?: import("./Coscine.Api.STS").ShibbolethApiShibbolethCallbackRequest, options?: import("axios").AxiosRequestConfig<any> | undefined): import("axios").AxiosPromise<File>;
468
477
  shibbolethLogin(requestParameters?: import("./Coscine.Api.STS").ShibbolethApiShibbolethLoginRequest, options?: import("axios").AxiosRequestConfig<any> | undefined): import("axios").AxiosPromise<File>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coscine/api-client",
3
3
  "type": "module",
4
- "version": "3.22.0",
4
+ "version": "3.24.0",
5
5
  "description": "This project contains the generated api client classes.",
6
6
  "keywords": [
7
7
  "coscine",