@vidispine/vdt-api 24.4.0-pre.2 → 25.3.0-pre.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -199,7 +199,7 @@ function V({
199
199
  ...a
200
200
  });
201
201
  }
202
- function K({
202
+ function H({
203
203
  entityType: e = o(),
204
204
  entityId: t = o(),
205
205
  accessControlListDocument: n,
@@ -213,7 +213,7 @@ function K({
213
213
  ...a
214
214
  });
215
215
  }
216
- function H({
216
+ function K({
217
217
  entityType: e = o(),
218
218
  entityId: t = o(),
219
219
  accessControlListDocument: n,
@@ -301,8 +301,8 @@ const ed = {
301
301
  getEntityAccessMergedGroup: N,
302
302
  removeEntityAccess: J,
303
303
  updateEntityOwner: V,
304
- createEntityAccessBulk: K,
305
- removeEntityAccessBulk: H,
304
+ createEntityAccessBulk: H,
305
+ removeEntityAccessBulk: K,
306
306
  getEntityAccessGraph: Q,
307
307
  getEntityAccessGraphDot: _,
308
308
  createItemAllAccess: W,
@@ -892,10 +892,11 @@ class qt {
892
892
  (this.state.status !== c.statuses.complete || this.state.status !== c.statuses.offline) && (this.state.bytesTransfered = n.loaded, this.events.trigger(c.events.progress, this.state));
893
893
  }
894
894
  };
895
- return this.end - this.start !== this.fileSize && (t.headers = {
895
+ return t = { ...t, ...this.api.props || {} }, this.end - this.start !== this.fileSize && (t.headers = {
896
896
  index: this.start,
897
- size: this.fileSize
898
- }), t = { ...t, ...this.api.props }, this.transferPromise = this.api.method(t), this.state.status = c.statuses.transfering, this.transferPromise;
897
+ size: this.fileSize,
898
+ ...t.headers || {}
899
+ }), this.transferPromise = this.api.method(t), this.state.status = c.statuses.transfering, this.transferPromise;
899
900
  }
900
901
  onComplete() {
901
902
  this.state.status = c.statuses.complete, this.state.bytesTransfered = this.end - this.start, this.state.completeTime = performance.now(), this.events.trigger(c.events.complete);
@@ -957,21 +958,25 @@ class A {
957
958
  const { status: t } = this.state;
958
959
  if (t !== c.statuses.complete)
959
960
  if (t === c.statuses.unstarted || t === c.statuses.transfering) {
960
- this.state.transferPromises = [];
961
- const n = () => {
962
- const a = this.state.chunks[0].state.status;
963
- return this.state.transferPromises.length < this.state.maxConcurrentTransfers && (a !== c.statuses.transfering || a === c.statuses.unstarted);
961
+ const n = this.state.chunks.length;
962
+ let a = 0;
963
+ const s = () => {
964
+ for (; this.state.transferPromises.length < this.state.maxConcurrentTransfers && a < n; ) {
965
+ const i = this.state.chunks[a];
966
+ if (a += 1, i.state.status !== c.statuses.complete && i.state.status !== c.statuses.transfering) {
967
+ this.state.status = c.statuses.transfering;
968
+ const u = i.try();
969
+ this.state.transferPromises.push(u), u.then(() => {
970
+ const h = this.state.transferPromises.indexOf(u);
971
+ h !== -1 && this.state.transferPromises.splice(h, 1), this.state.status !== c.statuses.canceled && s();
972
+ }).catch((h) => {
973
+ const d = this.state.transferPromises.indexOf(u);
974
+ d !== -1 && this.state.transferPromises.splice(d, 1), console.log("Failed on this upload(), check connectivity and try to resume", h), this.state.status !== c.statuses.offline ? (this.state.status = c.statuses.failed, this.events.trigger(c.events.failed, { error: h, transfer: this })) : setTimeout(() => this.retry(), 5e3);
975
+ });
976
+ }
977
+ }
964
978
  };
965
- n() && (this.state.chunks.forEach((a) => {
966
- a.state.status !== c.statuses.complete && a.state.status !== c.statuses.transfering && n() && (this.state.status = c.statuses.transfering, this.state.transferPromises.push(a.try()));
967
- }), this.state.transferPromises.length > 0 && Promise.all(this.state.transferPromises).then(() => {
968
- this.upload();
969
- }).catch((a) => {
970
- console.log(
971
- "Failed on this upload() cycle, check connectivity and try to resume :(",
972
- a
973
- ), this.state.status !== c.statuses.offline ? (this.state.status = c.statuses.failed, this.events.trigger(c.events.failed, { error: a, transfer: this })) : setTimeout(() => this.retry(), 5e3);
974
- }));
979
+ s();
975
980
  } else
976
981
  this.retry();
977
982
  }
@@ -1031,8 +1036,7 @@ class A {
1031
1036
  cancel() {
1032
1037
  this.state.status = c.statuses.canceled, this.state.chunks.length > 0 && this.state.chunks.forEach((n) => {
1033
1038
  n.cancel();
1034
- }), this.upload = () => {
1035
- };
1039
+ });
1036
1040
  const t = Promise.all(this.state.transferPromises);
1037
1041
  return t.then(() => {
1038
1042
  this.events.trigger(c.events.removed, this);
@@ -1321,7 +1325,7 @@ function Vt({ entity: e = o(), entityId: t = o(), ...n }) {
1321
1325
  ...n
1322
1326
  });
1323
1327
  }
1324
- function Kt({
1328
+ function Ht({
1325
1329
  entity: e = o(),
1326
1330
  entityId: t = o(),
1327
1331
  changesetId: n = o(),
@@ -1334,7 +1338,7 @@ function Kt({
1334
1338
  ...a
1335
1339
  });
1336
1340
  }
1337
- function Ht({
1341
+ function Kt({
1338
1342
  entity: e = o(),
1339
1343
  entityId: t = o(),
1340
1344
  changesetId: n = o(),
@@ -1634,8 +1638,8 @@ const $ = {
1634
1638
  updateEntityMetadata: Nt,
1635
1639
  moveEntityMetadata: Jt,
1636
1640
  listEntityMetadataChange: Vt,
1637
- getEntityMetadataChange: Kt,
1638
- previousEntityMetadataChange: Ht,
1641
+ getEntityMetadataChange: Ht,
1642
+ previousEntityMetadataChange: Kt,
1639
1643
  compareEntityMetadataChange: Qt,
1640
1644
  updateEntityMetadataChange: _t,
1641
1645
  updateAllEntityMetadataChange: Wt,
@@ -1886,7 +1890,7 @@ function Ve({ collectionId: e = o(), ...t }) {
1886
1890
  ...t
1887
1891
  });
1888
1892
  }
1889
- function Ke({ collectionId: e = o(), ...t }) {
1893
+ function He({ collectionId: e = o(), ...t }) {
1890
1894
  const n = `/API/collection/${e}/map-to-folder`;
1891
1895
  return r({
1892
1896
  path: n,
@@ -1894,7 +1898,7 @@ function Ke({ collectionId: e = o(), ...t }) {
1894
1898
  ...t
1895
1899
  });
1896
1900
  }
1897
- function He({
1901
+ function Ke({
1898
1902
  collectionId: e = o(),
1899
1903
  queryParams: t = o(),
1900
1904
  ...n
@@ -1980,8 +1984,8 @@ const id = {
1980
1984
  updateCollection: Ne,
1981
1985
  orderCollection: Je,
1982
1986
  markFolderCollection: Ve,
1983
- unMarkFolderCollection: Ke,
1984
- updateFolderCollection: He,
1987
+ unMarkFolderCollection: He,
1988
+ updateFolderCollection: Ke,
1985
1989
  listCollectionMetadataLock: Qe,
1986
1990
  createCollectionMetadataLock: _e,
1987
1991
  getCollectionMetadataLock: We,
@@ -2418,7 +2422,7 @@ function Vn({ ...e } = {}) {
2418
2422
  ...e
2419
2423
  });
2420
2424
  }
2421
- function Kn({
2425
+ function Hn({
2422
2426
  bulkyMetadataConfigurationDocument: e = o(),
2423
2427
  ...t
2424
2428
  }) {
@@ -2462,9 +2466,9 @@ const ud = {
2462
2466
  updateJobPriorityConfiguration: Nn,
2463
2467
  removeJobPriorityConfiguration: Jn,
2464
2468
  getBulkyMetadataConfiguration: Vn,
2465
- updateBulkyMetadataConfiguration: Kn
2469
+ updateBulkyMetadataConfiguration: Hn
2466
2470
  };
2467
- function Hn({ conformRequestDocument: e = o(), ...t }) {
2471
+ function Kn({ conformRequestDocument: e = o(), ...t }) {
2468
2472
  return r({
2469
2473
  path: "/API/conform",
2470
2474
  body: e,
@@ -2487,7 +2491,7 @@ function Qn({
2487
2491
  });
2488
2492
  }
2489
2493
  const hd = {
2490
- createConform: Hn,
2494
+ createConform: Kn,
2491
2495
  createConformItem: Qn
2492
2496
  };
2493
2497
  function _n({ xmlDocument: e = o(), headers: t = {}, ...n }) {
@@ -3004,14 +3008,14 @@ function Vo({ metadataFieldGroupSearchDocument: e, ...t }) {
3004
3008
  ...t
3005
3009
  });
3006
3010
  }
3007
- function Ko({ groupName: e = o(), ...t }) {
3011
+ function Ho({ groupName: e = o(), ...t }) {
3008
3012
  return jo({
3009
3013
  entityType: "metadata-field/field-group",
3010
3014
  entityId: e,
3011
3015
  ...t
3012
3016
  });
3013
3017
  }
3014
- function Ho({ groupName: e = o(), ...t }) {
3018
+ function Ko({ groupName: e = o(), ...t }) {
3015
3019
  const n = `/API/metadata-field/field-group/${e}/access`;
3016
3020
  return r({
3017
3021
  path: n,
@@ -3065,8 +3069,8 @@ const $d = {
3065
3069
  updateFieldGroupChild: No,
3066
3070
  removeFieldGroupChild: Jo,
3067
3071
  searchFieldGroup: Vo,
3068
- getSimpleMetadata: Ko,
3069
- listFieldGroupAccess: Ho,
3072
+ getSimpleMetadata: Ho,
3073
+ listFieldGroupAccess: Ko,
3070
3074
  createFieldGroupAccess: Qo,
3071
3075
  removeFieldGroupAccess: _o,
3072
3076
  listFieldGroupMergedAccess: Wo,
@@ -3510,7 +3514,7 @@ const Id = {
3510
3514
  getGroupUser: qa,
3511
3515
  addGroupUser: Ba,
3512
3516
  removeGroupUser: Na
3513
- }, { createFileEntity: Ja, createFileTemporaryCredentials: Va, updateFileState: Ka, abandonFile: Ha } = ya;
3517
+ }, { createFileEntity: Ja, createFileTemporaryCredentials: Va, updateFileState: Ha, abandonFile: Ka } = ya;
3514
3518
  function Qa({ metadataDocument: e = {}, ...t } = {}) {
3515
3519
  return r({
3516
3520
  path: "/API/import/",
@@ -3698,11 +3702,11 @@ function hr({ file: e = o(), storageId: t = o() }) {
3698
3702
  body: e
3699
3703
  });
3700
3704
  }).then(() => {
3701
- Ka({ fileId: s, state: "CLOSED" });
3705
+ Ha({ fileId: s, state: "CLOSED" });
3702
3706
  }).then(() => {
3703
3707
  n(i);
3704
3708
  }).catch((u) => {
3705
- s && Ha({ fileId: s }), a(u.response);
3709
+ s && Ka({ fileId: s }), a(u.response);
3706
3710
  });
3707
3711
  });
3708
3712
  }
@@ -3958,7 +3962,7 @@ function Vr({ ...e } = {}) {
3958
3962
  ...e
3959
3963
  });
3960
3964
  }
3961
- function Kr({ itemId: e = o(), ...t }) {
3965
+ function Hr({ itemId: e = o(), ...t }) {
3962
3966
  const n = `/API/item/${e}/re-index`;
3963
3967
  return r({
3964
3968
  path: n,
@@ -3966,7 +3970,7 @@ function Kr({ itemId: e = o(), ...t }) {
3966
3970
  ...t
3967
3971
  });
3968
3972
  }
3969
- function Hr({ ...e } = {}) {
3973
+ function Kr({ ...e } = {}) {
3970
3974
  return r({
3971
3975
  path: "/API/item/list",
3972
3976
  method: "POST",
@@ -4126,8 +4130,8 @@ const yd = {
4126
4130
  updateRelation: Nr,
4127
4131
  removeRelation: Jr,
4128
4132
  getItemSearchHistory: Vr,
4129
- reindexItem: Kr,
4130
- createItemList: Hr,
4133
+ reindexItem: Hr,
4134
+ createItemList: Kr,
4131
4135
  listItemCollection: Qr,
4132
4136
  listItemLibrary: _r,
4133
4137
  createItemLock: Wr,
@@ -4502,7 +4506,7 @@ const Gd = {
4502
4506
  getLibraryBatch: Js,
4503
4507
  exportLibrary: Vs
4504
4508
  };
4505
- function Ks({ file: e = o(), headers: t = {}, ...n }) {
4509
+ function Hs({ file: e = o(), headers: t = {}, ...n }) {
4506
4510
  const a = { contentType: "application/octet-stream", ...t };
4507
4511
  return r({
4508
4512
  path: "/API/license",
@@ -4512,8 +4516,8 @@ function Ks({ file: e = o(), headers: t = {}, ...n }) {
4512
4516
  ...n
4513
4517
  });
4514
4518
  }
4515
- const vd = { createLicense: Ks };
4516
- function Hs({ ...e } = {}) {
4519
+ const vd = { createLicense: Hs };
4520
+ function Ks({ ...e } = {}) {
4517
4521
  return r({
4518
4522
  path: "/API/metadata/dataset",
4519
4523
  method: "GET",
@@ -4546,7 +4550,7 @@ function Ws({ datasetId: e = o(), ...t }) {
4546
4550
  });
4547
4551
  }
4548
4552
  const kd = {
4549
- listMetadataDataset: Hs,
4553
+ listMetadataDataset: Ks,
4550
4554
  getMetadataDataset: Qs,
4551
4555
  updateMetadataDataset: _s,
4552
4556
  removeMetadataDataset: Ws
@@ -5094,7 +5098,7 @@ function Vi({
5094
5098
  ...a
5095
5099
  });
5096
5100
  }
5097
- function Ki({ projectionId: e = o(), ...t }) {
5101
+ function Hi({ projectionId: e = o(), ...t }) {
5098
5102
  const n = `/API/projection/${e}`;
5099
5103
  return r({
5100
5104
  path: n,
@@ -5108,9 +5112,9 @@ const Dd = {
5108
5112
  getProjectionIncoming: Ni,
5109
5113
  updateProjectionOutgoing: Ji,
5110
5114
  updateProjectionIncoming: Vi,
5111
- removeProjection: Ki
5115
+ removeProjection: Hi
5112
5116
  };
5113
- function Hi({ ...e } = {}) {
5117
+ function Ki({ ...e } = {}) {
5114
5118
  return r({
5115
5119
  path: "/API/quota/",
5116
5120
  method: "GET",
@@ -5150,7 +5154,7 @@ function Xi({ ruleId: e = o(), ...t }) {
5150
5154
  });
5151
5155
  }
5152
5156
  const Od = {
5153
- listQuota: Hi,
5157
+ listQuota: Ki,
5154
5158
  createQuota: Qi,
5155
5159
  getQuota: _i,
5156
5160
  evaluateQuota: Wi,
@@ -5663,7 +5667,7 @@ function Vc({
5663
5667
  ...a
5664
5668
  });
5665
5669
  }
5666
- function Kc({ itemId: e = o(), ...t }) {
5670
+ function Hc({ itemId: e = o(), ...t }) {
5667
5671
  const n = `/API/item/${e}/shape/`;
5668
5672
  return r({
5669
5673
  path: n,
@@ -5671,7 +5675,7 @@ function Kc({ itemId: e = o(), ...t }) {
5671
5675
  ...t
5672
5676
  });
5673
5677
  }
5674
- function Hc({ itemId: e = o(), shapeId: t = o(), ...n }) {
5678
+ function Kc({ itemId: e = o(), shapeId: t = o(), ...n }) {
5675
5679
  const a = `/API/item/${e}/shape/${t}/`;
5676
5680
  return r({
5677
5681
  path: a,
@@ -6013,8 +6017,8 @@ const Jd = {
6013
6017
  createShapeImport: Nc,
6014
6018
  createShapeImportImp: Jc,
6015
6019
  createShapeImportRaw: Vc,
6016
- listShape: Kc,
6017
- getShape: Hc,
6020
+ listShape: Hc,
6021
+ getShape: Kc,
6018
6022
  getShapeGraph: Qc,
6019
6023
  getShapeGraphDot: _c,
6020
6024
  getShapeCpl: Wc,
@@ -6153,7 +6157,7 @@ function ju({ headers: e = {}, ...t } = {}) {
6153
6157
  ...t
6154
6158
  });
6155
6159
  }
6156
- const Kd = { getStitch: ju };
6160
+ const Hd = { getStitch: ju };
6157
6161
  function Fu({ ...e } = {}) {
6158
6162
  return r({
6159
6163
  path: "/API/storage/",
@@ -6236,7 +6240,7 @@ function Vu({ storageId: e = o(), headers: t = {}, ...n }) {
6236
6240
  ...n
6237
6241
  });
6238
6242
  }
6239
- function Ku({
6243
+ function Hu({
6240
6244
  storageId: e = o(),
6241
6245
  storageMethodId: t = o(),
6242
6246
  headers: n = {},
@@ -6250,7 +6254,7 @@ function Ku({
6250
6254
  ...a
6251
6255
  });
6252
6256
  }
6253
- function Hu({
6257
+ function Ku({
6254
6258
  storageId: e = o(),
6255
6259
  storageMethodId: t = o(),
6256
6260
  headers: n = {},
@@ -6313,7 +6317,7 @@ function Zu({ storageId: e = o(), storageType: t = o(), ...n }) {
6313
6317
  ...n
6314
6318
  });
6315
6319
  }
6316
- const Hd = {
6320
+ const Kd = {
6317
6321
  listStorage: Fu,
6318
6322
  createStorage: Ru,
6319
6323
  getStorage: wu,
@@ -6323,8 +6327,8 @@ const Hd = {
6323
6327
  removeStorageMetadata: Nu,
6324
6328
  rescanStorage: Ju,
6325
6329
  createStorageMethod: Vu,
6326
- modifyStorageMethod: Ku,
6327
- removeStorageMethod: Hu,
6330
+ modifyStorageMethod: Hu,
6331
+ removeStorageMethod: Ku,
6328
6332
  getStorageMethod: Qu,
6329
6333
  listStorageMethod: _u,
6330
6334
  removeStorage: Wu,
@@ -6843,7 +6847,7 @@ function Vh({ itemId: e = o(), ...t }) {
6843
6847
  ...t
6844
6848
  });
6845
6849
  }
6846
- function Kh({ itemId: e = o(), resourceId: t = o(), ...n }) {
6850
+ function Hh({ itemId: e = o(), resourceId: t = o(), ...n }) {
6847
6851
  const a = `/API/thumbnail/${t}/${e}`;
6848
6852
  return r({
6849
6853
  path: a,
@@ -6851,7 +6855,7 @@ function Kh({ itemId: e = o(), resourceId: t = o(), ...n }) {
6851
6855
  ...n
6852
6856
  });
6853
6857
  }
6854
- function Hh({ itemId: e = o(), resourceId: t = o(), ...n }) {
6858
+ function Kh({ itemId: e = o(), resourceId: t = o(), ...n }) {
6855
6859
  const a = `/API/thumbnail/${t}/${e}`;
6856
6860
  return r({
6857
6861
  path: a,
@@ -7007,8 +7011,8 @@ const Zd = {
7007
7011
  createThumbnail: Nh,
7008
7012
  listThumbnailResource: Jh,
7009
7013
  createThumbnailResource: Vh,
7010
- listThumbnail: Kh,
7011
- removeAllThumbnail: Hh,
7014
+ listThumbnail: Hh,
7015
+ removeAllThumbnail: Kh,
7012
7016
  updateThumbnail: Qh,
7013
7017
  getThumbnail: _h,
7014
7018
  exportThumbnail: Wh,
@@ -7436,7 +7440,7 @@ function Vp({ ...e } = {}) {
7436
7440
  });
7437
7441
  }
7438
7442
  const am = { getVersion: Vp };
7439
- function Kp({ path: e = o(), ...t }) {
7443
+ function Hp({ path: e = o(), ...t }) {
7440
7444
  const n = `/API/cost/${e}`;
7441
7445
  return r({
7442
7446
  path: n,
@@ -7444,7 +7448,7 @@ function Kp({ path: e = o(), ...t }) {
7444
7448
  ...t
7445
7449
  });
7446
7450
  }
7447
- function Hp({ costEstimateId: e = o(), ...t }) {
7451
+ function Kp({ costEstimateId: e = o(), ...t }) {
7448
7452
  const n = `/API/cost/estimate/${e}`;
7449
7453
  return r({
7450
7454
  path: n,
@@ -7453,8 +7457,8 @@ function Hp({ costEstimateId: e = o(), ...t }) {
7453
7457
  });
7454
7458
  }
7455
7459
  const rm = {
7456
- createCostEstimate: Kp,
7457
- getCostEstimate: Hp
7460
+ createCostEstimate: Hp,
7461
+ getCostEstimate: Kp
7458
7462
  };
7459
7463
  function Qp({ ...e } = {}) {
7460
7464
  return r({
@@ -7556,8 +7560,8 @@ export {
7556
7560
  Nd as service,
7557
7561
  Jd as shape,
7558
7562
  Vd as shapetag,
7559
- Kd as stitch,
7560
- Hd as storage,
7563
+ Hd as stitch,
7564
+ Kd as storage,
7561
7565
  Qd as storagegroup,
7562
7566
  _d as storagerule,
7563
7567
  Wd as subtitle,
@@ -1 +1 @@
1
- (function(h,$){typeof exports=="object"&&typeof module<"u"?$(exports,require("buffer"),require("axios")):typeof define=="function"&&define.amd?define(["exports","buffer","axios"],$):(h=typeof globalThis<"u"?globalThis:h||self,$(h["@vidispine/vdt-api"]={},h.buffer,h.axios))})(this,function(h,$,G){"use strict";const P=G.create(),{CancelToken:O}=G;function x({baseURL:e,token:t,username:n,password:a,bearerToken:s}){e&&(P.defaults.baseURL=e),t&&(P.defaults.headers.Authorization=`token ${t}`),s&&(P.defaults.headers.Authorization=`Bearer ${s}`),(n||a)&&(P.defaults.auth={username:n,password:a})}function j(){delete P.defaults.headers.Authorization,delete P.defaults.auth}function F(e){return(e instanceof $.Buffer?e:$.Buffer.from(e.toString(),"binary")).toString("base64")}function v(e,t,n){let a;return s=>{const i=this,u=()=>{a=null,n||e.apply(i,s)},p=n&&!a;clearTimeout(a),a=setTimeout(u,t),p&&e.apply(i,s)}}function k(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function R({username:e=!1,password:t=!1,token:n,contentType:a="application/json",accept:s="application/json",...i}={}){const u={"content-type":a,Accept:s};if(e){const p=F(`${e}:${t}`);u.Authorization=`Basic ${p}`}else n&&(u.Authorization=`token ${n}`);return{...i,...u}}const w=["jobmetadata","jobMetadata","notificationdata","notificationData","methodMetadata"];function z(e,t=!0){const n=t?encodeURIComponent:u=>u,a=Object.keys(e);if(a.length===0)return"";const s=(u,p,m)=>{if(typeof e[p]>"u")return u;const d=e[p],f=m>0?"&":"";if(w.includes(p)&&Array.isArray(d)){const E=(S,D,im)=>`${S}${im>0?"&":""}${p}=${encodeURIComponent(`${D.key}=${D.value}`)}`,T=d.reduce(E,"");return`${u}${f}${T}`}return Array.isArray(d)?`${u}${f}${p}=${n(d.join(","))}`:`${u}${f}${p}=${n(d)}`};return a.reduce(s,"?")}function q(e){let t=e;if(Array.isArray(e)||(t=Object.entries(e)),t.length===0)return"";const n=(s,i)=>{let u,p;return Array.isArray(i)?[u,p]=i:([u]=Object.keys(i),[p]=Object.values(i)),p===""||p===void 0?s:`${s};${u}=${encodeURIComponent(p)}`};return t.reduce(n,"")}function o(){throw new Error("Missing property")}function r({path:e,method:t="GET",body:n,headers:a={},queryParams:s={},matrixParams:i=[],costEstimate:u=!1,encodeParams:p=!0,...m}={}){const d=z(s,p),f=q(i),E=R(a);let T=`${e}${f}${d}`;u&&(T=T.replace("/API/","/API/cost/"));const S={method:t,url:T,headers:E,data:n,...m};return P(S)}const U=Object.freeze(Object.defineProperty({__proto__:null,CancelToken:O,debounce:v,default:r,defaultClient:P,isRequired:o,login:x,logout:j,uuidv4:k,vFetch:r},Symbol.toStringTag,{value:"Module"}));function B({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/access/`;return r({path:a,method:"GET",...n})}function N({entityType:e=o(),entityId:t=o(),accessControlDocument:n,...a}){const s=`/API/${e}/${t}/access/`;return r({path:s,method:"POST",body:n,...a})}function J({entityType:e=o(),entityId:t=o(),accessId:n=o(),...a}){const s=`/API/${e}/${t}/access/${n}`;return r({path:s,method:"GET",...a})}function V({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/merged-access/`;return r({path:a,method:"GET",...n})}function K({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/merged-access/group`;return r({path:a,method:"GET",...n})}function H({entityType:e=o(),entityId:t=o(),accessId:n=o(),...a}){const s=`/API/${e}/${t}/access/${n}`;return r({path:s,method:"DELETE",...a})}function Q({entityType:e=o(),entityId:t=o(),userName:n=o(),...a}){const s=`/API/${e}/${t}/access/owner/${n}`;return r({path:s,method:"PUT",...a})}function _({entityType:e=o(),entityId:t=o(),accessControlListDocument:n,...a}){const s=`/API/${e}/${t}/access/bulk`;return r({path:s,method:"POST",body:n,...a})}function W({entityType:e=o(),entityId:t=o(),accessControlListDocument:n,...a}){const s=`/API/${e}/${t}/access/bulk`;return r({path:s,method:"DELETE",body:n,...a})}function X({entityType:e=o(),entityId:t=o(),headers:n={},...a}){const s=`/API/${e}/${t}/access/graph`,i={accept:"image/png",...n};return r({path:s,method:"GET",headers:i,...a})}function Y({entityType:e=o(),entityId:t=o(),headers:n={},...a}){const s=`/API/${e}/${t}/access/graph/dot`,i={accept:"text/plain",...n};return r({path:s,method:"GET",headers:i,...a})}function Z({accessControlDocument:e,...t}){return r({path:"/API/item/access/",method:"POST",body:e,...t})}function tt({...e}={}){return r({path:"/API/item/access/",method:"DELETE",...e})}function et({...e}={}){return r({path:"/API/import/access/",method:"GET",...e})}function nt({groupName:e=o(),...t}){const n=`/API/import/access/group/${e}`;return r({path:n,method:"PUT",...t})}function ot({groupName:e=o(),...t}){const n=`/API/import/access/group/${e}`;return r({path:n,method:"DELETE",...t})}const at={listEntityAccess:B,createEntityAccess:N,getEntityAccess:J,getEntityAccessMerged:V,getEntityAccessMergedGroup:K,removeEntityAccess:H,updateEntityOwner:Q,createEntityAccessBulk:_,removeEntityAccessBulk:W,getEntityAccessGraph:X,getEntityAccessGraphDot:Y,createItemAllAccess:Z,removeItemAllAccess:tt,getImportAccess:et,updateImportAccessGroup:nt,removeImportAccessGroup:ot};function rt({...e}={}){return r({path:"/API/analyze-preset",method:"GET",...e})}function st({preset:e=o(),...t}={}){const n=`/API/analyze-preset/${e}`;return r({path:n,method:"GET",...t})}const it={listAnalyzePreset:rt,getAnalyzePreset:st};function ct({...e}={}){return r({path:"/API/log/",method:"GET",...e})}function ut({...e}={}){return r({path:"/API/log/export",method:"GET",...e})}const ht={listAuditLog:ct,exportAuditLog:ut};function pt({...e}={}){return r({path:"/API/storage/auto-import/",method:"GET",...e})}function dt({storageId:e=o(),autoImportRuleDocument:t,...n}){const a=`/API/storage/${e}/auto-import/`;return r({path:a,method:"PUT",body:t,...n})}function mt({storageId:e=o(),...t}){const n=`/API/storage/${e}/auto-import/`;return r({path:n,method:"GET",...t})}function lt({storageId:e=o(),...t}){const n=`/API/storage/${e}/auto-import/`;return r({path:n,method:"DELETE",...t})}function ft({storageId:e=o(),...t}){const n=`/API/storage/${e}/auto-import/enable`;return r({path:n,method:"PUT",...t})}function Pt({storageId:e=o(),...t}){const n=`/API/storage/${e}/auto-import/disable`;return r({path:n,method:"PUT",...t})}const Tt={listAutoImport:pt,updateAutoImport:dt,getAutoImport:mt,removeAutoImport:lt,enableAutoImport:ft,disableAutoImport:Pt};function $t({...e}={}){return r({path:"/API/auto-projection",method:"GET",...e})}function gt({...e}={}){return r({path:"/API/auto-projection/disable",method:"GET",...e})}function It({...e}={}){return r({path:"/API/auto-projection/enable",method:"GET",...e})}function At({projectionName:e=o(),...t}){const n=`/API/auto-projection/${e}`;return r({path:n,method:"GET",...t})}function Et({projectionName:e=o(),autoProjectionRuleDocument:t=o(),...n}){const a=`/API/auto-projection/${e}`;return r({path:a,method:"PUT",body:t,...n})}function yt({projectionName:e=o(),...t}){const n=`/API/auto-projection/${e}`;return r({path:n,method:"DELETE",...t})}function bt({projectionName:e=o(),...t}){const n=`/API/auto-projection/${e}/enable`;return r({path:n,method:"PUT",...t})}function St({projectionName:e=o(),...t}){const n=`/API/auto-projection/${e}/disable`;return r({path:n,method:"PUT",...t})}const Gt={listAutoProjection:$t,listDisabledAutoProjection:gt,listEnabledAutoProjection:It,getAutoProjection:At,createAutoProjection:Et,removeAutoProjection:yt,enableAutoProjection:bt,disableAutoProjection:St};function vt({itemId:e=o(),...t}){const n=`/API/item/${e}/metadata/bulky`;return r({path:n,method:"GET",...t})}function kt({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/metadata/bulky`;return r({path:a,method:"GET",...n})}function Ut({itemId:e=o(),shapeId:t=o(),componentId:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/component/${n}/metadata/bulky`;return r({path:s,method:"GET",...a})}function Lt({itemId:e=o(),bulkyMetadataDocument:t=o(),...n}){const a=`/API/item/${e}/metadata/bulky`;return r({path:a,method:"PUT",body:t,...n})}function Ct({itemId:e=o(),shapeId:t=o(),bulkyMetadataDocument:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/metadata/bulky`;return r({path:s,method:"PUT",body:n,...a})}function Mt({itemId:e=o(),shapeId:t=o(),componentId:n=o(),bulkyMetadataDocument:a=o(),...s}){const i=`/API/item/${e}/shape/${t}/component/${n}/metadata/bulky`;return r({path:i,method:"PUT",body:a,...s})}function Dt({itemId:e=o(),...t}){const n=`/API/item/${e}/metadata/bulky`;return r({path:n,method:"DELETE",...t})}function Ot({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/metadata/bulky`;return r({path:a,method:"DELETE",...n})}function xt({itemId:e=o(),shapeId:t=o(),componentId:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/component/${n}/metadata/bulky`;return r({path:s,method:"DELETE",...a})}function jt({itemId:e=o(),key:t=o(),...n}){const a=`/API/item/${e}/metadata/bulky/${t}`;return r({path:a,method:"GET",...n})}function Ft({itemId:e=o(),key:t=o(),headers:n={},...a}){const s={accept:"application/octet-stream",...n},i=`/API/item/${e}/metadata/bulky/${t}/as-file`;return r({path:i,method:"GET",headers:s,transitional:{silentJSONParsing:!1,forcedJSONParsing:!1},...a})}function Rt({itemId:e=o(),shapeId:t=o(),key:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/metadata/bulky/${n}`;return r({path:s,method:"GET",...a})}function wt({itemId:e=o(),shapeId:t=o(),key:n=o(),headers:a={},...s}){const i={accept:"application/octet-stream",...a},u=`/API/item/${e}/shape/${t}/metadata/bulky/${n}/as-file`;return r({path:u,method:"GET",headers:i,transitional:{silentJSONParsing:!1,forcedJSONParsing:!1},...s})}function zt({itemId:e=o(),shapeId:t=o(),componentId:n=o(),key:a=o(),...s}){const i=`/API/item/${e}/shape/${t}/component/${n}/metadata/bulky/${a}`;return r({path:i,method:"GET",...s})}function qt({itemId:e=o(),shapeId:t=o(),componentId:n=o(),key:a=o(),headers:s={},...i}){const u={accept:"application/octet-stream",...s},p=`/API/item/${e}/shape/${t}/component/${n}/metadata/bulky/${a}/as-file`;return r({path:p,method:"GET",headers:u,transitional:{silentJSONParsing:!1,forcedJSONParsing:!1},...i})}function Bt({itemId:e=o(),key:t=o(),value:n=o(),headers:a={},...s}){const i=`/API/item/${e}/metadata/bulky/${t}`,u={contentType:"text/plain",...a};return r({path:i,method:"PUT",body:n,headers:u,...s})}function Nt({itemId:e=o(),shapeId:t=o(),key:n=o(),value:a=o(),headers:s={},...i}){const u=`/API/item/${e}/shape/${t}/metadata/bulky/${n}`,p={contentType:"text/plain",...s};return r({path:u,method:"PUT",body:a,headers:p,...i})}function Jt({itemId:e=o(),shapeId:t=o(),componentId:n=o(),key:a=o(),value:s=o(),headers:i={},...u}){const p=`/API/item/${e}/shape/${t}/component/${n}/metadata/bulky/${a}`,m={contentType:"text/plain",...i};return r({path:p,method:"PUT",body:s,headers:m,...u})}function Vt({itemId:e=o(),key:t=o(),...n}){const a=`/API/item/${e}/metadata/bulky/${t}`;return r({path:a,method:"DELETE",...n})}function Kt({itemId:e=o(),shapeId:t=o(),key:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/metadata/bulky/${n}`;return r({path:s,method:"DELETE",...a})}function Ht({itemId:e=o(),shapeId:t=o(),componentId:n=o(),key:a=o(),...s}){const i=`/API/item/${e}/shape/${t}/component/${n}/metadata/bulky/${a}`;return r({path:i,method:"DELETE",...s})}const Qt={listItemBulkyMetadata:vt,listShapeBulkyMetadata:kt,listComponentBulkyMetadata:Ut,updateAllItemBulkyMetadata:Lt,updateAllShapeBulkyMetadata:Ct,updateAllComponentBulkyMetadata:Mt,removeAllItemBulkyMetadata:Dt,removeAllShapeBulkyMetadata:Ot,removeAllComponentBulkyMetadata:xt,getItemBulkyMetadata:jt,getItemBulkyMetadataAsFile:Ft,getShapeBulkyMetadata:Rt,getShapeBulkyMetadataAsFile:wt,getComponentBulkyMetadata:zt,getComponentBulkyMetadataAsFile:qt,updateItemBulkyMetadata:Bt,updateShapeBulkyMetadata:Nt,updateComponentBulkyMetadata:Jt,removeItemBulkyMetadata:Vt,removeShapeBulkyMetadata:Kt,removeComponentBulkyMetadata:Ht};function _t(e,t){return e===0||t===0?0:Math.floor(e/t*100)}const c=Object.freeze({statuses:{transfering:1,paused:2,complete:3,failed:4,unstarted:5,canceled:6,offline:7},events:{progress:"progress",update:"update",complete:"complete",error:"error",added:"upload-added",removed:"upload-removed",retry:"retry",pausing:"pausing",paused:"paused",resuming:"resuming",offline:"offline",online:"online"},defaults:{targetRate:4e6,chunkSize:1e7,minChunkSize:8388608,maxConcurrentTransfers:1,maxConcurrentFileTransfers:1,autoMaxConcurrentTransfers:!1,autoResume:!0,api:{props:{}},minFileSize:104857600}});class y{constructor(){this.events={}}on(t,n){const a=this.events[t]||[];a.push(n),this.events[t]=a}off(t){this.events[t]&&(this.events[t]=[])}trigger(t,n){const a=this.events[t];!a||a.length<1||a.forEach(s=>{s(n)})}}class Wt{constructor(t={}){Object.assign(this,{blobSlice:null,fileSize:null,start:null,end:null,api:null},t),this.state={retries:0,status:c.statuses.unstarted,startTime:null,completeTime:null,response:null,bytesTransfered:null},this.events=new y}try(){return this.state.status=c.statuses.transfering,this.state.startTime=performance.now(),new Promise((t,n)=>{const a=()=>{this.transfer().then(s=>{this.state.response=s,this.onComplete(),t()}).catch(()=>{this.state.retries>3?(this.state.status=c.statuses.failed,n(new Error(`Chunk ${this.start}-${this.end} failed`))):this.state.status!==c.statuses.paused?(this.state.retries+=1,this.tryTimeout=setTimeout(()=>{a()},1e3)):clearTimeout(this.tryTimeout)})};a(),window.addEventListener(c.events.online,()=>{this.resume()}),window.addEventListener(c.events.offline,()=>{this.pause()})})}transfer(){let t={file:this.blobSlice,onUploadProgress:n=>{(this.state.status!==c.statuses.complete||this.state.status!==c.statuses.offline)&&(this.state.bytesTransfered=n.loaded,this.events.trigger(c.events.progress,this.state))}};return this.end-this.start!==this.fileSize&&(t.headers={index:this.start,size:this.fileSize}),t={...t,...this.api.props},this.transferPromise=this.api.method(t),this.state.status=c.statuses.transfering,this.transferPromise}onComplete(){this.state.status=c.statuses.complete,this.state.bytesTransfered=this.end-this.start,this.state.completeTime=performance.now(),this.events.trigger(c.events.complete)}pause(){this.state.status!==c.statuses.complete&&(this.state.status=c.statuses.paused)}resume(){this.state.status!==c.statuses.complete&&(this.state.status=c.statuses.transfering)}cancel(){this.state.status!==c.statuses.complete&&(this.state.status=c.statuses.canceled)}get transferRate(){if(this.state.bytesTransfered){const t=(this.state.completeTime-this.state.startTime)/1e3;return this.state.bytesTransfered/t}return 0}}class I{constructor(t,n){if(this.events=new y,!n.api.method)throw new Error("No api method specified");this.defaultOptions={...c.defaults,targetRate:4e6,chunkSize:c.defaults.minChunkSize,autoMaxConcurrentTransfers:!1,api:{props:{...c.defaults.api.props,queryParams:{transferId:k()},...n.api.props}}},this.options={...this.defaultOptions,...n},this.state={blob:null,chunks:[],transferPromises:[],targetRate:this.options.targetRate,rate:0,autoMaxConcurrentTransfers:this.options.autoMaxConcurrentTransfers,maxConcurrentTransfers:this.options.maxConcurrentTransfers,mime:"",status:c.statuses.unstarted,transferId:n.api.props.queryParams.transferId,lastStats:{}},typeof t=="object"?(this.state.blob=t,this.state.mime=t.type,this.addChunksFromBlob(t)):console.error(new Error(`Expected a File or a Blob object, but got ${typeof t}`))}upload(){const{status:t}=this.state;if(t!==c.statuses.complete)if(t===c.statuses.unstarted||t===c.statuses.transfering){this.state.transferPromises=[];const n=()=>{const a=this.state.chunks[0].state.status;return this.state.transferPromises.length<this.state.maxConcurrentTransfers&&(a!==c.statuses.transfering||a===c.statuses.unstarted)};n()&&(this.state.chunks.forEach(a=>{a.state.status!==c.statuses.complete&&a.state.status!==c.statuses.transfering&&n()&&(this.state.status=c.statuses.transfering,this.state.transferPromises.push(a.try()))}),this.state.transferPromises.length>0&&Promise.all(this.state.transferPromises).then(()=>{this.upload()}).catch(a=>{console.log("Failed on this upload() cycle, check connectivity and try to resume :(",a),this.state.status!==c.statuses.offline?(this.state.status=c.statuses.failed,this.events.trigger(c.events.failed,{error:a,transfer:this})):setTimeout(()=>this.retry(),5e3)}))}else this.retry()}getByteRangesForChunks(t,n=this.options.chunkSize){const a=[],{minChunkSize:s}=this.options;let u=n>=s?n:s,p=Math.floor(t.size/u);if(t.size-(t.size-t.size/p)>=s||(p-=1,u=Math.floor(t.size/p)),p<2||t.size<this.options.minFileSize)a.push({start:0,end:t.size});else for(let m=0;m<=p;m+=1){const d=u*m;let f=u*m+u;t.size-u*m<=s&&(f=t.size);const T={start:d,end:f};if(a.push(T),f===t.size)break}return a}addChunksFromBlob(t){this.getByteRangesForChunks(t).forEach(a=>{const s=new Wt({start:a.start,end:a.end,blobSlice:t.slice(a.start,a.end),fileSize:t.size,api:this.options.api});s.events.on(c.events.progress,()=>{this.onProgress()}),s.events.on(c.events.complete,()=>{this.onProgress()}),this.state.chunks.push(s)})}retry(){this.state.status===c.statuses.failed&&(this.resume(),this.events.trigger(c.events.retry))}resume(){this.state.status=c.statuses.transfering,this.events.trigger(c.events.resuming),this.state.chunks.length>0&&this.state.chunks.forEach(t=>{t.resume()})}pause(){this.state.status=c.statuses.paused,this.state.chunks.length>0&&this.state.chunks.forEach(n=>{n.pause()});const t=Promise.all(this.state.transferPromises);return this.events.trigger(c.events.pausing),t.then(()=>{this.events.trigger(c.events.paused)}),Promise.all(this.state.transferPromises)}cancel(){this.state.status=c.statuses.canceled,this.state.chunks.length>0&&this.state.chunks.forEach(n=>{n.cancel()}),this.upload=()=>{};const t=Promise.all(this.state.transferPromises);return t.then(()=>{this.events.trigger(c.events.removed,this)}),t}autoAdjustMaxConcurrentTransfers(t){if(this.state.autoMaxConcurrentTransfers&&this.state.status!==c.statuses.complete){const n=t.avgTransferRate/this.state.targetRate;if(n>1.2)this.state.maxConcurrentTransfers+=1;else if(n<.3)this.state.maxConcurrentTransfers=1;else{const a=this.options.maxConcurrentTransfers-1;this.state.maxConcurrentTransfers=Math.max(this.options.maxConcurrentTransfers,Math.min(a,c.defaults.maxConcurrentTransfers))}}}onProgress(){try{const t=this.getStats();t!==this.state.lastStats&&(this.state.lastStats=t,v(()=>{this.autoAdjustMaxConcurrentTransfers(t)},1e3)(),this.state.status!==c.statuses.complete&&(t.totalChunks===t.completedChunks?this.onComplete():(this.events.trigger(c.events.progress,t),this.options.onProgress&&this.options.onProgress(t))))}catch(t){console.error(t)}}onComplete(){const t=this.getStats();this.state.lastStats=t,this.state.status=c.statuses.complete,this.events.trigger(c.events.complete),this.options.onComplete&&this.options.onComplete(this.finalResponse)}getStats(){const t=this.state.chunks.length,n=this.state.chunks.filter(d=>d.state.status===c.statuses.complete),a=this.state.chunks.filter(d=>d.state.status===c.statuses.transfering),s=n.length;let i=0,u=0;n.forEach(d=>{i+=d.transferRate,u+=d.blobSlice.size}),a.forEach(d=>{u+=d.state.bytesTransfered});const p=i/s,m={totalChunks:t,completedChunks:s,totalBytes:this.state.blob.size,transferedBytes:u,avgTransferRate:p,concurrentTransfers:this.state.maxConcurrentTransfers};return this.state.rate=m.avgTransferRate,m}set concurrentTransfers(t){this.state.autoMaxConcurrentTransfers=!1,this.state.maxConcurrentTransfers=t}set rate(t){this.state.targetRate=t}get rate(){return this.state.rate}get finalResponse(){const t=this.state.chunks.length-1,n=!1;for(let a=t;a>=0;a-=1){const s=this.state.chunks[a];if(typeof s.state.response.data=="object")return s.state.response}return n}get transferId(){return this.state.transferId}}class L{constructor(t){this.initialState=Object.freeze({status:c.statuses.unstarted,transfers:{},bytesDone:0,bytesTotal:0,lastStats:{bytesDone:0,bytesTotal:0}}),this.state={...this.initialState},this.options={maxConcurrentFileTransfers:c.defaults.maxConcurrentFileTransfers,autoResume:c.defaults.autoResume,...t},this.events=new y,this.bindNetworkEvents()}bindNetworkEvents(){typeof window>"u"||(window.addEventListener(c.events.online,()=>{this.events.trigger(c.events.online,this.state),this.state.status=c.statuses.transfering,this.options.autoResume&&setTimeout(()=>{this.retry()},1500)}),window.addEventListener(c.events.offline,()=>{this.events.trigger(c.events.offline,this.state),this.state.status=c.statuses.offline}))}addChunkedUpload(t){t.transferId!==null&&(this.state.transfers[t.transferId]=t,t.events.on(c.events.progress,()=>{this.onProgress()}),t.events.on(c.events.complete,()=>{this.upload(),this.onProgress()}),t.events.on(c.events.failed,({error:n,transfer:a})=>{this.onFail(n,a)}),t.events.on(c.events.retry,()=>{this.events.trigger(c.events.retry,this.state)}),t.events.on(c.events.paused,()=>{this.paused&&this.events.trigger(c.events.paused)}),this.updateStats(),this.events.trigger(c.events.added,this.state),this.events.trigger(c.events.update,this.state))}removeChunkedUpload(t,n=!1){const a=s=>s?s.state.status===c.statuses.complete&&!n?(console.error("Can't cancel complete transfers, pass true as a second argument in .removeChunkedUpload() to force removal."),!1):(Object.keys(this.state.transfers).forEach(i=>{s===this.state.transfers[i]&&delete this.state.transfers[i]}),this.events.trigger(c.events.removed),s.cancel(),!0):(console.error("Could not find a matching transfer to cancel."),!1);switch(t.constructor.name){case I.name:a(t);break;case"File":a(this.exists(t));break}}onProgress(){this.updateStats(),this.hasCompleted?this.onComplete():this.state.bytesDone!==this.state.lastStats.bytesDone&&(this.state.status=c.statuses.transfering,this.events.trigger(c.events.progress,this.state))}onComplete(){this.state.status=c.statuses.complete,this.events.trigger(c.events.complete,this.state)}exists(t){let n=!1;for(let a=0;a<this.transfers.length;a+=1){const s=this.transfers[a];if(s.state.blob.name===t.name&&s.state.blob.lastModified===t.lastModified&&s.state.blob.size&&t.size)return n=s,n}return n}isTransferAvailable(t){return t.state.status!==c.statuses.complete&&t.state.status!==c.statuses.transfering||t.state.status===c.statuses.unstarted}pause(){let t=Promise.resolve(!0);if(!this.paused){this.events.trigger(c.events.pausing,this.state);const n=[];this.transfers.forEach(a=>{n.push(a.pause())}),t=Promise.all(n),t.then(()=>{this.events.trigger(c.events.paused,this.state)})}return t}resume(){this.events.trigger(c.events.update,this.state),this.transfers.forEach(t=>{this.isTransferAvailable(t)&&t.state.status!==c.statuses.unstarted&&t.resume()})}retry(){this.status===c.statuses.failed&&(this.resume(),this.events.trigger(c.events.retry,this.state))}upload(){let t=0;this.transfers.forEach(n=>{this.isTransferAvailable(n)?t<this.options.maxConcurrentFileTransfers&&(this.events.trigger(c.events.update,this.state),n.upload(),t+=1):n.state.status!==c.statuses.complete&&(t+=1)}),t>0&&(this.status=c.statuses.transfering),t<this.options.maxConcurrentFileTransfers&&this.transfers.length<t&&this.upload()}onFail(t,n){this.status=c.statuses.failed,this.events.trigger(c.events.error,{error:t,transfer:n,file:n.state.blob})}reset(){this.transfers.forEach(t=>{t.constructor.name===I.name&&this.removeChunkedUpload(t,!0)}),this.state={...this.initialState},this.events.trigger(c.statuses.update,this.state),this.events.trigger(c.statuses.complete,this.state)}destroy(){this.reset()}get hasCompleted(){let t=!0;return this.transfers.forEach(n=>{n.state.status!==c.statuses.complete&&(t=!1)}),t}get transfers(){return Object.values(this.state.transfers)||[]}get status(){return this.state.status}set status(t){this.events.trigger(c.statuses.update,this.state),this.state.status=t}get bytesTotal(){let t=0;return this.transfers.forEach(n=>{t+=n.state.blob.size}),t}get bytesDone(){let t=0;return this.transfers.forEach(n=>{t+=n.getStats().transferedBytes}),t}updateStats(){this.state.lastStats.bytesDone=this.state.bytesDone,this.state.lastStats.bytesTotal=this.state.bytesTotal,this.state.bytesTotal=this.bytesTotal,this.state.bytesDone=this.bytesDone}get percentDone(){return _t(this.state.bytesDone,this.state.bytesTotal)}get fileList(){const t=[];return this.transfers.forEach(n=>{const a=n.getStats(),{totalChunks:s,completedChunks:i}=a,u={name:n.state.blob.name,bytesDone:a.transferedBytes,bytesTotal:n.state.blob.size,totalChunks:s,completedChunks:i,transfer:n};t.push(u)}),t}get isUploading(){return this.state.status===c.statuses.transfering}get paused(){let t=!0;return this.transfers.forEach(n=>{n.state.status!==c.statuses.paused&&(t=!1)}),t}}L.constants=c,I.constants=c;function Xt({entity:e=o(),entityId:t=o(),metadataDocument:n,...a}){const s=`/API/${e}/${t}/metadata`;return r({path:s,method:"PUT",body:n,...a})}function Yt({entity:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/metadata/move`;return r({path:a,method:"PUT",...n})}function Zt({entity:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/metadata/changes`;return r({path:a,method:"GET",...n})}function te({entity:e=o(),entityId:t=o(),changesetId:n=o(),...a}){const s=`/API/${e}/${t}/metadata/changes/${n}`;return r({path:s,method:"GET",...a})}function ee({entity:e=o(),entityId:t=o(),changesetId:n=o(),...a}){const s=`/API/${e}/${t}/metadata/changes/${n}/compareTo/previous`;return r({path:s,method:"GET",...a})}function ne({entity:e=o(),entityId:t=o(),changesetId:n=o(),fromChangesetId:a=o(),...s}){const i=`/API/${e}/${t}/metadata/changes/${n}/compareTo/${a}`;return r({path:i,method:"GET",...s})}function oe({entity:e=o(),entityId:t=o(),changesetId:n=o(),metadataDocument:a=o(),...s}){const i=`/API/${e}/${t}/metadata/changes/${n}/`;return r({path:i,method:"PUT",body:a,...s})}function ae({entity:e=o(),entityId:t=o(),metadataChangeSetDocument:n=o(),...a}){const s=`/API/${e}/${t}/metadata/changes`;return r({path:s,method:"PUT",body:n,...a})}function re({entity:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/metadata/changes/trim`;return r({path:a,method:"PUT",...n})}function se({entity:e=o(),entityId:t=o(),changesetId:n=o(),...a}){const s=`/API/${e}/${t}/metadata/changes/${n}/trim`;return r({path:s,method:"PUT",...a})}function ie({entity:e=o(),entityId:t=o(),changesetId:n=o(),...a}){const s=`/API/${e}/${t}/metadata/changes/${n}`;return r({path:s,method:"DELETE",...a})}function ce({entity:e=o(),entityId:t=o(),uuid:n=o(),metadataEntryDocument:a=o(),...s}){const i=`/API/${e}/${t}/metadata/entry/${n}`;return r({path:i,method:"PUT",body:a,...s})}function ue({entity:e=o(),entityId:t=o(),metadataEntryListDocument:n=o(),...a}){const s=`/API/${e}/${t}/metadata/entry/`;return r({path:s,method:"PUT",body:n,...a})}function he({entity:e=o(),entityId:t=o(),headers:n={},...a}){const s=`/API/${e}/${t}/metadata/graph`,i={accept:"image/png",...n};return r({path:s,method:"GET",headers:i,...a})}function pe({entity:e=o(),entityId:t=o(),headers:n={},...a}){const s=`/API/${e}/${t}/metadata/graph/dot`,i={accept:"text/plain",...n};return r({path:s,method:"GET",headers:i,...a})}function de({entity:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/metadata`;return r({path:a,method:"GET",...n,...n})}function me({metadataUuid:e=o(),...t}){const n=`/API/metadata/${e}/`;return r({path:n,method:"GET",...t})}function le({metadataUuid:e=o(),...t}){const n=`/API/metadata/${e}/`;return r({path:n,method:"DELETE",...t})}function fe({...e}={}){return r({path:"/API/metadata/",method:"GET",...e})}function Pe({metadataDocument:e,...t}={}){return r({path:"/API/metadata/",method:"PUT",body:e,...t})}function Te({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/metadata`;return r({path:a,method:"GET",...n})}function $e({entityType:e=o(),entityId:t=o(),subpath:n,...a}){const s=`/API/${e}/${t}/metadata/${n}`;return r({path:s,method:"GET",...a})}function ge({simpleMetadataDocument:e,entityType:t=o(),entityId:n=o(),...a}={}){const s=`/API/${t}/${n}/metadata`;return r({path:s,method:"PUT",body:e,...a})}function Ie({simpleMetadataDocument:e,entityType:t=o(),entityId:n=o(),subpath:a,...s}={}){const i=`/API/${t}/${n}/metadata/${a}`;return r({path:i,method:"PUT",body:e,...s})}function Ae({entityType:e=o(),entityId:t=o(),...n}={}){const a=`/API/${e}/${t}/metadata`;return r({path:a,method:"DELETE",...n})}function Ee({entityType:e=o(),entityId:t=o(),key:n=o(),headers:a={},...s}){const i=`/API/${e}/${t}/metadata/${n}`,u={accept:"text/plain",...a};return r({path:i,method:"GET",headers:u,...s})}function ye({entityType:e=o(),entityId:t=o(),key:n=o(),headers:a={},...s}){const i=`/API/${e}/${t}/metadata/${n}`,u={accept:"text/plain",...a};return r({path:i,method:"DELETE",headers:u,...s})}function be({entityType:e=o(),entityId:t=o(),key:n=o(),value:a,headers:s={},...i}){const u=`/API/${e}/${t}/metadata/${n}`,p={contentType:"text/plain",...s};return r({path:u,method:"PUT",body:a,headers:p,...i})}const g={updateEntityMetadata:Xt,moveEntityMetadata:Yt,listEntityMetadataChange:Zt,getEntityMetadataChange:te,previousEntityMetadataChange:ee,compareEntityMetadataChange:ne,updateEntityMetadataChange:oe,updateAllEntityMetadataChange:ae,trimAllEntityMetadataChange:re,trimEntityMetadataChange:se,removeEntityMetadataChange:ie,updateEntityMetadataEntry:ce,updateAllEntityMetadataEntry:ue,getEntityMetadataGraph:he,getEntityMetadataGraphDot:pe,getEntityMetadata:de,getMetadata:me,removeMetadata:le,getMetadataGlobal:fe,updateMetadataGlobal:Pe,getSimpleMetadata:Te,getSimpleMetadataSubpath:$e,updateSimpleMetadata:ge,updateSimpleMetadataSubpath:Ie,removeSimpleMetadata:Ae,getSimpleMetadataKey:Ee,removeSimpleMetadataKey:ye,updateSimpleMetadataKey:be};function Se({entity:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/metadata-lock`;return r({path:a,method:"GET",...n})}function Ge({entity:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/metadata-lock`;return r({path:a,method:"POST",...n})}function ve({entity:e=o(),entityId:t=o(),lockId:n=o(),...a}){const s=`/API/${e}/${t}/metadata-lock/${n}`;return r({path:s,method:"GET",...a})}function ke({entity:e=o(),entityId:t=o(),lockId:n=o(),...a}){const s=`/API/${e}/${t}/metadata-lock/${n}`;return r({path:s,method:"PUT",...a})}function Ue({entity:e=o(),entityId:t=o(),lockId:n=o(),...a}){const s=`/API/${e}/${t}/metadata-lock/${n}`;return r({path:s,method:"DELETE",...a})}const b={listEntityMetadataLock:Se,createEntityMetadataLock:Ge,getEntityMetadataLock:ve,updateEntityMetadataLock:ke,removeEntityMetadataLock:Ue},{listEntityMetadataLock:Le,createEntityMetadataLock:Ce,getEntityMetadataLock:Me,updateEntityMetadataLock:De,removeEntityMetadataLock:Oe}=b;function xe({...e}={}){return r({path:"/API/collection/",method:"GET",...e})}function je({collectionId:e=o(),...t}){const n=`/API/collection/${e}/`;return r({path:n,method:"GET",...t})}function Fe({collectionId:e=o(),...t}){const n=`/API/collection/${e}/metadata`;return r({path:n,method:"GET",...t})}function Re({collectionId:e,metadataDocument:t,...n}){return g.updateEntityMetadata({entity:"collection",entityId:e,metadataDocument:t,...n})}function we({collectionId:e=o(),...t}){const n=`/API/collection/${e}/ancestor`;return r({path:n,method:"GET",...t})}function ze({...e}={}){return r({path:"/API/collection/history",method:"GET",...e})}function qe({collectionId:e=o(),...t}){const n=`/API/collection/${e}/item`;return r({path:n,method:"GET",...t})}function Be({itemSearchDocument:e,...t}){return r({path:"/API/collection/",method:"PUT",body:e,...t})}function Ne({metadataGroupSearchDocument:e,...t}){return r({path:"/API/collection/metadata-group",method:"PUT",body:e,...t})}function Je({collectionId:e=o(),searchDocument:t,...n}){const a=`/API/collection/${e}/item`;return r({path:a,method:"PUT",body:t,...n})}function Ve({collectionDocument:e,queryParams:t,...n}){return r({path:"/API/collection",method:"POST",body:e,queryParams:t,...n})}function Ke({collectionId:e=o(),...t}){const n=`/API/collection/${e}/`;return r({path:n,method:"DELETE",...t})}function He({queryParams:e=o(),...t}){return r({path:"/API/collection",method:"DELETE",queryParams:e,...t})}function Qe({collectionId:e=o(),...t}){const n=`/API/collection/${e}/rename`;return r({path:n,method:"PUT",...t})}function _e({collectionId:e=o(),entityId:t=o(),...n}){const a=`/API/collection/${e}/${t}`;return r({path:a,method:"PUT",...n})}function We({collectionId:e=o(),entityId:t=o(),...n}){const a=`/API/collection/${e}/${t}`;return r({path:a,method:"DELETE",...n})}function Xe({collectionId:e=o(),collectionDocument:t,...n}){const a=`/API/collection/${e}/`;return r({path:a,method:"PUT",body:t,...n})}function Ye({collectionId:e=o(),collectionReorderDocument:t,...n}){const a=`/API/collection/${e}/order`;return r({path:a,method:"POST",body:t,...n})}function Ze({collectionId:e=o(),...t}){const n=`/API/collection/${e}/map-to-folder`;return r({path:n,method:"PUT",...t})}function tn({collectionId:e=o(),...t}){const n=`/API/collection/${e}/map-to-folder`;return r({path:n,method:"DELETE",...t})}function en({collectionId:e=o(),queryParams:t=o(),...n}){const a=`/API/collection/${e}/folder-name`;return r({path:a,method:"PUT",queryParams:t,...n})}function nn({collectionId:e=o(),...t}){return Le({entity:"collection",entityId:e,...t})}function on({collectionId:e=o(),...t}){return Ce({entity:"collection",entityId:e,...t})}function an({collectionId:e=o(),...t}){return Me({entity:"collection",entityId:e,...t})}function rn({collectionId:e=o(),...t}){return De({entity:"collection",entityId:e,...t})}function sn({collectionId:e=o(),...t}){return Oe({entity:"collection",entityId:e,...t})}function cn({collectionId:e=o(),queryParams:t=o(),...n}){const a=`/API/collection/${e}/export`;return r({path:a,method:"POST",queryParams:t,...n})}function un({collectionId:e=o(),queryParams:t=o(),...n}){const a=`/API/collection/${e}/sequence-document`;return r({path:a,method:"GET",queryParams:t,...n})}const hn={listCollection:xe,getCollection:je,getCollectionMetadata:Fe,updateCollectionMetadata:Re,getCollectionAncestor:we,listCollectionHistory:ze,getCollectionItem:qe,searchCollection:Be,searchCollectionMetadataGroup:Ne,searchCollectionItem:Je,createCollection:Ve,removeCollection:Ke,removeCollectionList:He,renameCollection:Qe,addCollectionEntity:_e,removeCollectionEntity:We,updateCollection:Xe,orderCollection:Ye,markFolderCollection:Ze,unMarkFolderCollection:tn,updateFolderCollection:en,listCollectionMetadataLock:nn,createCollectionMetadataLock:on,getCollectionMetadataLock:an,updateCollectionMetadataLock:rn,removeCollectionMetadataLock:sn,exportCollection:cn,collectionSequence:un};function pn({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/component`;return r({path:a,method:"GET",...n})}function dn({itemId:e=o(),shapeId:t=o(),componentId:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/component/${n}`;return r({path:s,method:"GET",...a})}function mn({itemId:e=o(),shapeId:t=o(),componentId:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/component/${n}`;return r({path:s,method:"DELETE",...a})}function ln({itemId:e=o(),shapeId:t=o(),queryParams:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/component`;return r({path:s,method:"POST",queryParams:n,...a})}function fn({itemId:e=o(),shapeId:t=o(),queryParams:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/component/placeholder`;return r({path:s,method:"POST",queryParams:n,...a})}function Pn({itemId:e=o(),shapeId:t=o(),componentId:n=o(),targetItemId:a=o(),targetShapeId:s=o(),targetComponentId:i=o(),...u}){const p=`/API/item/${e}/shape/${t}/component/${n}/move/item/${a}/shape/${s}/component/${i}`;return r({path:p,method:"POST",...u})}function Tn({itemId:e=o(),shapeId:t=o(),componentId:n=o(),targetItemId:a=o(),targetShapeId:s=o(),...i}){const u=`/API/item/${e}/shape/${t}/component/${n}/move/item/${a}/shape/${s}`;return r({path:u,method:"POST",...i})}function $n({itemId:e=o(),shapeId:t=o(),componentId:n=o(),targetItemId:a=o(),targetShapeId:s=o(),targetComponentId:i=o(),...u}){const p=`/API/item/${e}/shape/${t}/component/${n}/copy/item/${a}/shape/${s}/component/${i}`;return r({path:p,method:"POST",...u})}function gn({itemId:e=o(),shapeId:t=o(),componentId:n=o(),targetItemId:a=o(),targetShapeId:s=o(),...i}){const u=`/API/item/${e}/shape/${t}/component/${n}/copy/item/${a}/shape/${s}`;return r({path:u,method:"POST",...i})}function In({itemId:e=o(),shapeId:t=o(),componentId:n=o(),fileId:a=o(),...s}){const i=`/API/item/${e}/shape/${t}/component/${n}/file/${a}`;return r({path:i,method:"PUT",...s})}function An({itemId:e=o(),shapeId:t=o(),componentId:n=o(),fileId:a=o(),...s}){const i=`/API/item/${e}/shape/${t}/component/${n}/file/${a}`;return r({path:i,method:"PUT",...s})}function En({itemId:e=o(),shapeId:t=o(),componentId:n=o(),analyzeJobDocument:a,...s}){const i=`/API/item/${e}/shape/${t}/component/${n}/analyze`;return r({path:i,method:"POST",body:a,...s})}const yn={listComponent:pn,getComponent:dn,removeComponent:mn,createComponent:ln,createComponentPlaceholder:fn,moveComponent:Pn,moveComponentToShape:Tn,copyComponent:$n,copyComponentToShape:gn,addComponentFile:In,removeComponentFile:An,createComponentAnalyze:En};function bn({...e}={}){return r({path:"/API/configuration/",method:"GET",...e})}function Sn({...e}={}){return r({path:"/API/configuration/properties",method:"GET",...e})}function Gn({configurationPropertyDocument:e,...t}){return r({path:"/API/configuration/properties/",method:"PUT",body:e,...t})}function vn({configurationPropertyListDocument:e=o(),...t}){return r({path:"/API/configuration/properties/",method:"POST",body:e,...t})}function kn({key:e=o(),...t}){const n=`/API/configuration/properties/${e}`;return r({path:n,method:"DELETE",...t})}function Un({...e}={}){return r({path:"/API/configuration/indexing",method:"GET",...e})}function Ln({indexingConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/indexing",method:"PUT",body:e,...t})}function Cn({...e}={}){return r({path:"/API/configuration/ftp-pool",method:"GET",...e})}function Mn({ftpPoolConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/ftp-pool",method:"PUT",body:e,...t})}function Dn({...e}){return r({path:"/API/configuration/ftp-pool",method:"DELETE",...e})}function On({...e}={}){return r({path:"/API/configuration/job-pool",method:"GET",...e})}function xn({jobPoolListDocument:e=o(),...t}){return r({path:"/API/configuration/job-pool",method:"PUT",body:e,...t})}function jn({...e}){return r({path:"/API/configuration/job-pool",method:"DELETE",...e})}function Fn({jobPoolPriority:e=o(),...t}){const n=`/API/configuration/job-pool/${e}`;return r({path:n,method:"DELETE",...t})}function Rn({...e}={}){return r({path:"/API/configuration/metrics",method:"GET",...e})}function wn({metricsConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/metrics",method:"PUT",body:e,...t})}function zn({...e}={}){return r({path:"/API/configuration/path-alias",method:"GET",...e})}function qn({pathAliasConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/path-alias",method:"PUT",body:e,...t})}function Bn({...e}={}){return r({path:"/API/configuration/logreport",method:"GET",...e})}function Nn({logReportConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/logreport",method:"PUT",body:e,...t})}function Jn({...e}={}){return r({path:"/API/configuration/purging",method:"GET",...e})}function Vn({databasePurgingConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/purging",method:"PUT",body:e,...t})}function Kn({...e}){return r({path:"/API/configuration/purging",method:"DELETE",...e})}function Hn({...e}={}){return r({path:"/API/configuration/cors",method:"GET",...e})}function Qn({corsConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/cors",method:"PUT",body:e,...t})}function _n({...e}={}){return r({path:"/API/configuration/auth",method:"GET",...e})}function Wn({oAuth2ConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/auth",method:"PUT",body:e,...t})}function Xn({...e}={}){return r({path:"/API/configuration/auth",method:"DELETE",...e})}function Yn({...e}={}){return r({path:"/API/configuration/job-priority",method:"GET",...e})}function Zn({jobPriorityConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/job-priority",method:"PUT",body:e,...t})}function to({...e}={}){return r({path:"/API/configuration/job-priority",method:"DELETE",...e})}function eo({...e}={}){return r({path:"/API/configuration/bulkymetadata",method:"GET",...e})}function no({bulkyMetadataConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/bulkymetadata",method:"PUT",body:e,...t})}const oo={getConfiguration:bn,getPropertiesConfiguration:Sn,updatePropertiesConfiguration:Gn,updateAllPropertiesConfiguration:vn,removePropertiesConfiguration:kn,getIndexingConfiguration:Un,updateIndexingConfiguration:Ln,getFtpPoolConfiguration:Cn,updateFtpPoolConfiguration:Mn,removeFtpPoolConfiguration:Dn,getJobPoolConfiguration:On,updateJobPoolConfiguration:xn,removeAllJobPoolConfiguration:jn,removeJobPoolConfiguration:Fn,getMetricsConfiguration:Rn,updateMetricsConfiguration:wn,getPathAliasConfiguration:zn,updatePathAliasConfiguration:qn,getLogReportConfiguration:Bn,updateLogReportConfiguration:Nn,getDatabasePurgingConfiguration:Jn,updateDatabasePurgingConfiguration:Vn,removeDatabasePurgingConfiguration:Kn,getCorsConfiguration:Hn,updateCorsConfiguration:Qn,getAuthConfiguration:_n,updateAuthConfiguration:Wn,removeAuthConfiguration:Xn,getJobPriorityConfiguration:Yn,updateJobPriorityConfiguration:Zn,removeJobPriorityConfiguration:to,getBulkyMetadataConfiguration:eo,updateBulkyMetadataConfiguration:no};function ao({conformRequestDocument:e=o(),...t}){return r({path:"/API/conform",body:e,method:"POST",...t})}function ro({itemId:e=o(),timelineFormat:t=o(),conformRequestDocument:n=o(),...a}){const s=`/API/item/${e}/timeline/${t}/conform`;return r({path:s,body:n,method:"POST",...a})}const so={createConform:ao,createConformItem:ro};function io({xmlDocument:e=o(),headers:t={},...n}){return r({path:"/APInoauth/debug/echo",method:"PUT",body:e,headers:{contentType:"application/xml",...t},...n})}const co={echo:io};function uo({...e}={}){return r({path:"/API/deletion-lock",method:"GET",...e})}function ho({lockId:e=o(),...t}){const n=`/API/deletion-lock/${e}`;return r({path:n,method:"GET",...t})}function po({lockId:e=o(),deletionLockDocument:t=o(),...n}){const a=`/API/deletion-lock/${e}`;return r({path:a,method:"PUT",body:t,...n})}function mo({lockId:e=o(),...t}){const n=`/API/deletion-lock/${e}`;return r({path:n,method:"DELETE",...t})}function lo({entity:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/deletion-lock/`;return r({path:a,method:"GET",...n})}function fo({entity:e=o(),entityId:t=o(),deletionLockDocument:n=o(),...a}){const s=`/API/${e}/${t}/deletion-lock/`;return r({path:s,method:"POST",body:n,...a})}function Po({entity:e=o(),entityId:t=o(),lockId:n=o(),...a}){const s=`/API/${e}/${t}/deletion-lock/${n}`;return r({path:s,method:"GET",...a})}function To({entity:e=o(),entityId:t=o(),lockId:n=o(),deletionLockDocument:a=o(),...s}){const i=`/API/${e}/${t}/deletion-lock/${n}`;return r({path:i,method:"PUT",body:a,...s})}function $o({entity:e=o(),entityId:t=o(),lockId:n=o(),...a}){const s=`/API/${e}/${t}/deletion-lock/${n}`;return r({path:s,method:"DELETE",...a})}const go={listDeletionLock:uo,getDeletionLock:ho,updateDeletionLock:po,removeDeletionLock:mo,listEntityDeletionLock:lo,createEntityDeletionLock:fo,getEntityDeletionLock:Po,updateEntityDeletionLock:To,removeEntityDeletionLock:$o};function Io({...e}={}){return r({path:"/API/document/",method:"GET",...e})}function Ao({itemSearchDocument:e,...t}={}){return r({path:"/API/document/",method:"PUT",body:e,...t})}function Eo({documentMetadataName:e=o(),...t}){const n=`/API/document/${e}`;return r({path:n,method:"GET",...t})}function yo({documentMetadataName:e=o(),metadataDocument:t,...n}){const a=`/API/document/${e}`;return r({path:a,body:t,method:"PUT",...n})}function bo({documentMetadataName:e=o(),...t}){const n=`/API/document/${e}/changes`;return r({path:n,method:"GET",...t})}function So({documentMetadataName:e=o(),...t}){const n=`/API/document/${e}`;return r({path:n,method:"DELETE",...t})}const Go={listDocumentMetadata:Io,searchDocumentMetadata:Ao,getDocumentMetadata:Eo,updateDocumentMetadata:yo,getDocumentMetadataChanges:bo,removeDocumentMetadata:So};function vo({...e}={}){return r({path:"/API/error",method:"GET",...e})}const ko={listErrorLogs:vo};function Uo({...e}={}){return r({path:"/API/export-location",method:"GET",...e})}function Lo({locationName:e=o(),...t}){return r({path:`/API/export-location/${e}`,method:"GET",...t})}function Co({locationName:e=o(),exportLocationDocument:t,...n}){const a=`/API/export-location/${e}`;return r({path:a,method:"PUT",body:t,...n})}function Mo({locationName:e=o(),...t}){const n=`/API/export-location/${e}`;return r({path:n,method:"DELETE",...t})}function Do({locationName:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/export-location/${e}/script`;return r({path:s,method:"GET",headers:a,...n})}function Oo({locationName:e=o(),exportScript:t=o(),headers:n={},...a}){const s={accept:"text/plain",contentType:"text/plain",...n},i=`/API/export-location/${e}/script`;return r({path:i,method:"PUT",body:t,headers:s,...a})}const xo={listExportLocation:Uo,getExportLocation:Lo,updateExportLocation:Co,removeExportLocation:Mo,getExportLocationScript:Do,updateExportLocationScript:Oo};function jo({...e}={}){return r({path:"/API/export-template",method:"GET",...e})}function Fo({templateName:e=o(),...t}){return r({path:`/API/export-template/${e}`,method:"GET",...t})}function Ro({templateName:e=o(),...t}){return r({path:`/API/export-template/${e}`,method:"DELETE",...t})}function wo({templateName:e=o(),exportTemplateDocument:t,...n}){return r({path:`/API/export-template/${e}`,method:"PUT",body:t,...n})}function zo({templateName:e=o(),exportTemplateDocument:t,...n}){return r({path:`/API/export-template/${e}`,method:"PUT",body:t,...n})}function qo({templateName:e=o(),headers:t={},...n}){const a=`/API/export-template/${e}/graph`,s={accept:"image/png",...t};return r({path:a,method:"GET",headers:s,...n})}function Bo({templateName:e=o(),headers:t={},...n}){const a=`/API/export-template/${e}/graph/dot`,s={accept:"text/plain",...t};return r({path:a,method:"GET",headers:s,...n})}function No({...e}){return r({path:"/API/export-template/test",method:"POST",...e})}function Jo({...e}){return r({path:"/API/export-template/test",method:"PUT",...e})}const Vo={listExportTemplete:jo,getExportTemplate:Fo,removeExportTemplate:Ro,createExportTemplate:wo,updateExportTemplate:zo,getExportTemplateGraph:qo,getExportTemplateGraphDot:Bo,createExportTemplateTest:No,createExportTemplateTestRender:Jo};function A(e){return e==="field-group"?"metadata-field/field-group":e}function Ko({...e}={}){return r({path:"/API/external-id",method:"GET",...e})}function Ho({idName:e=o(),...t}){const n=`/API/external-id/${e}`;return r({path:n,method:"GET",...t})}function Qo({idName:e=o(),externalIdentifierNamespaceDocument:t,...n}){const a=`/API/external-id/${e}`;return r({path:a,method:"PUT",body:t,...n})}function _o({idName:e=o(),...t}){const n=`/API/external-id/${e}`;return r({path:n,method:"DELETE",...t})}function Wo({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${A(e)}/${t}/external-id/`;return r({path:a,method:"GET",...n})}function Xo({entityType:e=o(),entityId:t=o(),externalId:n=o(),...a}){const s=`/API/${A(e)}/${t}/external-id/${n}`;return r({path:s,method:"PUT",...a})}function Yo({entityType:e=o(),entityId:t=o(),externalId:n=o(),...a}){const s=`/API/${A(e)}/${t}/external-id/${n}`;return r({path:s,method:"DELETE",...a})}function Zo({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${A(e)}/${t}/external-id`;return r({path:a,method:"DELETE",...n})}const ta={listExternalIdNamespace:Ko,getExternalIdNamespace:Ho,updateExternalIdNamespace:Qo,removeExternalIdNamespace:_o,listExternalId:Wo,createExternalId:Xo,removeExternalId:Yo,removeAllExternalId:Zo},{getSimpleMetadata:ea}=g;function na({...e}={}){return r({path:"/API/metadata-field/field-group/",method:"GET",...e})}function oa({groupName:e=o(),...t}){const n=`/API/metadata-field/field-group/${e}/`;return r({path:n,method:"GET",...t})}function aa({groupName:e=o(),metadataFieldGroupDocument:t,...n}){const a=`/API/metadata-field/field-group/${e}`;return r({path:a,method:"PUT",body:t,...n})}function ra({groupName:e=o(),...t}){const n=`/API/metadata-field/field-group/${e}`;return r({path:n,method:"DELETE",...t})}function sa({groupName:e=o(),fieldName:t=o(),...n}){const a=`/API/metadata-field/field-group/${e}/${t}`;return r({path:a,method:"PUT",...n})}function ia({groupName:e=o(),fieldName:t=o(),...n}){const a=`/API/metadata-field/field-group/${e}/${t}`;return r({path:a,method:"DELETE",...n})}function ca({groupName:e=o(),childGroupName:t=o(),...n}){const a=`/API/metadata-field/field-group/${e}/group/${t}`;return r({path:a,method:"PUT",...n})}function ua({groupName:e=o(),childGroupName:t=o(),...n}){const a=`/API/metadata-field/field-group/${e}/group/${t}`;return r({path:a,method:"DELETE",...n})}function ha({metadataFieldGroupSearchDocument:e,...t}){return r({path:"/API/metadata-field/field-group/",method:"PUT",body:e,...t})}function pa({groupName:e=o(),...t}){return ea({entityType:"metadata-field/field-group",entityId:e,...t})}function da({groupName:e=o(),...t}){const n=`/API/metadata-field/field-group/${e}/access`;return r({path:n,method:"GET",...t})}function ma({groupName:e=o(),metadataFieldAccessControlDocument:t=o(),...n}){const a=`/API/metadata-field/field-group/${e}/access`;return r({path:a,method:"POST",body:t,...n})}function la({groupName:e=o(),accessId:t=o(),...n}){const a=`/API/metadata-field/field-group/${e}/access/${t}`;return r({path:a,method:"DELETE",...n})}function fa({...e}={}){return r({path:"/API/metadata-field/field-group/merged-access",method:"GET",...e})}function Pa({groupName:e=o(),...t}={}){const n=`/API/metadata-field/field-group/${e}/merged-access`;return r({path:n,method:"GET",...t})}const Ta={listFieldGroup:na,getFieldGroup:oa,updateFieldGroup:aa,removeFieldGroup:ra,updateFieldGroupField:sa,removeFieldGroupField:ia,updateFieldGroupChild:ca,removeFieldGroupChild:ua,searchFieldGroup:ha,getSimpleMetadata:pa,listFieldGroupAccess:da,createFieldGroupAccess:ma,removeFieldGroupAccess:la,listFieldGroupMergedAccess:fa,getFieldGroupMergedAccess:Pa};function $a({...e}={}){return r({path:"/API/storage/file/",method:"GET",...e})}function ga({storageId:e=o(),...t}={}){const n=`/API/storage/${e}/file/`;return r({path:n,method:"GET",...t})}function Ia({...e}={}){return r({path:"/API/storage/file/importable/",method:"GET",...e})}function Aa({storageId:e=o(),...t}={}){const n=`/API/storage/${e}/file/importable/`;return r({path:n,method:"GET",...t})}function Ea({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/`;return r({path:n,method:"GET",...t})}function ya({storageId:e=o(),file:t=o(),headers:n={},...a}){const s={contentType:"application/octet-stream",...n},i=`/API/storage/${e}/file/data`;return r({path:i,method:"POST",body:t,headers:s,...a})}function ba({fileId:e=o(),headers:t={},...n}){const a={accept:"application/octet-stream",...t},s=`/API/storage/file/${e}/data`;return r({path:s,method:"GET",headers:a,responseType:"blob",...n})}function Sa({fileId:e=o(),file:t,headers:n={},...a}){const s={contentType:"application/octet-stream",...n},i=`/API/storage/file/${e}/data/`;return r({path:i,method:"POST",body:t,headers:s,...a})}function Ga({fileId:e=o(),metadataDocument:t,...n}){const a=`/API/storage/file/${e}/import/`;return r({path:a,method:"POST",body:t,...n})}function va({fileId:e=o(),metadataDocument:t,...n}){const a=`/API/storage/file/${e}/import/assetmap`;return r({path:a,method:"POST",body:t,...n})}function ka({storageId:e=o(),metadataDocument:t,...n}){const a=`/API/storage/${e}/file/import/assetmap`;return r({path:a,method:"POST",body:t,...n})}function Ua({storageId:e=o(),metadataDocument:t,...n}){const a=`/API/storage/${e}/import/`;return r({path:a,method:"POST",body:t,...n})}function La({fileId:e=o(),targetStorageId:t=o(),...n}){const a=`/API/storage/file/${e}/storage/${t}/`;return r({path:a,method:"POST",...n})}function Ca({fileId:e=o(),...t}){const n=`/API/storage/file/${e}`;return r({path:n,method:"DELETE",...t})}function Ma({storageId:e=o(),fileDocument:t,...n}){const a=`/API/storage/${e}/file/`;return r({path:a,method:"POST",body:t,...n})}function Da({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/entity`;return r({path:n,method:"DELETE",...t})}function Oa({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/path/`;return r({path:n,method:"POST",...t})}function xa({fileId:e=o(),state:t=o(),...n}){const a=`/API/storage/file/${e}/state/${t}`;return r({path:a,method:"PUT",...n})}function ja({fileId:e=o(),hash:t=o(),...n}){const a=`/API/storage/file/${e}/hash/${t}`;return r({path:a,method:"PUT",...n})}function Fa({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/abandon`;return r({path:n,method:"PUT",...t})}function Ra({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/re-index`;return r({path:n,method:"PUT",...t})}function wa({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/uri`;return r({path:n,method:"POST",...t})}function za({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/analyze`;return r({path:n,method:"POST",...t})}function qa({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/analyze/imp`;return r({path:n,method:"POST",...t})}function Ba({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/shape`;return r({path:n,method:"GET",...t})}const C={listFile:$a,listFileStorage:ga,listFileImportable:Ia,listFileStorageImportable:Aa,getFile:Ea,createFileRaw:ya,getFileRaw:ba,updateFileRaw:Sa,createFileImport:Ga,createFileImportAssetMap:va,createFilePathImportAssetMap:ka,createFileImportPath:Ua,createFileMove:La,removeFile:Ca,createFileEntity:Ma,removeFileEntity:Da,createFilePath:Oa,updateFileState:xa,updateFileHash:ja,abandonFile:Fa,reindexFile:Ra,createFileTemporaryCredentials:wa,analyzeFile:za,analyzeFileImp:qa,listFileShapes:Ba};function Na({...e}={}){return r({path:"/API/metadata",method:"GET",...e})}function Ja({metadataDocument:e=o(),...t}){return r({path:"/API/metadata",method:"PUT",body:e,...t})}function Va({uuid:e=o(),...t}){const n=`/API/metadata/${e}`;return r({path:n,method:"GET",...t})}function Ka({uuid:e=o(),...t}={}){const n=`/API/metadata/${e}`;return r({path:n,method:"DELETE",...t})}const Ha={listGlobalMetadata:Na,updateGlobalMetadata:Ja,getGlobalMetadata:Va,removeGlobalMetadata:Ka};function Qa({...e}={}){return r({path:"/API/group/",method:"GET",...e})}function _a({groupName:e=o(),...t}){const n=`/API/group/${e}`;return r({path:n,method:"GET",...t})}function Wa({groupName:e=o(),groupDocument:t,...n}){const a=`/API/group/${e}/`;return r({path:a,method:"PUT",body:t,...n})}function Xa({groupName:e=o(),...t}){const n=`/API/group/${e}`;return r({path:n,method:"DELETE",...t})}function Ya({...e}){return r({path:"/API/group/",method:"DELETE",...e})}function Za({groupSearchDocument:e,...t}){return r({path:"/API/group/",method:"PUT",body:e,...t})}function tr({groupName:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/group/${e}/role`;return r({path:s,method:"GET",headers:a,...n})}function er({groupName:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/group/${e}/description`;return r({path:s,method:"GET",headers:a,...n})}function nr({groupName:e=o(),description:t,headers:n={},...a}){const s={accept:"text/plain",contentType:"text/plain",...n},i=`/API/group/${e}/description`;return r({path:i,method:"PUT",body:t,headers:s,...a})}function or({groupName:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/group/${e}/parents/`;return r({path:s,method:"GET",headers:a,...n})}function ar({groupName:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/group/${e}/children/`;return r({path:s,method:"GET",headers:a,...n})}function rr({groupName:e=o(),childGroupName:t=o(),...n}){const a=`/API/group/${e}/group/${t}`;return r({path:a,method:"PUT",...n})}function sr({groupName:e=o(),childGroupName:t=o(),...n}){const a=`/API/group/${e}/group/${t}`;return r({path:a,method:"DELETE",...n})}function ir({groupName:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/group/${e}/users/`;return r({path:s,method:"GET",headers:a,...n})}function cr({groupName:e=o(),userName:t=o(),...n}){const a=`/API/group/${e}/user/${t}`;return r({path:a,method:"PUT",...n})}function ur({groupName:e=o(),userName:t=o(),...n}){const a=`/API/group/${e}/user/${t}`;return r({path:a,method:"DELETE",...n})}const hr={listGroup:Qa,getGroup:_a,updateGroup:Wa,removeGroup:Xa,removeGroupList:Ya,searchGroup:Za,getGroupRoleStatus:tr,getGroupDescription:er,updateGroupDescription:nr,getGroupParents:or,getGroupChildren:ar,addGroupChildren:rr,removeGroupChildren:sr,getGroupUser:ir,addGroupUser:cr,removeGroupUser:ur},{createFileEntity:pr,createFileTemporaryCredentials:dr,updateFileState:mr,abandonFile:lr}=C;function fr({metadataDocument:e={},...t}={}){return r({path:"/API/import/",method:"POST",body:e,...t})}function Pr({...e}={}){return r({path:"/API/import/storage",method:"GET",...e})}function Tr({file:e=o(),headers:t={},...n}){return r({path:"/API/import/raw/",method:"POST",body:e,headers:{contentType:"application/octet-stream",...t},...n})}function $r({file:e=o(),headers:t={},...n}){return r({path:"/APInoauth/import/raw/",method:"POST",body:e,headers:{contentType:"application/octet-stream",...t},...n})}function gr({metadataDocument:e={},...t}={}){return r({path:"/API/import/raw-passkey/",method:"POST",body:e,...t})}function Ir({itemId:e=o(),component:t=o(),...n}={}){const a=`/API/import/placeholder/${e}/${t}/raw-passkey`;return r({path:a,method:"POST",...n})}function Ar({metadataDocument:e={},...t}={}){return r({path:"/API/import/imp/",method:"POST",body:e,...t})}function Er({metadataDocument:e={},...t}={}){return r({path:"/API/import/placeholder/",method:"POST",body:e,...t})}function yr({itemId:e=o(),component:t=o(),...n}){const a=`/API/import/placeholder/${e}/${t}/`;return r({path:a,method:"POST",...n})}function br({itemId:e=o(),component:t=o(),file:n=o(),headers:a={},...s}){const i=`/API/import/placeholder/${e}/${t}/raw/`;return r({path:i,method:"POST",body:n,headers:{contentType:"application/octet-stream",...a},...s})}function Sr({itemId:e=o(),component:t=o(),file:n=o(),headers:a={},...s}){const i=`/APInoauth/import/placeholder/${e}/${t}/raw/`;return r({path:i,method:"POST",body:n,headers:{contentType:"application/octet-stream",...a},...s})}function Gr({itemId:e=o(),placeholderImportRequestDocument:t,...n}){const a=`/API/import/placeholder/${e}/`;return r({path:a,method:"POST",body:t,...n})}function vr({itemId:e=o(),...t}){const n=`/API/import/placeholder/${e}/raw-passkey/`;return r({path:n,method:"POST",...t})}function kr({itemId:e=o(),component:t=o(),fileId:n=o(),...a}){const s=`/API/import/placeholder/${e}/${t}/adopt/${n}/`;return r({path:s,method:"POST",...a})}function Ur({itemId:e=o(),...t}){const n=`/API/import/sidecar/${e}/`;return r({path:n,method:"POST",...t})}function Lr({itemId:e=o(),file:t,headers:n={},...a}){const s={contentType:"application/octet-stream",...n},i=`/API/import/sidecar/${e}/raw/`;return r({path:i,method:"POST",body:t,headers:s,...a})}function Cr({file:e=o(),storageId:t=o()}){return new Promise((n,a)=>{let s,i;pr({storageId:t,queryParams:{path:e.name}}).then(u=>(i=u.data,s=u.data.id,dr({fileId:s,queryParams:{write:!0,scheme:"https",duration:720}}))).then(u=>{const p=u.data.uri[0];return fetch(p,{method:"PUT",headers:{"Content-Type":"application/octet-stream"},body:e})}).then(()=>{mr({fileId:s,state:"CLOSED"})}).then(()=>{n(i)}).catch(u=>{s&&lr({fileId:s}),a(u.response)})})}const Mr={createImportUri:fr,getImportStorage:Pr,createImportRaw:Tr,createImportRawNoAuth:$r,createImportRawPasskey:gr,createImportComponentRawPasskey:Ir,createImportImp:Ar,createImportPlaceholder:Er,createImportComponent:yr,createImportComponentRaw:br,createImportComponentRawNoAuth:Sr,createImportItem:Gr,createImportItemPasskey:vr,createImportItemAdoptFile:kr,createImportItemSidecar:Ur,createImportItemSidecarRaw:Lr,createImportS3Direct:Cr};function Dr({...e}={}){return r({path:"/API/import/settings",method:"GET",...e})}function Or({importSettingsDocument:e,...t}){return r({path:"/API/import/settings",method:"POST",body:e,...t})}function xr({settingsId:e=o(),...t}){const n=`/API/import/settings/${e}`;return r({path:n,method:"GET",...t})}function jr({settingsId:e=o(),importSettingsDocument:t,...n}){const a=`/API/import/settings/${e}`;return r({path:a,method:"PUT",body:t,...n})}function Fr({settingsId:e=o(),...t}){const n=`/API/import/settings/${e}`;return r({path:n,method:"DELETE",...t})}const Rr={listImportSettings:Dr,createImportSettings:Or,getImportSettings:xr,updateImportSettings:jr,removeImportSettings:Fr},{updateEntityMetadata:wr,getEntityMetadata:zr}=g,{listEntityMetadataLock:qr,createEntityMetadataLock:Br,getEntityMetadataLock:Nr,updateEntityMetadataLock:Jr,removeEntityMetadataLock:Vr}=b;function Kr({...e}={}){return r({path:"/API/item/",method:"GET",...e})}function Hr({itemId:e=o(),...t}){const n=`/API/item/${e}/`;return r({path:n,method:"GET",...t})}function Qr({itemId:e=o(),...t}){const n=`/API/item/${e}/uri`;return r({path:n,method:"GET",...t})}function _r({itemId:e=o(),...t}){const n=`/API/item/${e}/`;return r({path:n,method:"DELETE",...t})}function Wr({...e}={}){return r({path:"/API/item/",method:"DELETE",...e})}function Xr({itemSearchDocument:e={},...t}={}){return r({path:"/API/item/",method:"PUT",body:e,...t})}function Yr({metadataGroupSearchDocument:e,...t}){return r({path:"/API/item/metadata-group",method:"PUT",body:e,...t})}function Zr({itemId:e=o(),metadataDocument:t,...n}){return wr({entity:"item",entityId:e,metadataDocument:t,...n})}function ts({itemId:e=o(),...t}){return zr({entity:"item",entityId:e,...t})}function es({itemId:e=o(),...t}){const n=`/API/item/${e}/thumbnail`;return r({path:n,method:"POST",...t})}function ns({itemId:e=o(),...t}){const n=`/API/item/${e}/transcode`;return r({path:n,method:"POST",...t})}function os({itemId:e=o(),...t}){const n=`/API/item/${e}/export`;return r({path:n,method:"POST",...t})}function as({itemId:e=o(),...t}){const n=`/API/item/${e}/export/imp`;return r({path:n,method:"POST",...t})}function rs({itemId:e=o(),...t}){const n=`/API/item/${e}/relation`;return r({path:n,method:"GET",...t})}function ss({itemId:e=o(),relationItemId:t=o(),...n}){const a=`/API/item/${e}/relation/${t}`;return r({path:a,method:"POST",...n})}function is({itemRelationListDocument:e=o(),...t}){return r({path:"/API/relation/",method:"POST",body:e,...t})}function cs({itemId:e=o(),relationItemId:t=o(),...n}){const a=`/API/item/${e}/relation/${t}`;return r({path:a,method:"DELETE",...n})}function us({itemId:e=o(),...t}){const n=`/API/item/${e}/relation/`;return r({path:n,method:"DELETE",...t})}function hs({itemRelationListDocument:e=o(),...t}){return r({path:"/API/relation",method:"POST",body:e,...t})}function ps({relationId:e=o(),...t}){const n=`/API/relation/${e}/`;return r({path:n,method:"GET",...t})}function ds({relationId:e=o(),...t}){const n=`/API/relation/${e}/`;return r({path:n,method:"PUT",...t})}function ms({relationId:e=o(),...t}){const n=`/API/relation/${e}/`;return r({path:n,method:"DELETE",...t})}function ls({...e}={}){return r({path:"/API/item/history",method:"GET",...e})}function fs({itemId:e=o(),...t}){const n=`/API/item/${e}/re-index`;return r({path:n,method:"PUT",...t})}function Ps({...e}={}){return r({path:"/API/item/list",method:"POST",...e})}function Ts({itemId:e=o(),...t}){const n=`/API/item/${e}/collections`;return r({path:n,method:"GET",...t})}function $s({itemId:e=o(),...t}){const n=`/API/item/${e}/library`;return r({path:n,method:"GET",...t})}function gs({itemId:e=o(),...t}){const n=`/API/item/${e}/lock`;return r({path:n,method:"POST",...t})}function Is({itemId:e=o(),...t}){const n=`/API/item/${e}/lock`;return r({path:n,method:"GET",...t})}function As({itemId:e=o(),...t}){const n=`/API/item/${e}/lock`;return r({path:n,method:"DELETE",...t})}function Es({itemId:e=o(),...t}){const n=`/API/item/${e}/lock`;return r({path:n,method:"PUT",...t})}function ys({itemId:e=o(),...t}){return qr({entity:"item",entityId:e,...t})}function bs({itemId:e=o(),...t}){return Br({entity:"item",entityId:e,...t})}function Ss({itemId:e=o(),lockId:t=o(),...n}){return Nr({entity:"item",entityId:e,lockId:t,...n})}function Gs({itemId:e=o(),lockId:t=o(),...n}){return Jr({entity:"item",entityId:e,lockId:t,...n})}function vs({itemId:e=o(),lockId:t=o(),...n}){return Vr({entity:"item",entityId:e,lockId:t,...n})}function ks({itemId:e=o(),...t}){const n=`/API/item/${e}/loudness`;return r({path:n,method:"GET",...t})}function Us({itemId:e=o(),...t}){const n=`/API/item/${e}/waveform/values`;return r({path:n,method:"GET",...t})}function Ls({itemId:e=o(),headers:t={},...n}){const a=`/API/item/${e}/waveform/image`,s={accept:"image/png",...t};return r({path:a,method:"GET",headers:s,...n})}function Cs({itemId:e=o(),headers:t={},...n}){const a=`/API/item/${e}/waveform/imageURI`,s={accept:"text/plain",...t};return r({path:a,method:"GET",headers:s,...n})}function Ms({itemId:e=o(),analyzeJobDocument:t,...n}){const a=`/API/item/${e}/analyze`;return r({path:a,method:"POST",body:t,...n})}const Ds={listItem:Kr,getItem:Hr,getItemUri:Qr,removeItem:_r,removeItemList:Wr,searchItem:Xr,searchItemMetadataGroup:Yr,updateItemMetadata:Zr,getItemMetadata:ts,createThumbnail:es,createTranscode:ns,createExport:os,createExportImp:as,listItemRelation:rs,createItemRelation:ss,createItemRelationList:is,removeItemRelation:cs,removeAllItemRelation:us,createRelation:hs,getRelation:ps,updateRelation:ds,removeRelation:ms,getItemSearchHistory:ls,reindexItem:fs,createItemList:Ps,listItemCollection:Ts,listItemLibrary:$s,createItemLock:gs,getItemLock:Is,removeItemLock:As,updateItemLock:Es,listItemMetadataLock:ys,createItemMetadataLock:bs,getItemMetadataLock:Ss,updateItemMetadataLock:Gs,removeItemMetadataLock:vs,getItemLoudness:ks,getItemWaveformValue:Us,getItemWaveformImage:Ls,getItemWaveformImageUri:Cs,createItemAnalyze:Ms};function Os({javascriptDocument:e,headers:t={},...n}){const a={contentType:"application/javascript",...t};return r({path:"/API/javascript/test",method:"POST",body:e,headers:a,...n})}const xs={test:Os};function l(e){return e==="file"?"storage/file":["metadata","access"].includes(e)?"item":e}function js({entityType:e=o(),...t}={}){const a=`/API/${l(e)}/notification/`;return r({path:a,method:"GET",...t})}function Fs({entityType:e=o(),entityId:t=o(),...n}={}){const s=`/API/${l(e)}/${t}/notification/`;return r({path:s,method:"GET",...n})}function Rs({notificationId:e=o(),entityType:t=o(),...n}={}){const s=`/API/${l(t)}/notification/${e}`;return r({path:s,method:"GET",...n})}function ws({notificationId:e=o(),entityType:t=o(),notificationDocument:n,...a}={}){const i=`/API/${l(t)}/notification/${e}`;return r({path:i,method:"PUT",body:n,...a})}function zs({entityType:e=o(),notificationDocument:t,...n}={}){const s=`/API/${l(e)}/notification/`;return r({path:s,method:"POST",body:t,...n})}function qs({notificationId:e=o(),entityType:t=o(),...n}={}){const s=`/API/${l(t)}/notification/${e}`;return r({path:s,method:"DELETE",...n})}function Bs({notificationId:e=o(),entityType:t=o(),entityId:n=o(),...a}={}){const i=`/API/${l(t)}/${n}/notification/${e}`;return r({path:i,method:"GET",...a})}function Ns({notificationId:e=o(),entityType:t=o(),entityId:n=o(),notificationDocument:a,...s}={}){const u=`/API/${l(t)}/${n}/notification/${e}`;return r({path:u,method:"PUT",body:a,...s})}function Js({entityType:e=o(),notificationDocument:t,entityId:n,...a}={}){const i=`/API/${l(e)}/${n}/notification/`;return r({path:i,method:"POST",body:t,...a})}function Vs({notificationId:e=o(),entityType:t=o(),entityId:n=o(),...a}={}){const i=`/API/${l(t)}/${n}/notification/${e}`;return r({path:i,method:"DELETE",...a})}const M={listNotification:js,listNotificationEntity:Fs,getNotification:Rs,updateNotification:ws,createNotification:zs,removeNotification:qs,getNotificationEntity:Bs,updateNotificationEntity:Ns,createNotificationEntity:Js,removeNotificationEntity:Vs},{listNotification:Ks}=M;function Hs({...e}={}){return r({path:"/API/job/",method:"GET",...e})}function Qs({jobSearchDocument:e={},...t}={}){return r({path:"/API/job/search/",method:"PUT",body:e,...t})}function _s({jobId:e=o(),...t}){const n=`/API/job/${e}`;return r({path:n,method:"GET",...t})}function Ws({jobId:e=o(),...t}){const n=`/API/job/${e}/problem`;return r({path:n,method:"GET",...t})}function Xs({simpleMetadataDocument:e,...t}={}){return r({path:"/API/job",method:"POST",body:e,...t})}function Ys({jobId:e=o(),...t}){const n=`/API/job/${e}/re-run`;return r({path:n,method:"POST",...t})}function Zs({jobId:e=o(),...t}){const n=`/API/job/${e}`;return r({path:n,method:"PUT",...t})}function ti({jobId:e=o(),...t}){const n=`/API/job/${e}`;return r({path:n,method:"DELETE",...t})}function ei({...e}={}){return r({path:"/API/job/",method:"DELETE",...e})}function ni({...e}={}){return Ks({entityType:"job",...e})}const oi={listJob:Hs,searchJob:Qs,getJob:_s,getJobProblem:Ws,createJob:Xs,duplicateJob:Ys,modifyJob:Zs,abortJob:ti,deleteJob:ei,listJobNotification:ni};function ai({...e}={}){return r({path:"/API/library/",method:"GET",...e})}function ri({itemListDocument:e={},...t}){return r({path:"/API/library",method:"POST",body:e,...t})}function si({libraryId:e=o(),...t}){const n=`/API/library/${e}`;return r({path:n,method:"DELETE",...t})}function ii({...e}={}){return r({path:"/API/library",method:"DELETE",...e})}function ci({libraryId:e=o(),...t}){const n=`/API/library/${e}`;return r({path:n,method:"GET",...t})}function ui({libraryId:e=o(),itemListDocument:t,...n}){const a=`/API/library/${e}`;return r({path:a,method:"PUT",body:t,...n})}function hi({libraryId:e=o(),itemId:t=o(),...n}){const a=`/API/library/${e}/${t}`;return r({path:a,method:"PUT",...n})}function pi({libraryId:e=o(),itemId:t=o(),...n}){const a=`/API/library/${e}/${t}`;return r({path:a,method:"DELETE",...n})}function di({libraryId:e=o(),metadataDocument:t,...n}){const a=`/API/library/${e}/item-metadata`;return r({path:a,method:"PUT",body:t,...n})}function mi({libraryId:e=o(),...t}){const n=`/API/library/${e}/settings`;return r({path:n,method:"GET",...t})}function li({libraryId:e=o(),librarySettingsDocument:t,...n}){const a=`/API/library/${e}/settings`;return r({path:a,method:"PUT",body:t,...n})}function fi({libraryId:e=o(),...t}){const n=`/API/library/${e}/list`;return r({path:n,method:"POST",...t})}function Pi({libraryId:e=o(),queryParams:t=o(),...n}){const a=`/API/library/${e}/export`;return r({path:a,method:"POST",queryParams:t,...n})}const Ti={listLibrary:ai,createLibrary:ri,removeLibrary:si,removeLibraryList:ii,getLibrary:ci,updateLibrary:ui,addLibraryItem:hi,removeLibraryItem:pi,updateLibraryItemMetadata:di,getLibrarySettings:mi,updateLibrarySettings:li,getLibraryBatch:fi,exportLibrary:Pi};function $i({file:e=o(),headers:t={},...n}){const a={contentType:"application/octet-stream",...t};return r({path:"/API/license",method:"POST",body:e,headers:a,...n})}const gi={createLicense:$i};function Ii({...e}={}){return r({path:"/API/metadata/dataset",method:"GET",...e})}function Ai({datasetId:e=o(),...t}){const n=`/API/metadata/dataset/${e}`;return r({path:n,method:"GET",...t})}function Ei({datasetId:e=o(),body:t=o(),...n}){const a=`/API/metadata/dataset/${e}`;return r({path:a,method:"PUT",body:t,...n})}function yi({datasetId:e=o(),...t}){const n=`/API/metadata/dataset/${e}`;return r({path:n,method:"DELETE",...t})}const bi={listMetadataDataset:Ii,getMetadataDataset:Ai,updateMetadataDataset:Ei,removeMetadataDataset:yi},{getSimpleMetadata:Si}=g;function Gi({...e}={}){return r({path:"/API/metadata-field/",method:"GET",...e})}function vi({fieldName:e=o(),...t}){const n=`/API/metadata-field/${e}/`;return r({path:n,method:"GET",...t})}function ki({fieldName:e=o(),metadataFieldDocument:t,...n}){const a=`/API/metadata-field/${e}`;return r({path:a,method:"PUT",body:t,...n})}function Ui({fieldName:e=o(),...t}){const n=`/API/metadata-field/${e}`;return r({path:n,method:"DELETE",...t})}function Li({fieldName:e=o(),...t}){const n=`/API/metadata-field/${e}/values/`;return r({path:n,method:"GET",...t})}function Ci({fieldName:e=o(),metadataFieldValueConstraintListDocument:t,...n}){const a=`/API/metadata-field/${e}/allowed-values/`;let s="GET";return t&&(s="POST"),r({path:a,method:s,body:t,...n})}function Mi({fieldName:e=o(),simpleMetadataDocument:t,...n}){const a=`/API/metadata-field/${e}/values`;return r({path:a,method:"PUT",body:t,...n})}function Di({fieldName:e=o(),...t}){return Si({entityType:"metadata-field",entityId:e,...t})}function Oi({fieldName:e=o(),...t}){const n=`/API/metadata-field/${e}/access`;return r({path:n,method:"GET",...t})}function xi({fieldName:e=o(),metadataFieldAccessControlDocument:t=o(),...n}){const a=`/API/metadata-field/${e}/access`;return r({path:a,method:"POST",body:t,...n})}function ji({fieldName:e=o(),accessId:t=o(),...n}){const a=`/API/metadata-field/${e}/access/${t}`;return r({path:a,method:"DELETE",...n})}function Fi({...e}={}){return r({path:"/API/metadata-field/merged-access",method:"GET",...e})}function Ri({fieldName:e=o(),...t}={}){const n=`/API/metadata-field/${e}/merged-access`;return r({path:n,method:"GET",...t})}const wi={listMetadataField:Gi,getMetadataField:vi,updateMetadataField:ki,removeMetadataField:Ui,getMetadataFieldValues:Li,getMetadataFieldAllowedValues:Ci,updateMetadataFieldValues:Mi,getSimpleMetadata:Di,listMetadataFieldAccess:Oi,createMetadataFieldAccess:xi,removeMetadataFieldAccess:ji,listMetadataFieldMergedAccess:Fi,getMetadataFieldMergedAccess:Ri};function zi({...e}={}){return r({path:"/API/metadata/migration",method:"GET",...e})}function qi({migrationId:e=o(),...t}){const n=`/API/metadata/migration/${e}`;return r({path:n,method:"GET",...t})}function Bi({metadataSchemaMigrationDocument:e=o(),...t}){return r({path:"/API/metadata/migration",method:"POST",body:e,...t})}const Ni={listMetadataMigration:zi,getMetadataMigration:qi,createMetadataMigration:Bi};function Ji({...e}={}){return r({path:"/API/metadata-schema",method:"GET",...e})}function Vi({metadataSchemaDocument:e=o(),...t}){return r({path:"/API/metadata-schema",method:"PUT",body:e,...t})}function Ki({...e}={}){return r({path:"/API/metadata-schema",method:"DELETE",...e})}function Hi({groupName:e=o(),...t}={}){const n=`/API/metadata-schema${e}`;return r({path:n,method:"GET",...t})}function Qi({groupName:e=o(),metadataSchemaGroupDocument:t=o(),...n}={}){const a=`/API/metadata-schema${e}`;return r({path:a,method:"PUT",body:t,...n})}function _i({groupName:e=o(),...t}={}){const n=`/API/metadata-schema${e}`;return r({path:n,method:"DELETE",...t})}function Wi({...e}={}){return r({path:"/API/metadata-field/terse-schema",method:"GET",...e})}const Xi={getMetadataSchema:Ji,updateMetadataSchema:Vi,removeMetadataSchema:Ki,getMetadataSchemaGroup:Hi,updateMetadataSchemaGroup:Qi,removeMetadataSchemaGroup:_i,getTerseMetadataSchema:Wi};function Yi({...e}={}){return r({path:"/APInoauth/is-online/",method:"GET",...e})}function Zi({...e}={}){return r({path:"/APInoauth/selftest/",method:"GET",...e})}function tc({headers:e={},...t}={}){const n={accept:"text/plain",...e};return r({path:"/APIinit/",method:"POST",headers:n,...t})}function ec({path:e=o(),headers:t={},...n}){const a={accept:"application/octet-stream",...t};return r({path:e,method:"GET",headers:a,responseType:"blob",...n})}const nc={getSelfTest:Zi,createInit:tc,getFileRaw:ec,isOnline:Yi};function oc({projectDocument:e=o(),...t}){return r({path:"/API/collection/project/",method:"POST",body:e,...t})}function ac({collectionId:e=o(),projectVersionDocument:t=o(),...n}){const a=`/API/collection/${e}/version`;return r({path:a,method:"POST",body:t,...n})}function rc({collectionId:e=o(),headers:t={},...n}){const a=`/API/collection/${e}/definition`,s={accept:"text/plain",...t};return r({path:a,method:"GET",headers:s,...n})}function sc({collectionId:e=o(),format:t=o(),body:n=o(),headers:a={},...s}){const i=`/API/collection/${e}/definition/${t}`,u={contentType:"application/octet-stream",...a};return r({path:i,method:"PUT",body:n,headers:u,...s})}function ic({collectionId:e=o(),format:t=o(),headers:n={},...a}){const s=`/API/collection/${e}/definition/${t}`,i={accept:"application/octet-stream",...n};return r({path:s,method:"GET",headers:i,...a})}function cc({collectionId:e=o(),format:t=o(),...n}){const a=`/API/collection/${e}/definition/${t}`;return r({path:a,method:"DELETE",...n})}function uc({collectionId:e=o(),format:t=o(),...n}){const a=`/API/collection/${e}/definition/${t}/asset`;return r({path:a,method:"GET",...n})}function hc({collectionId:e=o(),format:t=o(),essenceMappingsDocument:n=o(),...a}){const s=`/API/collection/${e}/definition/${t}/asset`;return r({path:s,method:"PUT",body:n,...a})}function pc({collectionId:e=o(),format:t=o(),...n}){const a=`/API/collection/${e}/definition/${t}/asset`;return r({path:a,method:"DELETE",...n})}function dc({collectionId:e=o(),format:t=o(),headers:n={},...a}){const s=`/API/collection/${e}/definition/${t}/extradata`,i={accept:"application/octet-stream",...n};return r({path:s,method:"GET",headers:i,...a})}function mc({collectionId:e=o(),format:t=o(),body:n=o(),headers:a={},...s}){const i=`/API/collection/${e}/definition/${t}/extradata`,u={contentType:"application/octet-stream",...a};return r({path:i,method:"PUT",headers:u,body:n,...s})}function lc({collectionId:e=o(),format:t=o(),...n}){const a=`/API/collection/${e}/definition/${t}/extradata`;return r({path:a,method:"DELETE",...n})}function fc({queryParams:e=o(),essenceMappingsDocument:t,...n}){return r({path:"/API/collection/project/inspect",method:"POST",body:t,queryParams:e,...n})}function Pc({queryParams:e=o(),essenceMappingsDocument:t,...n}){return r({path:"/API/import/project",method:"POST",body:t,queryParams:e,...n})}function Tc({queryParams:e=o(),essenceMappingsDocument:t,...n}){return r({path:"/API/import/project/sequence",method:"POST",body:t,queryParams:e,...n})}function $c({collectionId:e=o(),queryParams:t=o(),exportRequestDocument:n,...a}){const s=`/API/collection/${e}/version/export`;let i="GET";return n&&(i="POST"),r({path:s,method:i,body:n,queryParams:t,...a})}const gc={createProject:oc,createProjectVersion:ac,listProjectDefinition:rc,updateProjectDefinition:sc,getProjectDefinition:ic,removeProjectDefinition:cc,getProjectDefinitionAsset:uc,updateProjectDefinitionAsset:hc,removeProjectDefinitionAsset:pc,getProjectDefinitionExtraData:dc,updateProjectDefinitionExtraData:mc,removeProjectDefinitionExtraData:lc,inspectProjectFile:fc,importProject:Pc,importProjectSequence:Tc,exportProjectVersionSequence:$c};function Ic({...e}={}){return r({path:"/API/projection/",method:"GET",...e})}function Ac({projectionId:e=o(),headers:t={},...n}){const a=`/API/projection/${e}/outgoing`,s={accept:"application/xml",...t};return r({path:a,method:"GET",headers:s,...n})}function Ec({projectionId:e=o(),headers:t={},...n}){const a=`/API/projection/${e}/incoming`,s={accept:"application/xml",...t};return r({path:a,method:"GET",headers:s,...n})}function yc({projectionId:e=o(),projectionDocument:t,headers:n={},...a}){const s=`/API/projection/${e}/outgoing`,i={contentType:"application/xml",accept:"application/xml",...n};return r({path:s,method:"PUT",body:t,headers:i,...a})}function bc({projectionId:e=o(),projectionDocument:t,headers:n={},...a}){const s=`/API/projection/${e}/incoming`,i={contentType:"application/xml",accept:"application/xml",...n};return r({path:s,method:"PUT",body:t,headers:i,...a})}function Sc({projectionId:e=o(),...t}){const n=`/API/projection/${e}`;return r({path:n,method:"DELETE",...t})}const Gc={listProjection:Ic,getProjectionOutgoing:Ac,getProjectionIncoming:Ec,updateProjectionOutgoing:yc,updateProjectionIncoming:bc,removeProjection:Sc};function vc({...e}={}){return r({path:"/API/quota/",method:"GET",...e})}function kc({quotaRuleDocument:e,...t}){return r({path:"/API/quota/",method:"POST",body:e,...t})}function Uc({ruleId:e=o(),...t}){const n=`/API/quota/${e}`;return r({path:n,method:"GET",...t})}function Lc({ruleId:e=o(),...t}){const n=`/API/quota/${e}`;return r({path:n,method:"PUT",...t})}function Cc({ruleId:e=o(),...t}){const n=`/API/quota/${e}`;return r({path:n,method:"DELETE",...t})}const Mc={listQuota:vc,createQuota:kc,getQuota:Uc,evaluateQuota:Lc,removeQuota:Cc};function Dc({indexName:e=o(),...t}){const n=`/API/reindex/${e}`;return r({path:n,method:"GET",...t})}function Oc({indexName:e=o(),...t}){const n=`/API/reindex/${e}/`;return r({path:n,method:"PUT",...t})}const xc={getReindex:Dc,updateReindex:Oc};function jc({...e}={}){return r({path:"/API/resource/",method:"GET",...e})}function Fc({resourceType:e=o(),...t}){const n=`/API/resource/${e}`;return r({path:n,method:"GET",...t})}function Rc({resourceType:e=o(),resourceDocument:t,...n}){const a=`/API/resource/${e}`;return r({path:a,method:"POST",body:t,...n})}function wc({resourceType:e=o(),resourceId:t=o(),resourceDocument:n,...a}){const s=`/API/resource/${e}/${t}`;return r({path:s,method:"PUT",body:n,...a})}function zc({resourceType:e=o(),resourceId:t=o(),...n}){const a=`/API/resource/${e}/${t}`;return r({path:a,method:"GET",...n})}function qc({resourceType:e=o(),resourceId:t=o(),...n}){const a=`/API/resource/${e}/${t}`;return r({path:a,method:"DELETE",...n})}function Bc({resourceType:e=o(),resourceId:t=o(),headers:n={},...a}){const s={accept:"text/plain",...n},i=`/API/resource/${e}/${t}/status`;return r({path:i,method:"GET",headers:s,...a})}const Nc={listResource:jc,listResourceType:Fc,createResource:Rc,modifyResource:wc,getResource:zc,removeResource:qc,statusResource:Bc};function Jc({...e}){return r({path:"/API/scheduled-request/",method:"GET",...e})}function Vc({requestId:e=o(),...t}){const n=`/API/scheduled-request/${e}`;return r({path:n,method:"GET",...t})}function Kc({requestId:e=o(),headers:t={},...n}){const a=`/API/scheduled-request/${e}/response`,s={accept:"*/*",...t};return r({path:a,headers:s,method:"GET",...n})}function Hc({requestId:e=o(),...t}){const n=`/API/scheduled-request/${e}`;return r({path:n,method:"DELETE",...t})}function Qc({...e}){return r({path:"/API/scheduled-request",method:"DELETE",...e})}const _c={listScheduledRequest:Jc,getScheduledRequest:Vc,getScheduledRequestResponse:Kc,removeScheduledRequest:Hc,removeAllScheduledRequest:Qc};function Wc({...e}={}){return r({path:"/API/search/",method:"GET",...e})}function Xc({itemSearchDocument:e,...t}){return r({path:"/API/search/",method:"PUT",body:e,...t})}function Yc({metadataGroupSearchDocument:e,...t}){return r({path:"/API/search/metadata-group",method:"PUT",body:e,...t})}function Zc({shapeSearchDocument:e,...t}){return r({path:"/API/search/shape/",method:"PUT",body:e,...t})}function tu({fileSearchDocument:e,...t}){return r({path:"/API/search/file/",method:"PUT",body:e,...t})}function eu({autocompleteRequestDocument:e,...t}){return r({path:"/API/search/autocomplete/",method:"PUT",body:e,...t})}const nu={listItemCollection:Wc,searchItemCollection:Xc,searchItemCollectionMetadataGroup:Yc,searchShape:Zc,searchFile:tu,searchAutoComplete:eu};function ou({...e}={}){return r({path:"/API/secret/",method:"GET",...e})}function au({alias:e=o(),...t}){const n=`/API/secret/${e}`;return r({path:n,method:"GET",...t})}function ru({alias:e=o(),secretDocument:t={},...n}={}){const a=`/API/secret/${e}`;return r({path:a,method:"PUT",body:t,...n})}function su({alias:e=o(),...t}){const n=`/API/secret/${e}`;return r({path:n,method:"DELETE",...t})}function iu({alias:e=o(),key:t=o(),value:n=o(),headers:a={},...s}){const i=`/API/secret/${e}/${t}`,u={contentType:"text/plain",...a};return r({path:i,method:"PUT",body:n,headers:u,...s})}function cu({alias:e=o(),key:t=o(),...n}){const a=`/API/secret/${e}/${t}`;return r({path:a,method:"DELETE",...n})}const uu={listSecret:ou,getSecret:au,createSecret:ru,deleteSecret:su,updateSecretValue:iu,deleteSecretValue:cu};function hu({noAuth:e=!1,...t}={}){return r({path:e?"/APInoauth/selftest/":"/API/selftest/",method:"GET",...t})}function pu({testName:e=o(),...t}={}){const n=`/API/selftest/${e}`;return r({path:n,method:"GET",...t})}const du={listSelfTest:hu,getSelfTest:pu};function mu({itemId:e=o(),format:t=o(),sequenceDefinition:n,headers:a={},...s}){const i=`/API/item/${e}/sequence/${t}`,u={contentType:"application/octet-stream",...a};return r({path:i,method:"PUT",body:n,headers:u,...s})}function lu({itemId:e=o(),...t}){const n=`/API/item/${e}/sequence`;return r({path:n,method:"GET",...t})}function fu({itemId:e=o(),format:t=o(),headers:n={},...a}){const s=`/API/item/${e}/sequence/${t}`,i={accept:"*/*",...n};return r({path:s,method:"GET",headers:i,...a})}function Pu({itemId:e=o(),...t}){const n=`/API/item/${e}/sequence/conform-metadata`;return r({path:n,method:"POST",...t})}function Tu({itemId:e=o(),...t}){const n=`/API/item/${e}/sequence/render`;return r({path:n,method:"POST",...t})}function $u({itemId:e=o(),format:t=o(),...n}){const a=`/API/item/${e}/sequence/${t}`;return r({path:a,method:"DELETE",...n})}function gu({sequenceRenderRequestDocument:e=o(),...t}){return r({path:"/API/sequence/render",method:"POST",body:e,...t})}function Iu({queryParams:e=o(),exportRequestDocument:t,...n}){return r({path:"/API/sequence/export",method:"POST",body:t,queryParams:e,...n})}function Au({itemId:e=o(),queryParams:t=o(),exportRequestDocument:n,...a}){const s=`/API/item/${e}/sequence/export`;let i="GET";return n&&(i="POST"),r({path:s,method:i,body:n,queryParams:t,...a})}const Eu={updateItemSequence:mu,listItemSequence:lu,getItemSequence:fu,conformItemSequence:Pu,renderItemSequence:Tu,removeItemSequence:$u,renderSequence:gu,exportSequence:Iu,exportItemSequence:Au};function yu({...e}={}){return r({path:"/API/vidispine-service",method:"GET",...e})}function bu({serviceName:e=o(),...t}){const n=`/API/vidispine-service/service/${e}`;return r({path:n,method:"GET",...t})}function Su({serviceName:e=o(),...t}){const n=`/API/vidispine-service/service/${e}/enable`;return r({path:n,method:"PUT",...t})}function Gu({serviceName:e=o(),...t}){const n=`/API/vidispine-service/service/${e}/disable`;return r({path:n,method:"PUT",...t})}function vu({headers:e={},...t}={}){const n="/API/vidispine-service/stacktrace",a={accept:"text/plain",...e};return r({path:n,method:"GET",headers:a,...t})}const ku={getServiceList:yu,getService:bu,enableService:Su,disableService:Gu,getStackTrace:vu};function Uu({itemId:e=o(),metadataDocument:t={},headers:n={},...a}){const s={accept:"text/plain",...n},i=`/API/item/${e}/shape/placeholder`;return r({path:i,method:"POST",body:t,headers:s,...a})}function Lu({itemId:e=o(),shapeDocument:t={},...n}){const a=`/API/item/${e}/shape/create`;return r({path:a,method:"POST",body:t,...n})}function Cu({itemId:e=o(),shapeId:t=o(),simpleMetadataDocument:n={},...a}){const s=`/API/item/${e}/shape/${t}/placeholder`;return r({path:s,method:"PUT",body:n,...a})}function Mu({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/`;return r({path:n,method:"POST",...t})}function Du({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/imp`;return r({path:n,method:"POST",...t})}function Ou({itemId:e=o(),headers:t={},file:n,...a}){const s=`/API/item/${e}/shape/raw`,i={contentType:"application/octet-stream",...t};return r({path:s,method:"POST",body:n,headers:i,...a})}function xu({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/`;return r({path:n,method:"GET",...t})}function ju({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/`;return r({path:a,method:"GET",...n})}function Fu({itemId:e=o(),shapeId:t=o(),headers:n={},...a}){const s=`/API/item/${e}/shape/${t}/graph`,i={accept:"image/png",...n};return r({path:s,method:"GET",headers:i,...a})}function Ru({itemId:e=o(),shapeId:t=o(),headers:n={},...a}){const s=`/API/item/${e}/shape/${t}/graph/dot`,i={accept:"text/plain",...n};return r({path:s,method:"GET",headers:i,...a})}function wu({itemId:e=o(),shapeId:t=o(),headers:n={},...a}){const s=`/API/item/${e}/shape/${t}/cpl`,i={accept:"application/xml",...n};return r({path:s,method:"GET",headers:i,...a})}function zu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/transcode`;return r({path:a,method:"POST",...n})}function qu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/export`;return r({path:a,method:"POST",...n})}function Bu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/export/imp`;return r({path:a,method:"POST",...n})}function Nu({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/version`;return r({path:n,method:"GET",...t})}function Ju({itemId:e=o(),versionId:t=o(),...n}){const a=`/API/item/${e}/shape/version/${t}`;return r({path:a,method:"GET",...n})}function Vu({itemId:e=o(),versionId:t=o(),...n}){const a=`/API/item/${e}/shape/version/${t}`;return r({path:a,method:"DELETE",...n})}function Ku({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/version/`;return r({path:n,method:"POST",...t})}function Hu({itemId:e=o(),versionId:t=o(),...n}){const a=`/API/item/${e}/shape/version/${t}`;return r({path:a,method:"POST",...n})}function Qu({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/essence`;return r({path:n,method:"POST",...t})}function _u({itemId:e=o(),headers:t={},file:n,...a}){const s=`/API/item/${e}/shape/essence/raw`,i={contentType:"application/octet-stream",...t};return r({path:s,body:n,method:"POST",headers:i,...a})}function Wu({itemId:e=o(),shapeId:t=o(),...n}={}){const a=`/API/item/${e}/shape/${t}`;return r({path:a,method:"DELETE",...n})}function Xu({itemId:e=o(),...t}={}){const n=`/API/item/${e}/shape/`;return r({path:n,method:"DELETE",...t})}function Yu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/transcode`;return r({path:a,method:"POST",...n})}function Zu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/thumbnail`;return r({path:a,method:"POST",...n})}function th({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/update`;return r({path:a,method:"POST",...n})}function eh({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/file`;return r({path:a,method:"GET",...n})}function nh({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/tag`;return r({path:a,method:"GET",...n})}function oh({itemId:e=o(),shapeId:t=o(),tagName:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/tag/${n}`;return r({path:s,method:"PUT",...a})}function ah({itemId:e=o(),shapeId:t=o(),tagName:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/tag/${n}`;return r({path:s,method:"DELETE",...a})}function rh({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/mime`;return r({path:a,method:"GET",...n})}function sh({itemId:e=o(),shapeId:t=o(),mimeType:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/mime/${n}`;return r({path:s,method:"PUT",...a})}function ih({itemId:e=o(),shapeId:t=o(),mimeType:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/mime/${n}`;return r({path:s,method:"DELETE",...a})}function ch({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/filename`;return r({path:a,method:"GET",...n})}function uh({itemId:e=o(),shapeId:t=o(),storageId:n=o(),queryParams:a=o(),...s}){const i=`/API/item/${e}/shape/${t}/filename/${n}`;return r({path:i,method:"PUT",queryParams:a,...s})}function hh({itemId:e=o(),shapeId:t=o(),storageId:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/filename/${n}`;return r({path:s,method:"DELETE",...a})}function ph({itemId:e=o(),shapeId:t=o(),analyzeJobDocument:n,...a}){const s=`/API/item/${e}/shape/${t}/analyze`;return r({path:s,method:"POST",body:n,...a})}function dh({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/smartcrop-render`;return r({path:a,method:"POST",...n})}function mh({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/smartcrop-edl`;return r({path:a,method:"GET",...n})}function lh({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/highlight-render`;return r({path:a,method:"POST",...n})}function fh({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/highlighter-edl`;return r({path:a,method:"GET",...n})}const Ph={createShapePlaceholder:Uu,createShape:Lu,updateShapePlaceholder:Cu,createShapeImport:Mu,createShapeImportImp:Du,createShapeImportRaw:Ou,listShape:xu,getShape:ju,getShapeGraph:Fu,getShapeGraphDot:Ru,getShapeCpl:wu,createShapeTranscode:zu,createShapeExport:qu,createShapeExportImp:Bu,listShapeEssence:Nu,getShapeEssence:Ju,removeShapeEssence:Vu,copyShapeEssence:Ku,copyShapeEssenceSpecific:Hu,createShapeEssenceImport:Qu,createShapeEssenceImportRaw:_u,removeShape:Wu,removeShapeAll:Xu,createTranscode:Yu,createThumbnail:Zu,createDeduction:th,listShapeFile:eh,getShapeTag:nh,updateShapeTag:oh,removeShapeTag:ah,getShapeMime:rh,updateShapeMime:sh,removeShapeMime:ih,getShapeFileNameRule:ch,createShapeFileNameRule:uh,removeShapeFileNameRule:hh,createShapeAnalyze:ph,createSmartcrop:dh,getSmartcrop:mh,createHighlight:lh,getHighlight:fh};function Th({...e}={}){return r({path:"/API/shape-tag/",method:"GET",...e})}function $h({tagName:e=o(),...t}){const n=`/API/shape-tag/${e}`;return r({path:n,method:"GET",...t})}function gh({tagName:e=o(),transcodePresetDocument:t,...n}){const a=`/API/shape-tag/${e}`;return r({path:a,method:"PUT",body:t,...n})}function Ih({tagName:e=o(),...t}){const n=`/API/shape-tag/${e}`;return r({path:n,method:"DELETE",...t})}function Ah({tagName:e=o(),headers:t={},...n}){const a={accept:"application/javascript",...t},s=`/API/shape-tag/${e}/script`;return r({path:s,method:"GET",headers:a,...n})}function Eh({tagName:e=o(),shapeTagScript:t,headers:n={},...a}){const s={contentType:"application/javascript",...n},i=`/API/shape-tag/${e}/script`;return r({path:i,method:"PUT",body:t,headers:s,...a})}function yh({tagName:e=o(),...t}){const n=`/API/shape-tag/${e}/script`;return r({path:n,method:"DELETE",...t})}function bh({tagName:e=o(),itemId:t=o(),shapeId:n=o(),...a}){const s=`/API/shape-tag/${e}/item/${t}/shape/${n}/`;return r({path:s,method:"GET",...a})}function Sh({...e}={}){return r({path:"/APIinit/preset-templates",method:"PUT",...e})}const Gh={listShapeTag:Th,getShapeTag:$h,updateShapeTag:gh,removeShapeTag:Ih,getShapeTagScript:Ah,updateShapeTagScript:Eh,removeShapeTagScript:yh,testShapeTagScript:bh,createShapeTagPreset:Sh};function vh({headers:e={},...t}={}){const n={accept:"image/png",...e};return r({path:"/APInoauth/stitch",method:"GET",headers:n,...t})}const kh={getStitch:vh};function Uh({...e}={}){return r({path:"/API/storage/",method:"GET",...e})}function Lh({storageDocument:e,...t}){return r({path:"/API/storage/",method:"POST",body:e,...t})}function Ch({storageId:e=o(),...t}){const n=`/API/storage/${e}/`;return r({path:n,method:"GET",...t})}function Mh({storageId:e=o(),storageDocument:t,...n}){const a=`/API/storage/${e}/`;return r({path:a,method:"PUT",body:t,...n})}function Dh({storageId:e=o(),metadataDocument:t,...n}){const a=`/API/storage/${e}/metadata`;return r({path:a,method:"PUT",body:t,...n})}function Oh({storageId:e=o(),key:t=o(),metadataValue:n,headers:a={},...s}){const i={contentType:"text/plain",...a},u=`/API/storage/${e}/metadata/${t}`;return r({path:u,method:"PUT",body:n,headers:i,...s})}function xh({storageId:e=o(),key:t=o(),...n}){const a=`/API/storage/${e}/metadata/${t}`;return r({path:a,method:"DELETE",...n})}function jh({storageId:e=o(),...t}){const n=`/API/storage/${e}/rescan`;return r({path:n,method:"POST",...t})}function Fh({storageId:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/storage/${e}/method/`;return r({path:s,method:"PUT",headers:a,...n})}function Rh({storageId:e=o(),storageMethodId:t=o(),headers:n={},...a}){const s={accept:"text/plain",...n},i=`/API/storage/${e}/method/${t}/`;return r({path:i,method:"PUT",headers:s,...a})}function wh({storageId:e=o(),storageMethodId:t=o(),headers:n={},...a}){const s={accept:"text/plain",...n},i=`/API/storage/${e}/method/${t}`;return r({path:i,method:"DELETE",headers:s,...a})}function zh({storageId:e=o(),storageMethodId:t=o(),...n}){const a=`/API/storage/${e}/method/${t}`;return r({path:a,method:"GET",...n})}function qh({storageId:e=o(),...t}){const n=`/API/storage/${e}/method/`;return r({path:n,method:"GET",...t})}function Bh({storageId:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/storage/${e}/`;return r({path:s,method:"DELETE",headers:a,...n})}function Nh({storageId:e=o(),...t}){const n=`/API/storage/${e}/evacuate`;return r({path:n,method:"PUT",...t})}function Jh({storageId:e=o(),...t}){const n=`/API/storage/${e}/evacuate`;return r({path:n,method:"DELETE",...t})}function Vh({storageId:e=o(),storageType:t=o(),...n}){const a=`/API/storage/${e}/type/${t}`;return r({path:a,method:"PUT",...n})}const Kh={listStorage:Uh,createStorage:Lh,getStorage:Ch,modifyStorage:Mh,modifyStorageMetadata:Dh,modifyStorageMetadataKey:Oh,removeStorageMetadata:xh,rescanStorage:jh,createStorageMethod:Fh,modifyStorageMethod:Rh,removeStorageMethod:wh,getStorageMethod:zh,listStorageMethod:qh,removeStorage:Bh,startEvacuateStorage:Nh,cancelEvacuateStorage:Jh,updateStorageType:Vh};function Hh({...e}={}){return r({path:"/API/storage/storage-group/",method:"GET",...e})}function Qh({groupName:e=o(),...t}){const n=`/API/storage/storage-group/${e}`;return r({path:n,method:"PUT",...t})}function _h({groupName:e=o(),...t}){const n=`/API/storage/storage-group/${e}`;return r({path:n,method:"GET",...t})}function Wh({groupName:e=o(),...t}){const n=`/API/storage/storage-group/${e}`;return r({path:n,method:"DELETE",...t})}function Xh({groupName:e=o(),storageId:t=o(),...n}){const a=`/API/storage/storage-group/${e}/${t}`;return r({path:a,method:"PUT",...n})}function Yh({groupName:e=o(),storageId:t=o(),...n}){const a=`/API/storage/storage-group/${e}/${t}`;return r({path:a,method:"DELETE",...n})}const Zh={listStorageGroup:Hh,createStorageGroup:Qh,getStorageGroup:_h,removeStorageGroup:Wh,addStorageGroupStorage:Xh,removeStorageGroupStorage:Yh};function tp({...e}={}){return r({path:"/API/storage-rule/",method:"GET",...e})}function ep({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/storage-rule`;return r({path:a,method:"GET",...n})}function np({entityType:e=o(),entityId:t=o(),storageRuleDocument:n,...a}){const s=`/API/${e}/${t}/storage-rule`;return r({path:s,method:"PUT",body:n,...a})}function op({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/storage-rule`;return r({path:a,method:"DELETE",...n})}function ap({entityType:e=o(),entityId:t=o(),tagName:n=o(),...a}){const s=`/API/${e}/${t}/storage-rule/${n}`;return r({path:s,method:"GET",...a})}function rp({entityType:e=o(),entityId:t=o(),tagName:n=o(),storageRuleDocument:a,...s}){const i=`/API/${e}/${t}/storage-rule/${n}`;return r({path:i,method:"PUT",body:a,...s})}function sp({entityType:e=o(),entityId:t=o(),tagName:n=o(),...a}){const s=`/API/${e}/${t}/storage-rule/${n}`;return r({path:s,method:"DELETE",...a})}function ip({tagName:e=o(),...t}){const n=`/API/shape-tag/storage-rule/${e}`;return r({path:n,method:"GET",...t})}function cp({tagName:e=o(),storageRuleDocument:t,...n}){const a=`/API/shape-tag/storage-rule/${e}`;return r({path:a,method:"PUT",body:t,...n})}function up({tagName:e=o(),...t}){const n=`/API/shape-tag/storage-rule/${e}`;return r({path:n,method:"DELETE",...t})}const hp={listStorageRule:tp,getEntityStorageRule:ep,updateEntityStorageRule:np,removeEntityStorageRule:op,getEntityStorageRuleTag:ap,updateEntityStorageRuleTag:rp,removeEntityStorageRuleTag:sp,getStorageRuleShapeTag:ip,updateStorageRuleShapeTag:cp,removeStorageRuleShapeTag:up};function pp({itemId:e=o(),headers:t={},...n}){const a=`/API/item/${e}/metadata/export/scc`,s={accept:"text/plain ",...t};return r({path:a,method:"GET",headers:s,...n})}function dp({itemId:e=o(),headers:t={},...n}){const a=`/API/item/${e}/metadata/export/ttml`,s={accept:"application/xml",...t};return r({path:a,method:"GET",headers:s,...n})}const mp={getSubtitleSCC:pp,getSubtitleTTML:dp};function lp({...e}={}){return r({path:"/API/jobtype",method:"GET",...e})}function fp({jobType:e=o(),...t}){const n=`/API/task-definition/jobtype/${e}/`;return r({path:n,method:"POST",...t})}function Pp({jobType:e=o(),...t}){const n=`/API/task-definition/jobtype/${e}/`;return r({path:n,method:"DELETE",...t})}function Tp({jobType:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/task-definition/jobtype/${e}/graph/dot`;return r({path:s,method:"GET",headers:a,...n})}function $p({jobType:e=o(),headers:t={},...n}){const a={accept:"image/png",...t},s=`/API/task-definition/jobtype/${e}/graph`;return r({path:s,method:"GET",headers:a,responseType:"blob",...n})}function gp({...e}={}){return r({path:"/API/task-definition",method:"GET",...e})}function Ip({taskDefinitionType:e=o(),...t}){const n=`/API/task-definition/jobtype/${e}/`;return r({path:n,method:"GET",...t})}function Ap({taskDefinitionListDocument:e,...t}){return r({path:"/API/task-definition",method:"POST",body:e,...t})}function Ep({taskDefinitionId:e=o(),...t}){const n=`/API/task-definition/${e}`;return r({path:n,method:"GET",...t})}function yp({taskDefinitionType:e=o(),taskDefinitionStep:t=o(),...n}){const a=`/API/task-definition/jobtype/${e}/step/${t}`;return r({path:a,method:"GET",...n})}function bp({taskDefinitionId:e=o(),...t}){const n=`/API/task-definition/${e}`;return r({path:n,method:"DELETE",...t})}function Sp({taskDefinitionType:e=o(),taskDefinitionStep:t=o(),...n}){const a=`/API/task-definition/jobtype/${e}/step/${t}`;return r({path:a,method:"DELETE",...n})}function Gp({taskDefinitionId:e=o(),taskDefinitionDocument:t=o(),...n}){const a=`/API/task-definition/${e}`;return r({path:a,method:"PUT",body:t,...n})}function vp({taskDefinitionType:e=o(),taskDefinitionStep:t=o(),taskDefinitionDocument:n,...a}){const s=`/API/task-definition/jobtype/${e}/step/${t}`;return r({path:s,method:"PUT",body:n,...a})}function kp({taskDefinitionId:e=o(),headers:t={},...n}){const a={accept:"application/javascript",...t},s=`/API/task-definition/${e}/script`;return r({path:s,method:"GET",headers:a,...n})}function Up({taskDefinitionType:e=o(),taskDefinitionStep:t=o(),headers:n={},...a}){const s={accept:"application/javascript",...n},i=`/API/task-definition/jobtype/${e}/step/${t}/script`;return r({path:i,method:"GET",headers:s,...a})}function Lp({taskDefinitionId:e=o(),scriptDocument:t,headers:n={},...a}){const s={contentType:"application/javascript",accept:"application/javascript",...n},i=`/API/task-definition/${e}/script`;return r({path:i,method:"PUT",body:t,headers:s,...a})}function Cp({taskDefinitionType:e=o(),taskDefinitionStep:t=o(),scriptDocument:n,headers:a={},...s}){const i={contentType:"application/javascript",accept:"application/javascript",...a},u=`/API/task-definition/jobtype/${e}/step/${t}/script`;return r({path:u,method:"PUT",body:n,headers:i,...s})}const Mp={listJobType:lp,createJobType:fp,removeJobType:Pp,getJobTypeGraphDot:Tp,getJobTypeGraph:$p,listTaskDefinition:gp,getTaskDefinitionType:Ip,createTaskDefinition:Ap,getTaskDefinition:Ep,getTaskDefinitionStep:yp,removeTaskDefinition:bp,removeTaskDefinitionStep:Sp,modifyTaskDefinition:Gp,modifyTaskDefinitionStep:vp,getTaskDefinitionScript:kp,getTaskDefinitionStepScript:Up,updateTaskDefinitionScript:Lp,updateTaskDefinitionStepScript:Cp};function Dp({...e}={}){return r({path:"/API/task-group",method:"GET",...e})}function Op({groupName:e=o(),taskGroupDocument:t,...n}){const a=`/API/task-group/${e}`;return r({path:a,method:"PUT",body:t,...n})}function xp({groupName:e=o(),...t}){const n=`/API/task-group/${e}`;return r({path:n,method:"GET",...t})}function jp({groupName:e=o(),...t}){const n=`/API/task-group/${e}`;return r({path:n,method:"DELETE",...t})}function Fp({...e}={}){return r({path:"/API/task-group",method:"DELETE",...e})}function Rp({groupName:e=o(),transcoderId:t=o(),taskGroupDocument:n,...a}){const s=`/API/task-group/${e}/transcoder/${t}`;return r({path:s,method:"PUT",...a})}function wp({groupName:e=o(),transcoderId:t=o(),...n}){const a=`/API/task-group/${e}/transcoder/${t}`;return r({path:a,method:"DELETE",...n})}const zp={listTaskGroup:Dp,updateTaskGroup:Op,getTaskGroup:xp,removeTaskGroup:jp,removeAllTaskGroup:Fp,updateTaskGroupTranscoder:Rp,removeTaskGroupTranscoder:wp};function qp({itemId:e=o(),...t}){const n=`/API/item/${e}/thumbnail`;return r({path:n,method:"POST",...t})}function Bp({itemId:e=o(),...t}){const n=`/API/item/${e}/thumbnailresource`;return r({path:n,method:"GET",...t})}function Np({itemId:e=o(),...t}){const n=`/API/item/${e}/thumbnailresource`;return r({path:n,method:"PUT",...t})}function Jp({itemId:e=o(),resourceId:t=o(),...n}){const a=`/API/thumbnail/${t}/${e}`;return r({path:a,method:"GET",...n})}function Vp({itemId:e=o(),resourceId:t=o(),...n}){const a=`/API/thumbnail/${t}/${e}`;return r({path:a,method:"DELETE",...n})}function Kp({itemId:e=o(),resourceId:t=o(),time:n=o(),headers:a={},file:s,...i}){const u=`/API/thumbnail/${t}/${e}/${n}`,p={accept:"text/plain",...a};return r({path:u,method:"PUT",body:s,headers:p,...i})}function Hp({itemId:e=o(),resourceId:t=o(),time:n=o(),headers:a={},...s}){const i=`/API/thumbnail/${t}/${e}/${n}`,u={accept:"image/png, image/jpeg",...a};return r({path:i,method:"GET",headers:u,...s})}function Qp({itemId:e=o(),resourceId:t=o(),time:n=o(),...a}){const s=`/API/thumbnail/${t}/${e}/${n}/export`;return r({path:s,method:"GET",...a})}function _p({itemId:e=o(),resourceId:t=o(),time:n=o(),...a}){const s=`/API/thumbnail/${t}/${e}/${n}`;return r({path:s,method:"DELETE",...a})}function Wp({itemId:e=o(),...t}){const n=`/API/item/${e}/posterresource`;return r({path:n,method:"GET",...t})}function Xp({itemId:e=o(),...t}){const n=`/API/item/${e}/posterresource`;return r({path:n,method:"PUT",...t})}function Yp({itemId:e=o(),resourceId:t=o(),...n}){const a=`/API/poster/${t}/${e}`;return r({path:a,method:"GET",...n})}function Zp({itemId:e=o(),resourceId:t=o(),...n}){const a=`/API/poster/${t}/${e}`;return r({path:a,method:"DELETE",...n})}function td({itemId:e=o(),resourceId:t=o(),time:n=o(),...a}){const s=`/API/poster/${t}/${e}/${n}`;return r({path:s,method:"PUT",...a})}function ed({itemId:e=o(),resourceId:t=o(),time:n=o(),headers:a={},...s}){const i=`/API/poster/${t}/${e}/${n}`,u={accept:"image/png, image/jpeg",...a};return r({path:i,method:"GET",headers:u,...s})}function nd({itemId:e=o(),resourceId:t=o(),time:n=o(),...a}){const s=`/API/poster/${t}/${e}/${n}/export`;return r({path:s,method:"GET",...a})}function od({itemId:e=o(),resourceId:t=o(),time:n=o(),...a}){const s=`/API/poster/${t}/${e}/${n}`;return r({path:s,method:"DELETE",...a})}const ad={createThumbnail:qp,listThumbnailResource:Bp,createThumbnailResource:Np,listThumbnail:Jp,removeAllThumbnail:Vp,updateThumbnail:Kp,getThumbnail:Hp,exportThumbnail:Qp,removeThumbnail:_p,listPosterResource:Wp,createPosterResource:Xp,listPoster:Yp,removeAllPoster:Zp,updatePoster:td,getPoster:ed,exportPoster:nd,removePoster:od};function rd({itemId:e=o(),headers:t={},...n}){const a=`/API/item/${e}/timeline`,s={accept:"text/plain",...t};return r({path:a,method:"GET",headers:s,...n})}function sd({itemId:e=o(),...t}){const n=`/API/item/${e}/timeline`;return r({path:n,method:"DELETE",...t})}function id({itemId:e=o(),format:t=o(),...n}){const a=`/API/item/${e}/timeline/${t}`;return r({path:a,method:"GET",...n})}function cd({itemId:e=o(),format:t=o(),body:n=o(),...a}){const s=`/API/item/${e}/timeline/${t}`;return r({path:s,method:"PUT",body:n,...a})}function ud({itemId:e=o(),format:t=o(),...n}){const a=`/API/item/${e}/timeline/${t}`;return r({path:a,method:"DELETE",...n})}const hd={getTimeline:rd,removeTimeline:sd,getTimelineFormat:id,updateTimelineFormat:cd,removeTimelineFormat:ud};function pd({...e}={}){return r({path:"/API/transfer/",method:"GET",...e})}function dd({transferId:e=o(),...t}){const n=`/API/transfer/${e}`;return r({path:n,method:"GET",...t})}function md({transferId:e=o(),...t}){const n=`/API/transfer/${e}`;return r({path:n,method:"PUT",...t})}function ld({...e}={}){return r({path:"/API/log/transfer-log/",method:"GET",...e})}const fd={listTransfer:pd,getTransfer:dd,updateTransferPriority:md,listTransferLog:ld};function Pd({username:e=o(),password:t=o(),file:n=o(),headers:a={},...s}){const i={accept:"text/html",...a};i.delete("content-type");const u="/UploadLicense/getlic",p=new FormData;return p.append("user",e),p.append("pass",t),p.append("file",n),r({path:u,body:p,method:"POST",headers:i,...s})}const Td={createLicense:Pd};function $d({headers:e={},...t}={}){const n="/API/whoami",a={accept:"text/plain",...e};return r({path:n,method:"GET",headers:a,...t})}function gd({username:e=o(),password:t,headers:n={},...a}){const s={username:e,password:t,accept:"text/plain",...n},i=`/API/user/${e}/token`;return r({path:i,method:"GET",headers:s,...a})}function Id({...e}={}){return r({path:"/API/user/",method:"GET",...e})}function Ad({userDocument:e,...t}){return r({path:"/API/user/",method:"POST",body:e,...t})}function Ed({userName:e=o(),...t}){const n=`/API/user/${e}`;return r({path:n,method:"GET",...t})}function yd({userName:e=o(),...t}){const n=`/API/user/${e}/graph`;return r({path:n,method:"GET",...t})}function bd({userName:e=o(),userDocument:t=o(),...n}){const a=`/API/user/${e}`;return r({path:a,method:"PUT",body:t,...n})}function Sd({userName:e=o(),...t}){const n=`/API/user/${e}/`;return r({path:n,method:"DELETE",...t})}function Gd({userName:e=o(),...t}){const n=`/API/user/${e}/enable`;return r({path:n,method:"PUT",...t})}function vd({userSearchDocument:e,...t}){return r({path:"/API/user/",method:"PUT",body:e,...t})}function kd({userName:e=o(),alias:t=o(),...n}){const a=`/API/user/${e}/alias/${t}`;return r({path:a,method:"PUT",...n})}function Ud({userName:e=o(),alias:t=o(),...n}){const a=`/API/user/${e}/alias/${t}`;return r({path:a,method:"DELETE",...n})}function Ld({userName:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/user/${e}/realname`;return r({path:s,method:"GET",headers:a,...n})}function Cd({userName:e=o(),realName:t,headers:n={},...a}){const s={accept:"text/plain",contentType:"text/plain",...n},i=`/API/user/${e}/realname`;return r({path:i,method:"PUT",body:t,headers:s,...a})}function Md({userName:e=o(),password:t=o(),headers:n={},...a}){const s={accept:"text/plain",contentType:"text/plain",...n},i=`/API/user/${e}/password/`;return r({path:i,method:"PUT",body:t,headers:s,...a})}function Dd({userName:e=o(),password:t=o(),headers:n={},...a}){const s={accept:"text/plain",contentType:"text/plain",...n},i=`/API/user/${e}/validate/`;return r({path:i,method:"PUT",body:t,headers:s,...a})}function Od({userName:e=o(),headers:t={},...n}){const a={accept:"application/octet-stream",...t},s=`/API/user/${e}/password/salt`;return r({path:s,method:"GET",headers:a,...n})}function xd({userName:e=o(),headers:t={},...n}){const a={accept:"application/octet-stream",...t},s=`/API/user/${e}/password/salt`;return r({path:s,method:"POST",headers:a,...n})}function jd({userName:e=o(),...t}){const n=`/API/user/${e}/groups/`;return r({path:n,method:"GET",...t})}function Fd({userName:e=o(),...t}){const n=`/API/user/${e}/roles`;return r({path:n,method:"GET",...t})}function Rd({userName:e=o(),...t}){const n=`/API/user/${e}/allgroups`;return r({path:n,method:"GET",...t})}function wd({userName:e=o(),groupListDocument:t,...n}){const a=`/API/user/${e}/groups/`;return r({path:a,method:"PUT",body:t,...n})}function zd({headers:e={},...t}={}){const n="/API/token",a={accept:"text/plain",...e};return r({path:n,method:"GET",headers:a,...t})}function qd({userName:e=o(),...t}){const n=`/API/user/${e}/key`;return r({path:n,method:"GET",...t})}function Bd({userName:e=o(),keyId:t=o(),...n}){const a=`/API/user/${e}/key/${t}`;return r({path:a,method:"GET",...n})}function Nd({userName:e=o(),...t}){const n=`/API/user/${e}/key/`;return r({path:n,method:"POST",...t})}function Jd({userName:e=o(),keyId:t=o(),accessKeyDocument:n,...a}){const s=`/API/user/${e}/key/${t}`;return r({path:s,method:"PUT",body:n,...a})}function Vd({userName:e=o(),keyId:t=o(),...n}){const a=`/API/user/${e}/key/${t}`;return r({path:a,method:"DELETE",...n})}function Kd({userName:e=o(),...t}){const n=`/API/user/${e}/access`;return r({path:n,method:"GET",...t})}const Hd={whoAmI:$d,getUserToken:gd,listUser:Id,createUser:Ad,getUser:Ed,getUserGraph:yd,updateUser:bd,disableUser:Sd,enableUser:Gd,searchUser:vd,createAlias:kd,removeAlias:Ud,getUserRealName:Ld,updateUserRealName:Cd,updateUserPassword:Md,validateUserPassword:Dd,getUserSalt:Od,createUserSalt:xd,getUserGroup:jd,getUserRole:Fd,getUserGroupRole:Rd,updateUserGroup:wd,getToken:zd,listKey:qd,getKey:Bd,createKey:Nd,updateKey:Jd,removeKey:Vd,getAccess:Kd};function Qd({...e}={}){return r({path:"/API/version",method:"GET",...e})}const _d={getVersion:Qd};function Wd({path:e=o(),...t}){const n=`/API/cost/${e}`;return r({path:n,method:"GET",...t})}function Xd({costEstimateId:e=o(),...t}){const n=`/API/cost/estimate/${e}`;return r({path:n,method:"GET",...t})}const Yd={createCostEstimate:Wd,getCostEstimate:Xd};function Zd({...e}={}){return r({path:"/API/vxa/",method:"GET",...e})}function tm({headers:e={},...t}={}){const n="/API/vxa/enable-ssh/",a={accept:"text/plain",...e};return r({path:n,method:"PUT",headers:a,...t})}function em({vxaUuid:e=o(),...t}){const n=`/API/vxa/${e}`;return r({path:n,method:"GET",...t})}function nm({vxaUuid:e=o(),...t}){const n=`/API/vxa/${e}/configuration`;return r({path:n,method:"GET",...t})}function om({vxaUuid:e=o(),...t}){const n=`/API/vxa/${e}`;return r({path:n,method:"DELETE",...t})}const am={listVxa:Zd,createVxa:tm,getVxa:em,getVxaConfiguration:nm,removeVxa:om},{login:rm,logout:sm}=U;h.ChunkedTransferManager=L,h.ChunkedUpload=I,h.access=at,h.analyzepreset=it,h.auditlog=ht,h.autoimport=Tt,h.autoprojection=Gt,h.bulkymetadata=Qt,h.collection=hn,h.component=yn,h.configuration=oo,h.conform=so,h.debug=co,h.deletionlock=go,h.documentmetadata=Go,h.errorlog=ko,h.exportlocation=xo,h.exporttemplate=Vo,h.externalid=ta,h.fieldgroup=Ta,h.file=C,h.globalmetadata=Ha,h.group=hr,h.importsettings=Rr,h.item=Ds,h.javascript=xs,h.job=oi,h.library=Ti,h.license=gi,h.login=rm,h.logout=sm,h.metadata=g,h.metadatadataset=bi,h.metadatafield=wi,h.metadatalock=b,h.metadatamigration=Ni,h.metadataschema=Xi,h.noauth=nc,h.notification=M,h.project=gc,h.projection=Gc,h.quota=Mc,h.reindex=xc,h.resource=Nc,h.scheduledrequest=_c,h.search=nu,h.secret=uu,h.selftest=du,h.sequence=Eu,h.service=ku,h.shape=Ph,h.shapetag=Gh,h.stitch=kh,h.storage=Kh,h.storagegroup=Zh,h.storagerule=hp,h.subtitle=mp,h.taskdefinition=Mp,h.taskgroup=zp,h.thumbnail=ad,h.timeline=hd,h.transfer=fd,h.uploadlicense=Td,h.user=Hd,h.utils=U,h.version=_d,h.vidinet=Yd,h.vsimport=Mr,h.vxa=am,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})});
1
+ (function(h,$){typeof exports=="object"&&typeof module<"u"?$(exports,require("buffer"),require("axios")):typeof define=="function"&&define.amd?define(["exports","buffer","axios"],$):(h=typeof globalThis<"u"?globalThis:h||self,$(h["@vidispine/vdt-api"]={},h.buffer,h.axios))})(this,function(h,$,G){"use strict";const P=G.create(),{CancelToken:x}=G;function O({baseURL:e,token:t,username:n,password:a,bearerToken:s}){e&&(P.defaults.baseURL=e),t&&(P.defaults.headers.Authorization=`token ${t}`),s&&(P.defaults.headers.Authorization=`Bearer ${s}`),(n||a)&&(P.defaults.auth={username:n,password:a})}function j(){delete P.defaults.headers.Authorization,delete P.defaults.auth}function F(e){return(e instanceof $.Buffer?e:$.Buffer.from(e.toString(),"binary")).toString("base64")}function v(e,t,n){let a;return s=>{const i=this,u=()=>{a=null,n||e.apply(i,s)},p=n&&!a;clearTimeout(a),a=setTimeout(u,t),p&&e.apply(i,s)}}function k(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function R({username:e=!1,password:t=!1,token:n,contentType:a="application/json",accept:s="application/json",...i}={}){const u={"content-type":a,Accept:s};if(e){const p=F(`${e}:${t}`);u.Authorization=`Basic ${p}`}else n&&(u.Authorization=`token ${n}`);return{...i,...u}}const w=["jobmetadata","jobMetadata","notificationdata","notificationData","methodMetadata"];function z(e,t=!0){const n=t?encodeURIComponent:u=>u,a=Object.keys(e);if(a.length===0)return"";const s=(u,p,m)=>{if(typeof e[p]>"u")return u;const d=e[p],f=m>0?"&":"";if(w.includes(p)&&Array.isArray(d)){const E=(S,D,im)=>`${S}${im>0?"&":""}${p}=${encodeURIComponent(`${D.key}=${D.value}`)}`,T=d.reduce(E,"");return`${u}${f}${T}`}return Array.isArray(d)?`${u}${f}${p}=${n(d.join(","))}`:`${u}${f}${p}=${n(d)}`};return a.reduce(s,"?")}function q(e){let t=e;if(Array.isArray(e)||(t=Object.entries(e)),t.length===0)return"";const n=(s,i)=>{let u,p;return Array.isArray(i)?[u,p]=i:([u]=Object.keys(i),[p]=Object.values(i)),p===""||p===void 0?s:`${s};${u}=${encodeURIComponent(p)}`};return t.reduce(n,"")}function o(){throw new Error("Missing property")}function r({path:e,method:t="GET",body:n,headers:a={},queryParams:s={},matrixParams:i=[],costEstimate:u=!1,encodeParams:p=!0,...m}={}){const d=z(s,p),f=q(i),E=R(a);let T=`${e}${f}${d}`;u&&(T=T.replace("/API/","/API/cost/"));const S={method:t,url:T,headers:E,data:n,...m};return P(S)}const U=Object.freeze(Object.defineProperty({__proto__:null,CancelToken:x,debounce:v,default:r,defaultClient:P,isRequired:o,login:O,logout:j,uuidv4:k,vFetch:r},Symbol.toStringTag,{value:"Module"}));function B({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/access/`;return r({path:a,method:"GET",...n})}function N({entityType:e=o(),entityId:t=o(),accessControlDocument:n,...a}){const s=`/API/${e}/${t}/access/`;return r({path:s,method:"POST",body:n,...a})}function J({entityType:e=o(),entityId:t=o(),accessId:n=o(),...a}){const s=`/API/${e}/${t}/access/${n}`;return r({path:s,method:"GET",...a})}function V({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/merged-access/`;return r({path:a,method:"GET",...n})}function H({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/merged-access/group`;return r({path:a,method:"GET",...n})}function K({entityType:e=o(),entityId:t=o(),accessId:n=o(),...a}){const s=`/API/${e}/${t}/access/${n}`;return r({path:s,method:"DELETE",...a})}function Q({entityType:e=o(),entityId:t=o(),userName:n=o(),...a}){const s=`/API/${e}/${t}/access/owner/${n}`;return r({path:s,method:"PUT",...a})}function _({entityType:e=o(),entityId:t=o(),accessControlListDocument:n,...a}){const s=`/API/${e}/${t}/access/bulk`;return r({path:s,method:"POST",body:n,...a})}function W({entityType:e=o(),entityId:t=o(),accessControlListDocument:n,...a}){const s=`/API/${e}/${t}/access/bulk`;return r({path:s,method:"DELETE",body:n,...a})}function X({entityType:e=o(),entityId:t=o(),headers:n={},...a}){const s=`/API/${e}/${t}/access/graph`,i={accept:"image/png",...n};return r({path:s,method:"GET",headers:i,...a})}function Y({entityType:e=o(),entityId:t=o(),headers:n={},...a}){const s=`/API/${e}/${t}/access/graph/dot`,i={accept:"text/plain",...n};return r({path:s,method:"GET",headers:i,...a})}function Z({accessControlDocument:e,...t}){return r({path:"/API/item/access/",method:"POST",body:e,...t})}function tt({...e}={}){return r({path:"/API/item/access/",method:"DELETE",...e})}function et({...e}={}){return r({path:"/API/import/access/",method:"GET",...e})}function nt({groupName:e=o(),...t}){const n=`/API/import/access/group/${e}`;return r({path:n,method:"PUT",...t})}function ot({groupName:e=o(),...t}){const n=`/API/import/access/group/${e}`;return r({path:n,method:"DELETE",...t})}const at={listEntityAccess:B,createEntityAccess:N,getEntityAccess:J,getEntityAccessMerged:V,getEntityAccessMergedGroup:H,removeEntityAccess:K,updateEntityOwner:Q,createEntityAccessBulk:_,removeEntityAccessBulk:W,getEntityAccessGraph:X,getEntityAccessGraphDot:Y,createItemAllAccess:Z,removeItemAllAccess:tt,getImportAccess:et,updateImportAccessGroup:nt,removeImportAccessGroup:ot};function rt({...e}={}){return r({path:"/API/analyze-preset",method:"GET",...e})}function st({preset:e=o(),...t}={}){const n=`/API/analyze-preset/${e}`;return r({path:n,method:"GET",...t})}const it={listAnalyzePreset:rt,getAnalyzePreset:st};function ct({...e}={}){return r({path:"/API/log/",method:"GET",...e})}function ut({...e}={}){return r({path:"/API/log/export",method:"GET",...e})}const ht={listAuditLog:ct,exportAuditLog:ut};function pt({...e}={}){return r({path:"/API/storage/auto-import/",method:"GET",...e})}function dt({storageId:e=o(),autoImportRuleDocument:t,...n}){const a=`/API/storage/${e}/auto-import/`;return r({path:a,method:"PUT",body:t,...n})}function mt({storageId:e=o(),...t}){const n=`/API/storage/${e}/auto-import/`;return r({path:n,method:"GET",...t})}function lt({storageId:e=o(),...t}){const n=`/API/storage/${e}/auto-import/`;return r({path:n,method:"DELETE",...t})}function ft({storageId:e=o(),...t}){const n=`/API/storage/${e}/auto-import/enable`;return r({path:n,method:"PUT",...t})}function Pt({storageId:e=o(),...t}){const n=`/API/storage/${e}/auto-import/disable`;return r({path:n,method:"PUT",...t})}const Tt={listAutoImport:pt,updateAutoImport:dt,getAutoImport:mt,removeAutoImport:lt,enableAutoImport:ft,disableAutoImport:Pt};function $t({...e}={}){return r({path:"/API/auto-projection",method:"GET",...e})}function gt({...e}={}){return r({path:"/API/auto-projection/disable",method:"GET",...e})}function It({...e}={}){return r({path:"/API/auto-projection/enable",method:"GET",...e})}function At({projectionName:e=o(),...t}){const n=`/API/auto-projection/${e}`;return r({path:n,method:"GET",...t})}function Et({projectionName:e=o(),autoProjectionRuleDocument:t=o(),...n}){const a=`/API/auto-projection/${e}`;return r({path:a,method:"PUT",body:t,...n})}function yt({projectionName:e=o(),...t}){const n=`/API/auto-projection/${e}`;return r({path:n,method:"DELETE",...t})}function bt({projectionName:e=o(),...t}){const n=`/API/auto-projection/${e}/enable`;return r({path:n,method:"PUT",...t})}function St({projectionName:e=o(),...t}){const n=`/API/auto-projection/${e}/disable`;return r({path:n,method:"PUT",...t})}const Gt={listAutoProjection:$t,listDisabledAutoProjection:gt,listEnabledAutoProjection:It,getAutoProjection:At,createAutoProjection:Et,removeAutoProjection:yt,enableAutoProjection:bt,disableAutoProjection:St};function vt({itemId:e=o(),...t}){const n=`/API/item/${e}/metadata/bulky`;return r({path:n,method:"GET",...t})}function kt({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/metadata/bulky`;return r({path:a,method:"GET",...n})}function Ut({itemId:e=o(),shapeId:t=o(),componentId:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/component/${n}/metadata/bulky`;return r({path:s,method:"GET",...a})}function Lt({itemId:e=o(),bulkyMetadataDocument:t=o(),...n}){const a=`/API/item/${e}/metadata/bulky`;return r({path:a,method:"PUT",body:t,...n})}function Ct({itemId:e=o(),shapeId:t=o(),bulkyMetadataDocument:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/metadata/bulky`;return r({path:s,method:"PUT",body:n,...a})}function Mt({itemId:e=o(),shapeId:t=o(),componentId:n=o(),bulkyMetadataDocument:a=o(),...s}){const i=`/API/item/${e}/shape/${t}/component/${n}/metadata/bulky`;return r({path:i,method:"PUT",body:a,...s})}function Dt({itemId:e=o(),...t}){const n=`/API/item/${e}/metadata/bulky`;return r({path:n,method:"DELETE",...t})}function xt({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/metadata/bulky`;return r({path:a,method:"DELETE",...n})}function Ot({itemId:e=o(),shapeId:t=o(),componentId:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/component/${n}/metadata/bulky`;return r({path:s,method:"DELETE",...a})}function jt({itemId:e=o(),key:t=o(),...n}){const a=`/API/item/${e}/metadata/bulky/${t}`;return r({path:a,method:"GET",...n})}function Ft({itemId:e=o(),key:t=o(),headers:n={},...a}){const s={accept:"application/octet-stream",...n},i=`/API/item/${e}/metadata/bulky/${t}/as-file`;return r({path:i,method:"GET",headers:s,transitional:{silentJSONParsing:!1,forcedJSONParsing:!1},...a})}function Rt({itemId:e=o(),shapeId:t=o(),key:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/metadata/bulky/${n}`;return r({path:s,method:"GET",...a})}function wt({itemId:e=o(),shapeId:t=o(),key:n=o(),headers:a={},...s}){const i={accept:"application/octet-stream",...a},u=`/API/item/${e}/shape/${t}/metadata/bulky/${n}/as-file`;return r({path:u,method:"GET",headers:i,transitional:{silentJSONParsing:!1,forcedJSONParsing:!1},...s})}function zt({itemId:e=o(),shapeId:t=o(),componentId:n=o(),key:a=o(),...s}){const i=`/API/item/${e}/shape/${t}/component/${n}/metadata/bulky/${a}`;return r({path:i,method:"GET",...s})}function qt({itemId:e=o(),shapeId:t=o(),componentId:n=o(),key:a=o(),headers:s={},...i}){const u={accept:"application/octet-stream",...s},p=`/API/item/${e}/shape/${t}/component/${n}/metadata/bulky/${a}/as-file`;return r({path:p,method:"GET",headers:u,transitional:{silentJSONParsing:!1,forcedJSONParsing:!1},...i})}function Bt({itemId:e=o(),key:t=o(),value:n=o(),headers:a={},...s}){const i=`/API/item/${e}/metadata/bulky/${t}`,u={contentType:"text/plain",...a};return r({path:i,method:"PUT",body:n,headers:u,...s})}function Nt({itemId:e=o(),shapeId:t=o(),key:n=o(),value:a=o(),headers:s={},...i}){const u=`/API/item/${e}/shape/${t}/metadata/bulky/${n}`,p={contentType:"text/plain",...s};return r({path:u,method:"PUT",body:a,headers:p,...i})}function Jt({itemId:e=o(),shapeId:t=o(),componentId:n=o(),key:a=o(),value:s=o(),headers:i={},...u}){const p=`/API/item/${e}/shape/${t}/component/${n}/metadata/bulky/${a}`,m={contentType:"text/plain",...i};return r({path:p,method:"PUT",body:s,headers:m,...u})}function Vt({itemId:e=o(),key:t=o(),...n}){const a=`/API/item/${e}/metadata/bulky/${t}`;return r({path:a,method:"DELETE",...n})}function Ht({itemId:e=o(),shapeId:t=o(),key:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/metadata/bulky/${n}`;return r({path:s,method:"DELETE",...a})}function Kt({itemId:e=o(),shapeId:t=o(),componentId:n=o(),key:a=o(),...s}){const i=`/API/item/${e}/shape/${t}/component/${n}/metadata/bulky/${a}`;return r({path:i,method:"DELETE",...s})}const Qt={listItemBulkyMetadata:vt,listShapeBulkyMetadata:kt,listComponentBulkyMetadata:Ut,updateAllItemBulkyMetadata:Lt,updateAllShapeBulkyMetadata:Ct,updateAllComponentBulkyMetadata:Mt,removeAllItemBulkyMetadata:Dt,removeAllShapeBulkyMetadata:xt,removeAllComponentBulkyMetadata:Ot,getItemBulkyMetadata:jt,getItemBulkyMetadataAsFile:Ft,getShapeBulkyMetadata:Rt,getShapeBulkyMetadataAsFile:wt,getComponentBulkyMetadata:zt,getComponentBulkyMetadataAsFile:qt,updateItemBulkyMetadata:Bt,updateShapeBulkyMetadata:Nt,updateComponentBulkyMetadata:Jt,removeItemBulkyMetadata:Vt,removeShapeBulkyMetadata:Ht,removeComponentBulkyMetadata:Kt};function _t(e,t){return e===0||t===0?0:Math.floor(e/t*100)}const c=Object.freeze({statuses:{transfering:1,paused:2,complete:3,failed:4,unstarted:5,canceled:6,offline:7},events:{progress:"progress",update:"update",complete:"complete",error:"error",added:"upload-added",removed:"upload-removed",retry:"retry",pausing:"pausing",paused:"paused",resuming:"resuming",offline:"offline",online:"online"},defaults:{targetRate:4e6,chunkSize:1e7,minChunkSize:8388608,maxConcurrentTransfers:1,maxConcurrentFileTransfers:1,autoMaxConcurrentTransfers:!1,autoResume:!0,api:{props:{}},minFileSize:104857600}});class y{constructor(){this.events={}}on(t,n){const a=this.events[t]||[];a.push(n),this.events[t]=a}off(t){this.events[t]&&(this.events[t]=[])}trigger(t,n){const a=this.events[t];!a||a.length<1||a.forEach(s=>{s(n)})}}class Wt{constructor(t={}){Object.assign(this,{blobSlice:null,fileSize:null,start:null,end:null,api:null},t),this.state={retries:0,status:c.statuses.unstarted,startTime:null,completeTime:null,response:null,bytesTransfered:null},this.events=new y}try(){return this.state.status=c.statuses.transfering,this.state.startTime=performance.now(),new Promise((t,n)=>{const a=()=>{this.transfer().then(s=>{this.state.response=s,this.onComplete(),t()}).catch(()=>{this.state.retries>3?(this.state.status=c.statuses.failed,n(new Error(`Chunk ${this.start}-${this.end} failed`))):this.state.status!==c.statuses.paused?(this.state.retries+=1,this.tryTimeout=setTimeout(()=>{a()},1e3)):clearTimeout(this.tryTimeout)})};a(),window.addEventListener(c.events.online,()=>{this.resume()}),window.addEventListener(c.events.offline,()=>{this.pause()})})}transfer(){let t={file:this.blobSlice,onUploadProgress:n=>{(this.state.status!==c.statuses.complete||this.state.status!==c.statuses.offline)&&(this.state.bytesTransfered=n.loaded,this.events.trigger(c.events.progress,this.state))}};return t={...t,...this.api.props||{}},this.end-this.start!==this.fileSize&&(t.headers={index:this.start,size:this.fileSize,...t.headers||{}}),this.transferPromise=this.api.method(t),this.state.status=c.statuses.transfering,this.transferPromise}onComplete(){this.state.status=c.statuses.complete,this.state.bytesTransfered=this.end-this.start,this.state.completeTime=performance.now(),this.events.trigger(c.events.complete)}pause(){this.state.status!==c.statuses.complete&&(this.state.status=c.statuses.paused)}resume(){this.state.status!==c.statuses.complete&&(this.state.status=c.statuses.transfering)}cancel(){this.state.status!==c.statuses.complete&&(this.state.status=c.statuses.canceled)}get transferRate(){if(this.state.bytesTransfered){const t=(this.state.completeTime-this.state.startTime)/1e3;return this.state.bytesTransfered/t}return 0}}class I{constructor(t,n){if(this.events=new y,!n.api.method)throw new Error("No api method specified");this.defaultOptions={...c.defaults,targetRate:4e6,chunkSize:c.defaults.minChunkSize,autoMaxConcurrentTransfers:!1,api:{props:{...c.defaults.api.props,queryParams:{transferId:k()},...n.api.props}}},this.options={...this.defaultOptions,...n},this.state={blob:null,chunks:[],transferPromises:[],targetRate:this.options.targetRate,rate:0,autoMaxConcurrentTransfers:this.options.autoMaxConcurrentTransfers,maxConcurrentTransfers:this.options.maxConcurrentTransfers,mime:"",status:c.statuses.unstarted,transferId:n.api.props.queryParams.transferId,lastStats:{}},typeof t=="object"?(this.state.blob=t,this.state.mime=t.type,this.addChunksFromBlob(t)):console.error(new Error(`Expected a File or a Blob object, but got ${typeof t}`))}upload(){const{status:t}=this.state;if(t!==c.statuses.complete)if(t===c.statuses.unstarted||t===c.statuses.transfering){const n=this.state.chunks.length;let a=0;const s=()=>{for(;this.state.transferPromises.length<this.state.maxConcurrentTransfers&&a<n;){const i=this.state.chunks[a];if(a+=1,i.state.status!==c.statuses.complete&&i.state.status!==c.statuses.transfering){this.state.status=c.statuses.transfering;const u=i.try();this.state.transferPromises.push(u),u.then(()=>{const p=this.state.transferPromises.indexOf(u);p!==-1&&this.state.transferPromises.splice(p,1),this.state.status!==c.statuses.canceled&&s()}).catch(p=>{const m=this.state.transferPromises.indexOf(u);m!==-1&&this.state.transferPromises.splice(m,1),console.log("Failed on this upload(), check connectivity and try to resume",p),this.state.status!==c.statuses.offline?(this.state.status=c.statuses.failed,this.events.trigger(c.events.failed,{error:p,transfer:this})):setTimeout(()=>this.retry(),5e3)})}}};s()}else this.retry()}getByteRangesForChunks(t,n=this.options.chunkSize){const a=[],{minChunkSize:s}=this.options;let u=n>=s?n:s,p=Math.floor(t.size/u);if(t.size-(t.size-t.size/p)>=s||(p-=1,u=Math.floor(t.size/p)),p<2||t.size<this.options.minFileSize)a.push({start:0,end:t.size});else for(let m=0;m<=p;m+=1){const d=u*m;let f=u*m+u;t.size-u*m<=s&&(f=t.size);const T={start:d,end:f};if(a.push(T),f===t.size)break}return a}addChunksFromBlob(t){this.getByteRangesForChunks(t).forEach(a=>{const s=new Wt({start:a.start,end:a.end,blobSlice:t.slice(a.start,a.end),fileSize:t.size,api:this.options.api});s.events.on(c.events.progress,()=>{this.onProgress()}),s.events.on(c.events.complete,()=>{this.onProgress()}),this.state.chunks.push(s)})}retry(){this.state.status===c.statuses.failed&&(this.resume(),this.events.trigger(c.events.retry))}resume(){this.state.status=c.statuses.transfering,this.events.trigger(c.events.resuming),this.state.chunks.length>0&&this.state.chunks.forEach(t=>{t.resume()})}pause(){this.state.status=c.statuses.paused,this.state.chunks.length>0&&this.state.chunks.forEach(n=>{n.pause()});const t=Promise.all(this.state.transferPromises);return this.events.trigger(c.events.pausing),t.then(()=>{this.events.trigger(c.events.paused)}),Promise.all(this.state.transferPromises)}cancel(){this.state.status=c.statuses.canceled,this.state.chunks.length>0&&this.state.chunks.forEach(n=>{n.cancel()});const t=Promise.all(this.state.transferPromises);return t.then(()=>{this.events.trigger(c.events.removed,this)}),t}autoAdjustMaxConcurrentTransfers(t){if(this.state.autoMaxConcurrentTransfers&&this.state.status!==c.statuses.complete){const n=t.avgTransferRate/this.state.targetRate;if(n>1.2)this.state.maxConcurrentTransfers+=1;else if(n<.3)this.state.maxConcurrentTransfers=1;else{const a=this.options.maxConcurrentTransfers-1;this.state.maxConcurrentTransfers=Math.max(this.options.maxConcurrentTransfers,Math.min(a,c.defaults.maxConcurrentTransfers))}}}onProgress(){try{const t=this.getStats();t!==this.state.lastStats&&(this.state.lastStats=t,v(()=>{this.autoAdjustMaxConcurrentTransfers(t)},1e3)(),this.state.status!==c.statuses.complete&&(t.totalChunks===t.completedChunks?this.onComplete():(this.events.trigger(c.events.progress,t),this.options.onProgress&&this.options.onProgress(t))))}catch(t){console.error(t)}}onComplete(){const t=this.getStats();this.state.lastStats=t,this.state.status=c.statuses.complete,this.events.trigger(c.events.complete),this.options.onComplete&&this.options.onComplete(this.finalResponse)}getStats(){const t=this.state.chunks.length,n=this.state.chunks.filter(d=>d.state.status===c.statuses.complete),a=this.state.chunks.filter(d=>d.state.status===c.statuses.transfering),s=n.length;let i=0,u=0;n.forEach(d=>{i+=d.transferRate,u+=d.blobSlice.size}),a.forEach(d=>{u+=d.state.bytesTransfered});const p=i/s,m={totalChunks:t,completedChunks:s,totalBytes:this.state.blob.size,transferedBytes:u,avgTransferRate:p,concurrentTransfers:this.state.maxConcurrentTransfers};return this.state.rate=m.avgTransferRate,m}set concurrentTransfers(t){this.state.autoMaxConcurrentTransfers=!1,this.state.maxConcurrentTransfers=t}set rate(t){this.state.targetRate=t}get rate(){return this.state.rate}get finalResponse(){const t=this.state.chunks.length-1,n=!1;for(let a=t;a>=0;a-=1){const s=this.state.chunks[a];if(typeof s.state.response.data=="object")return s.state.response}return n}get transferId(){return this.state.transferId}}class L{constructor(t){this.initialState=Object.freeze({status:c.statuses.unstarted,transfers:{},bytesDone:0,bytesTotal:0,lastStats:{bytesDone:0,bytesTotal:0}}),this.state={...this.initialState},this.options={maxConcurrentFileTransfers:c.defaults.maxConcurrentFileTransfers,autoResume:c.defaults.autoResume,...t},this.events=new y,this.bindNetworkEvents()}bindNetworkEvents(){typeof window>"u"||(window.addEventListener(c.events.online,()=>{this.events.trigger(c.events.online,this.state),this.state.status=c.statuses.transfering,this.options.autoResume&&setTimeout(()=>{this.retry()},1500)}),window.addEventListener(c.events.offline,()=>{this.events.trigger(c.events.offline,this.state),this.state.status=c.statuses.offline}))}addChunkedUpload(t){t.transferId!==null&&(this.state.transfers[t.transferId]=t,t.events.on(c.events.progress,()=>{this.onProgress()}),t.events.on(c.events.complete,()=>{this.upload(),this.onProgress()}),t.events.on(c.events.failed,({error:n,transfer:a})=>{this.onFail(n,a)}),t.events.on(c.events.retry,()=>{this.events.trigger(c.events.retry,this.state)}),t.events.on(c.events.paused,()=>{this.paused&&this.events.trigger(c.events.paused)}),this.updateStats(),this.events.trigger(c.events.added,this.state),this.events.trigger(c.events.update,this.state))}removeChunkedUpload(t,n=!1){const a=s=>s?s.state.status===c.statuses.complete&&!n?(console.error("Can't cancel complete transfers, pass true as a second argument in .removeChunkedUpload() to force removal."),!1):(Object.keys(this.state.transfers).forEach(i=>{s===this.state.transfers[i]&&delete this.state.transfers[i]}),this.events.trigger(c.events.removed),s.cancel(),!0):(console.error("Could not find a matching transfer to cancel."),!1);switch(t.constructor.name){case I.name:a(t);break;case"File":a(this.exists(t));break}}onProgress(){this.updateStats(),this.hasCompleted?this.onComplete():this.state.bytesDone!==this.state.lastStats.bytesDone&&(this.state.status=c.statuses.transfering,this.events.trigger(c.events.progress,this.state))}onComplete(){this.state.status=c.statuses.complete,this.events.trigger(c.events.complete,this.state)}exists(t){let n=!1;for(let a=0;a<this.transfers.length;a+=1){const s=this.transfers[a];if(s.state.blob.name===t.name&&s.state.blob.lastModified===t.lastModified&&s.state.blob.size&&t.size)return n=s,n}return n}isTransferAvailable(t){return t.state.status!==c.statuses.complete&&t.state.status!==c.statuses.transfering||t.state.status===c.statuses.unstarted}pause(){let t=Promise.resolve(!0);if(!this.paused){this.events.trigger(c.events.pausing,this.state);const n=[];this.transfers.forEach(a=>{n.push(a.pause())}),t=Promise.all(n),t.then(()=>{this.events.trigger(c.events.paused,this.state)})}return t}resume(){this.events.trigger(c.events.update,this.state),this.transfers.forEach(t=>{this.isTransferAvailable(t)&&t.state.status!==c.statuses.unstarted&&t.resume()})}retry(){this.status===c.statuses.failed&&(this.resume(),this.events.trigger(c.events.retry,this.state))}upload(){let t=0;this.transfers.forEach(n=>{this.isTransferAvailable(n)?t<this.options.maxConcurrentFileTransfers&&(this.events.trigger(c.events.update,this.state),n.upload(),t+=1):n.state.status!==c.statuses.complete&&(t+=1)}),t>0&&(this.status=c.statuses.transfering),t<this.options.maxConcurrentFileTransfers&&this.transfers.length<t&&this.upload()}onFail(t,n){this.status=c.statuses.failed,this.events.trigger(c.events.error,{error:t,transfer:n,file:n.state.blob})}reset(){this.transfers.forEach(t=>{t.constructor.name===I.name&&this.removeChunkedUpload(t,!0)}),this.state={...this.initialState},this.events.trigger(c.statuses.update,this.state),this.events.trigger(c.statuses.complete,this.state)}destroy(){this.reset()}get hasCompleted(){let t=!0;return this.transfers.forEach(n=>{n.state.status!==c.statuses.complete&&(t=!1)}),t}get transfers(){return Object.values(this.state.transfers)||[]}get status(){return this.state.status}set status(t){this.events.trigger(c.statuses.update,this.state),this.state.status=t}get bytesTotal(){let t=0;return this.transfers.forEach(n=>{t+=n.state.blob.size}),t}get bytesDone(){let t=0;return this.transfers.forEach(n=>{t+=n.getStats().transferedBytes}),t}updateStats(){this.state.lastStats.bytesDone=this.state.bytesDone,this.state.lastStats.bytesTotal=this.state.bytesTotal,this.state.bytesTotal=this.bytesTotal,this.state.bytesDone=this.bytesDone}get percentDone(){return _t(this.state.bytesDone,this.state.bytesTotal)}get fileList(){const t=[];return this.transfers.forEach(n=>{const a=n.getStats(),{totalChunks:s,completedChunks:i}=a,u={name:n.state.blob.name,bytesDone:a.transferedBytes,bytesTotal:n.state.blob.size,totalChunks:s,completedChunks:i,transfer:n};t.push(u)}),t}get isUploading(){return this.state.status===c.statuses.transfering}get paused(){let t=!0;return this.transfers.forEach(n=>{n.state.status!==c.statuses.paused&&(t=!1)}),t}}L.constants=c,I.constants=c;function Xt({entity:e=o(),entityId:t=o(),metadataDocument:n,...a}){const s=`/API/${e}/${t}/metadata`;return r({path:s,method:"PUT",body:n,...a})}function Yt({entity:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/metadata/move`;return r({path:a,method:"PUT",...n})}function Zt({entity:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/metadata/changes`;return r({path:a,method:"GET",...n})}function te({entity:e=o(),entityId:t=o(),changesetId:n=o(),...a}){const s=`/API/${e}/${t}/metadata/changes/${n}`;return r({path:s,method:"GET",...a})}function ee({entity:e=o(),entityId:t=o(),changesetId:n=o(),...a}){const s=`/API/${e}/${t}/metadata/changes/${n}/compareTo/previous`;return r({path:s,method:"GET",...a})}function ne({entity:e=o(),entityId:t=o(),changesetId:n=o(),fromChangesetId:a=o(),...s}){const i=`/API/${e}/${t}/metadata/changes/${n}/compareTo/${a}`;return r({path:i,method:"GET",...s})}function oe({entity:e=o(),entityId:t=o(),changesetId:n=o(),metadataDocument:a=o(),...s}){const i=`/API/${e}/${t}/metadata/changes/${n}/`;return r({path:i,method:"PUT",body:a,...s})}function ae({entity:e=o(),entityId:t=o(),metadataChangeSetDocument:n=o(),...a}){const s=`/API/${e}/${t}/metadata/changes`;return r({path:s,method:"PUT",body:n,...a})}function re({entity:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/metadata/changes/trim`;return r({path:a,method:"PUT",...n})}function se({entity:e=o(),entityId:t=o(),changesetId:n=o(),...a}){const s=`/API/${e}/${t}/metadata/changes/${n}/trim`;return r({path:s,method:"PUT",...a})}function ie({entity:e=o(),entityId:t=o(),changesetId:n=o(),...a}){const s=`/API/${e}/${t}/metadata/changes/${n}`;return r({path:s,method:"DELETE",...a})}function ce({entity:e=o(),entityId:t=o(),uuid:n=o(),metadataEntryDocument:a=o(),...s}){const i=`/API/${e}/${t}/metadata/entry/${n}`;return r({path:i,method:"PUT",body:a,...s})}function ue({entity:e=o(),entityId:t=o(),metadataEntryListDocument:n=o(),...a}){const s=`/API/${e}/${t}/metadata/entry/`;return r({path:s,method:"PUT",body:n,...a})}function he({entity:e=o(),entityId:t=o(),headers:n={},...a}){const s=`/API/${e}/${t}/metadata/graph`,i={accept:"image/png",...n};return r({path:s,method:"GET",headers:i,...a})}function pe({entity:e=o(),entityId:t=o(),headers:n={},...a}){const s=`/API/${e}/${t}/metadata/graph/dot`,i={accept:"text/plain",...n};return r({path:s,method:"GET",headers:i,...a})}function de({entity:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/metadata`;return r({path:a,method:"GET",...n,...n})}function me({metadataUuid:e=o(),...t}){const n=`/API/metadata/${e}/`;return r({path:n,method:"GET",...t})}function le({metadataUuid:e=o(),...t}){const n=`/API/metadata/${e}/`;return r({path:n,method:"DELETE",...t})}function fe({...e}={}){return r({path:"/API/metadata/",method:"GET",...e})}function Pe({metadataDocument:e,...t}={}){return r({path:"/API/metadata/",method:"PUT",body:e,...t})}function Te({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/metadata`;return r({path:a,method:"GET",...n})}function $e({entityType:e=o(),entityId:t=o(),subpath:n,...a}){const s=`/API/${e}/${t}/metadata/${n}`;return r({path:s,method:"GET",...a})}function ge({simpleMetadataDocument:e,entityType:t=o(),entityId:n=o(),...a}={}){const s=`/API/${t}/${n}/metadata`;return r({path:s,method:"PUT",body:e,...a})}function Ie({simpleMetadataDocument:e,entityType:t=o(),entityId:n=o(),subpath:a,...s}={}){const i=`/API/${t}/${n}/metadata/${a}`;return r({path:i,method:"PUT",body:e,...s})}function Ae({entityType:e=o(),entityId:t=o(),...n}={}){const a=`/API/${e}/${t}/metadata`;return r({path:a,method:"DELETE",...n})}function Ee({entityType:e=o(),entityId:t=o(),key:n=o(),headers:a={},...s}){const i=`/API/${e}/${t}/metadata/${n}`,u={accept:"text/plain",...a};return r({path:i,method:"GET",headers:u,...s})}function ye({entityType:e=o(),entityId:t=o(),key:n=o(),headers:a={},...s}){const i=`/API/${e}/${t}/metadata/${n}`,u={accept:"text/plain",...a};return r({path:i,method:"DELETE",headers:u,...s})}function be({entityType:e=o(),entityId:t=o(),key:n=o(),value:a,headers:s={},...i}){const u=`/API/${e}/${t}/metadata/${n}`,p={contentType:"text/plain",...s};return r({path:u,method:"PUT",body:a,headers:p,...i})}const g={updateEntityMetadata:Xt,moveEntityMetadata:Yt,listEntityMetadataChange:Zt,getEntityMetadataChange:te,previousEntityMetadataChange:ee,compareEntityMetadataChange:ne,updateEntityMetadataChange:oe,updateAllEntityMetadataChange:ae,trimAllEntityMetadataChange:re,trimEntityMetadataChange:se,removeEntityMetadataChange:ie,updateEntityMetadataEntry:ce,updateAllEntityMetadataEntry:ue,getEntityMetadataGraph:he,getEntityMetadataGraphDot:pe,getEntityMetadata:de,getMetadata:me,removeMetadata:le,getMetadataGlobal:fe,updateMetadataGlobal:Pe,getSimpleMetadata:Te,getSimpleMetadataSubpath:$e,updateSimpleMetadata:ge,updateSimpleMetadataSubpath:Ie,removeSimpleMetadata:Ae,getSimpleMetadataKey:Ee,removeSimpleMetadataKey:ye,updateSimpleMetadataKey:be};function Se({entity:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/metadata-lock`;return r({path:a,method:"GET",...n})}function Ge({entity:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/metadata-lock`;return r({path:a,method:"POST",...n})}function ve({entity:e=o(),entityId:t=o(),lockId:n=o(),...a}){const s=`/API/${e}/${t}/metadata-lock/${n}`;return r({path:s,method:"GET",...a})}function ke({entity:e=o(),entityId:t=o(),lockId:n=o(),...a}){const s=`/API/${e}/${t}/metadata-lock/${n}`;return r({path:s,method:"PUT",...a})}function Ue({entity:e=o(),entityId:t=o(),lockId:n=o(),...a}){const s=`/API/${e}/${t}/metadata-lock/${n}`;return r({path:s,method:"DELETE",...a})}const b={listEntityMetadataLock:Se,createEntityMetadataLock:Ge,getEntityMetadataLock:ve,updateEntityMetadataLock:ke,removeEntityMetadataLock:Ue},{listEntityMetadataLock:Le,createEntityMetadataLock:Ce,getEntityMetadataLock:Me,updateEntityMetadataLock:De,removeEntityMetadataLock:xe}=b;function Oe({...e}={}){return r({path:"/API/collection/",method:"GET",...e})}function je({collectionId:e=o(),...t}){const n=`/API/collection/${e}/`;return r({path:n,method:"GET",...t})}function Fe({collectionId:e=o(),...t}){const n=`/API/collection/${e}/metadata`;return r({path:n,method:"GET",...t})}function Re({collectionId:e,metadataDocument:t,...n}){return g.updateEntityMetadata({entity:"collection",entityId:e,metadataDocument:t,...n})}function we({collectionId:e=o(),...t}){const n=`/API/collection/${e}/ancestor`;return r({path:n,method:"GET",...t})}function ze({...e}={}){return r({path:"/API/collection/history",method:"GET",...e})}function qe({collectionId:e=o(),...t}){const n=`/API/collection/${e}/item`;return r({path:n,method:"GET",...t})}function Be({itemSearchDocument:e,...t}){return r({path:"/API/collection/",method:"PUT",body:e,...t})}function Ne({metadataGroupSearchDocument:e,...t}){return r({path:"/API/collection/metadata-group",method:"PUT",body:e,...t})}function Je({collectionId:e=o(),searchDocument:t,...n}){const a=`/API/collection/${e}/item`;return r({path:a,method:"PUT",body:t,...n})}function Ve({collectionDocument:e,queryParams:t,...n}){return r({path:"/API/collection",method:"POST",body:e,queryParams:t,...n})}function He({collectionId:e=o(),...t}){const n=`/API/collection/${e}/`;return r({path:n,method:"DELETE",...t})}function Ke({queryParams:e=o(),...t}){return r({path:"/API/collection",method:"DELETE",queryParams:e,...t})}function Qe({collectionId:e=o(),...t}){const n=`/API/collection/${e}/rename`;return r({path:n,method:"PUT",...t})}function _e({collectionId:e=o(),entityId:t=o(),...n}){const a=`/API/collection/${e}/${t}`;return r({path:a,method:"PUT",...n})}function We({collectionId:e=o(),entityId:t=o(),...n}){const a=`/API/collection/${e}/${t}`;return r({path:a,method:"DELETE",...n})}function Xe({collectionId:e=o(),collectionDocument:t,...n}){const a=`/API/collection/${e}/`;return r({path:a,method:"PUT",body:t,...n})}function Ye({collectionId:e=o(),collectionReorderDocument:t,...n}){const a=`/API/collection/${e}/order`;return r({path:a,method:"POST",body:t,...n})}function Ze({collectionId:e=o(),...t}){const n=`/API/collection/${e}/map-to-folder`;return r({path:n,method:"PUT",...t})}function tn({collectionId:e=o(),...t}){const n=`/API/collection/${e}/map-to-folder`;return r({path:n,method:"DELETE",...t})}function en({collectionId:e=o(),queryParams:t=o(),...n}){const a=`/API/collection/${e}/folder-name`;return r({path:a,method:"PUT",queryParams:t,...n})}function nn({collectionId:e=o(),...t}){return Le({entity:"collection",entityId:e,...t})}function on({collectionId:e=o(),...t}){return Ce({entity:"collection",entityId:e,...t})}function an({collectionId:e=o(),...t}){return Me({entity:"collection",entityId:e,...t})}function rn({collectionId:e=o(),...t}){return De({entity:"collection",entityId:e,...t})}function sn({collectionId:e=o(),...t}){return xe({entity:"collection",entityId:e,...t})}function cn({collectionId:e=o(),queryParams:t=o(),...n}){const a=`/API/collection/${e}/export`;return r({path:a,method:"POST",queryParams:t,...n})}function un({collectionId:e=o(),queryParams:t=o(),...n}){const a=`/API/collection/${e}/sequence-document`;return r({path:a,method:"GET",queryParams:t,...n})}const hn={listCollection:Oe,getCollection:je,getCollectionMetadata:Fe,updateCollectionMetadata:Re,getCollectionAncestor:we,listCollectionHistory:ze,getCollectionItem:qe,searchCollection:Be,searchCollectionMetadataGroup:Ne,searchCollectionItem:Je,createCollection:Ve,removeCollection:He,removeCollectionList:Ke,renameCollection:Qe,addCollectionEntity:_e,removeCollectionEntity:We,updateCollection:Xe,orderCollection:Ye,markFolderCollection:Ze,unMarkFolderCollection:tn,updateFolderCollection:en,listCollectionMetadataLock:nn,createCollectionMetadataLock:on,getCollectionMetadataLock:an,updateCollectionMetadataLock:rn,removeCollectionMetadataLock:sn,exportCollection:cn,collectionSequence:un};function pn({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/component`;return r({path:a,method:"GET",...n})}function dn({itemId:e=o(),shapeId:t=o(),componentId:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/component/${n}`;return r({path:s,method:"GET",...a})}function mn({itemId:e=o(),shapeId:t=o(),componentId:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/component/${n}`;return r({path:s,method:"DELETE",...a})}function ln({itemId:e=o(),shapeId:t=o(),queryParams:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/component`;return r({path:s,method:"POST",queryParams:n,...a})}function fn({itemId:e=o(),shapeId:t=o(),queryParams:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/component/placeholder`;return r({path:s,method:"POST",queryParams:n,...a})}function Pn({itemId:e=o(),shapeId:t=o(),componentId:n=o(),targetItemId:a=o(),targetShapeId:s=o(),targetComponentId:i=o(),...u}){const p=`/API/item/${e}/shape/${t}/component/${n}/move/item/${a}/shape/${s}/component/${i}`;return r({path:p,method:"POST",...u})}function Tn({itemId:e=o(),shapeId:t=o(),componentId:n=o(),targetItemId:a=o(),targetShapeId:s=o(),...i}){const u=`/API/item/${e}/shape/${t}/component/${n}/move/item/${a}/shape/${s}`;return r({path:u,method:"POST",...i})}function $n({itemId:e=o(),shapeId:t=o(),componentId:n=o(),targetItemId:a=o(),targetShapeId:s=o(),targetComponentId:i=o(),...u}){const p=`/API/item/${e}/shape/${t}/component/${n}/copy/item/${a}/shape/${s}/component/${i}`;return r({path:p,method:"POST",...u})}function gn({itemId:e=o(),shapeId:t=o(),componentId:n=o(),targetItemId:a=o(),targetShapeId:s=o(),...i}){const u=`/API/item/${e}/shape/${t}/component/${n}/copy/item/${a}/shape/${s}`;return r({path:u,method:"POST",...i})}function In({itemId:e=o(),shapeId:t=o(),componentId:n=o(),fileId:a=o(),...s}){const i=`/API/item/${e}/shape/${t}/component/${n}/file/${a}`;return r({path:i,method:"PUT",...s})}function An({itemId:e=o(),shapeId:t=o(),componentId:n=o(),fileId:a=o(),...s}){const i=`/API/item/${e}/shape/${t}/component/${n}/file/${a}`;return r({path:i,method:"PUT",...s})}function En({itemId:e=o(),shapeId:t=o(),componentId:n=o(),analyzeJobDocument:a,...s}){const i=`/API/item/${e}/shape/${t}/component/${n}/analyze`;return r({path:i,method:"POST",body:a,...s})}const yn={listComponent:pn,getComponent:dn,removeComponent:mn,createComponent:ln,createComponentPlaceholder:fn,moveComponent:Pn,moveComponentToShape:Tn,copyComponent:$n,copyComponentToShape:gn,addComponentFile:In,removeComponentFile:An,createComponentAnalyze:En};function bn({...e}={}){return r({path:"/API/configuration/",method:"GET",...e})}function Sn({...e}={}){return r({path:"/API/configuration/properties",method:"GET",...e})}function Gn({configurationPropertyDocument:e,...t}){return r({path:"/API/configuration/properties/",method:"PUT",body:e,...t})}function vn({configurationPropertyListDocument:e=o(),...t}){return r({path:"/API/configuration/properties/",method:"POST",body:e,...t})}function kn({key:e=o(),...t}){const n=`/API/configuration/properties/${e}`;return r({path:n,method:"DELETE",...t})}function Un({...e}={}){return r({path:"/API/configuration/indexing",method:"GET",...e})}function Ln({indexingConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/indexing",method:"PUT",body:e,...t})}function Cn({...e}={}){return r({path:"/API/configuration/ftp-pool",method:"GET",...e})}function Mn({ftpPoolConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/ftp-pool",method:"PUT",body:e,...t})}function Dn({...e}){return r({path:"/API/configuration/ftp-pool",method:"DELETE",...e})}function xn({...e}={}){return r({path:"/API/configuration/job-pool",method:"GET",...e})}function On({jobPoolListDocument:e=o(),...t}){return r({path:"/API/configuration/job-pool",method:"PUT",body:e,...t})}function jn({...e}){return r({path:"/API/configuration/job-pool",method:"DELETE",...e})}function Fn({jobPoolPriority:e=o(),...t}){const n=`/API/configuration/job-pool/${e}`;return r({path:n,method:"DELETE",...t})}function Rn({...e}={}){return r({path:"/API/configuration/metrics",method:"GET",...e})}function wn({metricsConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/metrics",method:"PUT",body:e,...t})}function zn({...e}={}){return r({path:"/API/configuration/path-alias",method:"GET",...e})}function qn({pathAliasConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/path-alias",method:"PUT",body:e,...t})}function Bn({...e}={}){return r({path:"/API/configuration/logreport",method:"GET",...e})}function Nn({logReportConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/logreport",method:"PUT",body:e,...t})}function Jn({...e}={}){return r({path:"/API/configuration/purging",method:"GET",...e})}function Vn({databasePurgingConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/purging",method:"PUT",body:e,...t})}function Hn({...e}){return r({path:"/API/configuration/purging",method:"DELETE",...e})}function Kn({...e}={}){return r({path:"/API/configuration/cors",method:"GET",...e})}function Qn({corsConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/cors",method:"PUT",body:e,...t})}function _n({...e}={}){return r({path:"/API/configuration/auth",method:"GET",...e})}function Wn({oAuth2ConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/auth",method:"PUT",body:e,...t})}function Xn({...e}={}){return r({path:"/API/configuration/auth",method:"DELETE",...e})}function Yn({...e}={}){return r({path:"/API/configuration/job-priority",method:"GET",...e})}function Zn({jobPriorityConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/job-priority",method:"PUT",body:e,...t})}function to({...e}={}){return r({path:"/API/configuration/job-priority",method:"DELETE",...e})}function eo({...e}={}){return r({path:"/API/configuration/bulkymetadata",method:"GET",...e})}function no({bulkyMetadataConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/bulkymetadata",method:"PUT",body:e,...t})}const oo={getConfiguration:bn,getPropertiesConfiguration:Sn,updatePropertiesConfiguration:Gn,updateAllPropertiesConfiguration:vn,removePropertiesConfiguration:kn,getIndexingConfiguration:Un,updateIndexingConfiguration:Ln,getFtpPoolConfiguration:Cn,updateFtpPoolConfiguration:Mn,removeFtpPoolConfiguration:Dn,getJobPoolConfiguration:xn,updateJobPoolConfiguration:On,removeAllJobPoolConfiguration:jn,removeJobPoolConfiguration:Fn,getMetricsConfiguration:Rn,updateMetricsConfiguration:wn,getPathAliasConfiguration:zn,updatePathAliasConfiguration:qn,getLogReportConfiguration:Bn,updateLogReportConfiguration:Nn,getDatabasePurgingConfiguration:Jn,updateDatabasePurgingConfiguration:Vn,removeDatabasePurgingConfiguration:Hn,getCorsConfiguration:Kn,updateCorsConfiguration:Qn,getAuthConfiguration:_n,updateAuthConfiguration:Wn,removeAuthConfiguration:Xn,getJobPriorityConfiguration:Yn,updateJobPriorityConfiguration:Zn,removeJobPriorityConfiguration:to,getBulkyMetadataConfiguration:eo,updateBulkyMetadataConfiguration:no};function ao({conformRequestDocument:e=o(),...t}){return r({path:"/API/conform",body:e,method:"POST",...t})}function ro({itemId:e=o(),timelineFormat:t=o(),conformRequestDocument:n=o(),...a}){const s=`/API/item/${e}/timeline/${t}/conform`;return r({path:s,body:n,method:"POST",...a})}const so={createConform:ao,createConformItem:ro};function io({xmlDocument:e=o(),headers:t={},...n}){return r({path:"/APInoauth/debug/echo",method:"PUT",body:e,headers:{contentType:"application/xml",...t},...n})}const co={echo:io};function uo({...e}={}){return r({path:"/API/deletion-lock",method:"GET",...e})}function ho({lockId:e=o(),...t}){const n=`/API/deletion-lock/${e}`;return r({path:n,method:"GET",...t})}function po({lockId:e=o(),deletionLockDocument:t=o(),...n}){const a=`/API/deletion-lock/${e}`;return r({path:a,method:"PUT",body:t,...n})}function mo({lockId:e=o(),...t}){const n=`/API/deletion-lock/${e}`;return r({path:n,method:"DELETE",...t})}function lo({entity:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/deletion-lock/`;return r({path:a,method:"GET",...n})}function fo({entity:e=o(),entityId:t=o(),deletionLockDocument:n=o(),...a}){const s=`/API/${e}/${t}/deletion-lock/`;return r({path:s,method:"POST",body:n,...a})}function Po({entity:e=o(),entityId:t=o(),lockId:n=o(),...a}){const s=`/API/${e}/${t}/deletion-lock/${n}`;return r({path:s,method:"GET",...a})}function To({entity:e=o(),entityId:t=o(),lockId:n=o(),deletionLockDocument:a=o(),...s}){const i=`/API/${e}/${t}/deletion-lock/${n}`;return r({path:i,method:"PUT",body:a,...s})}function $o({entity:e=o(),entityId:t=o(),lockId:n=o(),...a}){const s=`/API/${e}/${t}/deletion-lock/${n}`;return r({path:s,method:"DELETE",...a})}const go={listDeletionLock:uo,getDeletionLock:ho,updateDeletionLock:po,removeDeletionLock:mo,listEntityDeletionLock:lo,createEntityDeletionLock:fo,getEntityDeletionLock:Po,updateEntityDeletionLock:To,removeEntityDeletionLock:$o};function Io({...e}={}){return r({path:"/API/document/",method:"GET",...e})}function Ao({itemSearchDocument:e,...t}={}){return r({path:"/API/document/",method:"PUT",body:e,...t})}function Eo({documentMetadataName:e=o(),...t}){const n=`/API/document/${e}`;return r({path:n,method:"GET",...t})}function yo({documentMetadataName:e=o(),metadataDocument:t,...n}){const a=`/API/document/${e}`;return r({path:a,body:t,method:"PUT",...n})}function bo({documentMetadataName:e=o(),...t}){const n=`/API/document/${e}/changes`;return r({path:n,method:"GET",...t})}function So({documentMetadataName:e=o(),...t}){const n=`/API/document/${e}`;return r({path:n,method:"DELETE",...t})}const Go={listDocumentMetadata:Io,searchDocumentMetadata:Ao,getDocumentMetadata:Eo,updateDocumentMetadata:yo,getDocumentMetadataChanges:bo,removeDocumentMetadata:So};function vo({...e}={}){return r({path:"/API/error",method:"GET",...e})}const ko={listErrorLogs:vo};function Uo({...e}={}){return r({path:"/API/export-location",method:"GET",...e})}function Lo({locationName:e=o(),...t}){return r({path:`/API/export-location/${e}`,method:"GET",...t})}function Co({locationName:e=o(),exportLocationDocument:t,...n}){const a=`/API/export-location/${e}`;return r({path:a,method:"PUT",body:t,...n})}function Mo({locationName:e=o(),...t}){const n=`/API/export-location/${e}`;return r({path:n,method:"DELETE",...t})}function Do({locationName:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/export-location/${e}/script`;return r({path:s,method:"GET",headers:a,...n})}function xo({locationName:e=o(),exportScript:t=o(),headers:n={},...a}){const s={accept:"text/plain",contentType:"text/plain",...n},i=`/API/export-location/${e}/script`;return r({path:i,method:"PUT",body:t,headers:s,...a})}const Oo={listExportLocation:Uo,getExportLocation:Lo,updateExportLocation:Co,removeExportLocation:Mo,getExportLocationScript:Do,updateExportLocationScript:xo};function jo({...e}={}){return r({path:"/API/export-template",method:"GET",...e})}function Fo({templateName:e=o(),...t}){return r({path:`/API/export-template/${e}`,method:"GET",...t})}function Ro({templateName:e=o(),...t}){return r({path:`/API/export-template/${e}`,method:"DELETE",...t})}function wo({templateName:e=o(),exportTemplateDocument:t,...n}){return r({path:`/API/export-template/${e}`,method:"PUT",body:t,...n})}function zo({templateName:e=o(),exportTemplateDocument:t,...n}){return r({path:`/API/export-template/${e}`,method:"PUT",body:t,...n})}function qo({templateName:e=o(),headers:t={},...n}){const a=`/API/export-template/${e}/graph`,s={accept:"image/png",...t};return r({path:a,method:"GET",headers:s,...n})}function Bo({templateName:e=o(),headers:t={},...n}){const a=`/API/export-template/${e}/graph/dot`,s={accept:"text/plain",...t};return r({path:a,method:"GET",headers:s,...n})}function No({...e}){return r({path:"/API/export-template/test",method:"POST",...e})}function Jo({...e}){return r({path:"/API/export-template/test",method:"PUT",...e})}const Vo={listExportTemplete:jo,getExportTemplate:Fo,removeExportTemplate:Ro,createExportTemplate:wo,updateExportTemplate:zo,getExportTemplateGraph:qo,getExportTemplateGraphDot:Bo,createExportTemplateTest:No,createExportTemplateTestRender:Jo};function A(e){return e==="field-group"?"metadata-field/field-group":e}function Ho({...e}={}){return r({path:"/API/external-id",method:"GET",...e})}function Ko({idName:e=o(),...t}){const n=`/API/external-id/${e}`;return r({path:n,method:"GET",...t})}function Qo({idName:e=o(),externalIdentifierNamespaceDocument:t,...n}){const a=`/API/external-id/${e}`;return r({path:a,method:"PUT",body:t,...n})}function _o({idName:e=o(),...t}){const n=`/API/external-id/${e}`;return r({path:n,method:"DELETE",...t})}function Wo({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${A(e)}/${t}/external-id/`;return r({path:a,method:"GET",...n})}function Xo({entityType:e=o(),entityId:t=o(),externalId:n=o(),...a}){const s=`/API/${A(e)}/${t}/external-id/${n}`;return r({path:s,method:"PUT",...a})}function Yo({entityType:e=o(),entityId:t=o(),externalId:n=o(),...a}){const s=`/API/${A(e)}/${t}/external-id/${n}`;return r({path:s,method:"DELETE",...a})}function Zo({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${A(e)}/${t}/external-id`;return r({path:a,method:"DELETE",...n})}const ta={listExternalIdNamespace:Ho,getExternalIdNamespace:Ko,updateExternalIdNamespace:Qo,removeExternalIdNamespace:_o,listExternalId:Wo,createExternalId:Xo,removeExternalId:Yo,removeAllExternalId:Zo},{getSimpleMetadata:ea}=g;function na({...e}={}){return r({path:"/API/metadata-field/field-group/",method:"GET",...e})}function oa({groupName:e=o(),...t}){const n=`/API/metadata-field/field-group/${e}/`;return r({path:n,method:"GET",...t})}function aa({groupName:e=o(),metadataFieldGroupDocument:t,...n}){const a=`/API/metadata-field/field-group/${e}`;return r({path:a,method:"PUT",body:t,...n})}function ra({groupName:e=o(),...t}){const n=`/API/metadata-field/field-group/${e}`;return r({path:n,method:"DELETE",...t})}function sa({groupName:e=o(),fieldName:t=o(),...n}){const a=`/API/metadata-field/field-group/${e}/${t}`;return r({path:a,method:"PUT",...n})}function ia({groupName:e=o(),fieldName:t=o(),...n}){const a=`/API/metadata-field/field-group/${e}/${t}`;return r({path:a,method:"DELETE",...n})}function ca({groupName:e=o(),childGroupName:t=o(),...n}){const a=`/API/metadata-field/field-group/${e}/group/${t}`;return r({path:a,method:"PUT",...n})}function ua({groupName:e=o(),childGroupName:t=o(),...n}){const a=`/API/metadata-field/field-group/${e}/group/${t}`;return r({path:a,method:"DELETE",...n})}function ha({metadataFieldGroupSearchDocument:e,...t}){return r({path:"/API/metadata-field/field-group/",method:"PUT",body:e,...t})}function pa({groupName:e=o(),...t}){return ea({entityType:"metadata-field/field-group",entityId:e,...t})}function da({groupName:e=o(),...t}){const n=`/API/metadata-field/field-group/${e}/access`;return r({path:n,method:"GET",...t})}function ma({groupName:e=o(),metadataFieldAccessControlDocument:t=o(),...n}){const a=`/API/metadata-field/field-group/${e}/access`;return r({path:a,method:"POST",body:t,...n})}function la({groupName:e=o(),accessId:t=o(),...n}){const a=`/API/metadata-field/field-group/${e}/access/${t}`;return r({path:a,method:"DELETE",...n})}function fa({...e}={}){return r({path:"/API/metadata-field/field-group/merged-access",method:"GET",...e})}function Pa({groupName:e=o(),...t}={}){const n=`/API/metadata-field/field-group/${e}/merged-access`;return r({path:n,method:"GET",...t})}const Ta={listFieldGroup:na,getFieldGroup:oa,updateFieldGroup:aa,removeFieldGroup:ra,updateFieldGroupField:sa,removeFieldGroupField:ia,updateFieldGroupChild:ca,removeFieldGroupChild:ua,searchFieldGroup:ha,getSimpleMetadata:pa,listFieldGroupAccess:da,createFieldGroupAccess:ma,removeFieldGroupAccess:la,listFieldGroupMergedAccess:fa,getFieldGroupMergedAccess:Pa};function $a({...e}={}){return r({path:"/API/storage/file/",method:"GET",...e})}function ga({storageId:e=o(),...t}={}){const n=`/API/storage/${e}/file/`;return r({path:n,method:"GET",...t})}function Ia({...e}={}){return r({path:"/API/storage/file/importable/",method:"GET",...e})}function Aa({storageId:e=o(),...t}={}){const n=`/API/storage/${e}/file/importable/`;return r({path:n,method:"GET",...t})}function Ea({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/`;return r({path:n,method:"GET",...t})}function ya({storageId:e=o(),file:t=o(),headers:n={},...a}){const s={contentType:"application/octet-stream",...n},i=`/API/storage/${e}/file/data`;return r({path:i,method:"POST",body:t,headers:s,...a})}function ba({fileId:e=o(),headers:t={},...n}){const a={accept:"application/octet-stream",...t},s=`/API/storage/file/${e}/data`;return r({path:s,method:"GET",headers:a,responseType:"blob",...n})}function Sa({fileId:e=o(),file:t,headers:n={},...a}){const s={contentType:"application/octet-stream",...n},i=`/API/storage/file/${e}/data/`;return r({path:i,method:"POST",body:t,headers:s,...a})}function Ga({fileId:e=o(),metadataDocument:t,...n}){const a=`/API/storage/file/${e}/import/`;return r({path:a,method:"POST",body:t,...n})}function va({fileId:e=o(),metadataDocument:t,...n}){const a=`/API/storage/file/${e}/import/assetmap`;return r({path:a,method:"POST",body:t,...n})}function ka({storageId:e=o(),metadataDocument:t,...n}){const a=`/API/storage/${e}/file/import/assetmap`;return r({path:a,method:"POST",body:t,...n})}function Ua({storageId:e=o(),metadataDocument:t,...n}){const a=`/API/storage/${e}/import/`;return r({path:a,method:"POST",body:t,...n})}function La({fileId:e=o(),targetStorageId:t=o(),...n}){const a=`/API/storage/file/${e}/storage/${t}/`;return r({path:a,method:"POST",...n})}function Ca({fileId:e=o(),...t}){const n=`/API/storage/file/${e}`;return r({path:n,method:"DELETE",...t})}function Ma({storageId:e=o(),fileDocument:t,...n}){const a=`/API/storage/${e}/file/`;return r({path:a,method:"POST",body:t,...n})}function Da({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/entity`;return r({path:n,method:"DELETE",...t})}function xa({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/path/`;return r({path:n,method:"POST",...t})}function Oa({fileId:e=o(),state:t=o(),...n}){const a=`/API/storage/file/${e}/state/${t}`;return r({path:a,method:"PUT",...n})}function ja({fileId:e=o(),hash:t=o(),...n}){const a=`/API/storage/file/${e}/hash/${t}`;return r({path:a,method:"PUT",...n})}function Fa({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/abandon`;return r({path:n,method:"PUT",...t})}function Ra({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/re-index`;return r({path:n,method:"PUT",...t})}function wa({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/uri`;return r({path:n,method:"POST",...t})}function za({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/analyze`;return r({path:n,method:"POST",...t})}function qa({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/analyze/imp`;return r({path:n,method:"POST",...t})}function Ba({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/shape`;return r({path:n,method:"GET",...t})}const C={listFile:$a,listFileStorage:ga,listFileImportable:Ia,listFileStorageImportable:Aa,getFile:Ea,createFileRaw:ya,getFileRaw:ba,updateFileRaw:Sa,createFileImport:Ga,createFileImportAssetMap:va,createFilePathImportAssetMap:ka,createFileImportPath:Ua,createFileMove:La,removeFile:Ca,createFileEntity:Ma,removeFileEntity:Da,createFilePath:xa,updateFileState:Oa,updateFileHash:ja,abandonFile:Fa,reindexFile:Ra,createFileTemporaryCredentials:wa,analyzeFile:za,analyzeFileImp:qa,listFileShapes:Ba};function Na({...e}={}){return r({path:"/API/metadata",method:"GET",...e})}function Ja({metadataDocument:e=o(),...t}){return r({path:"/API/metadata",method:"PUT",body:e,...t})}function Va({uuid:e=o(),...t}){const n=`/API/metadata/${e}`;return r({path:n,method:"GET",...t})}function Ha({uuid:e=o(),...t}={}){const n=`/API/metadata/${e}`;return r({path:n,method:"DELETE",...t})}const Ka={listGlobalMetadata:Na,updateGlobalMetadata:Ja,getGlobalMetadata:Va,removeGlobalMetadata:Ha};function Qa({...e}={}){return r({path:"/API/group/",method:"GET",...e})}function _a({groupName:e=o(),...t}){const n=`/API/group/${e}`;return r({path:n,method:"GET",...t})}function Wa({groupName:e=o(),groupDocument:t,...n}){const a=`/API/group/${e}/`;return r({path:a,method:"PUT",body:t,...n})}function Xa({groupName:e=o(),...t}){const n=`/API/group/${e}`;return r({path:n,method:"DELETE",...t})}function Ya({...e}){return r({path:"/API/group/",method:"DELETE",...e})}function Za({groupSearchDocument:e,...t}){return r({path:"/API/group/",method:"PUT",body:e,...t})}function tr({groupName:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/group/${e}/role`;return r({path:s,method:"GET",headers:a,...n})}function er({groupName:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/group/${e}/description`;return r({path:s,method:"GET",headers:a,...n})}function nr({groupName:e=o(),description:t,headers:n={},...a}){const s={accept:"text/plain",contentType:"text/plain",...n},i=`/API/group/${e}/description`;return r({path:i,method:"PUT",body:t,headers:s,...a})}function or({groupName:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/group/${e}/parents/`;return r({path:s,method:"GET",headers:a,...n})}function ar({groupName:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/group/${e}/children/`;return r({path:s,method:"GET",headers:a,...n})}function rr({groupName:e=o(),childGroupName:t=o(),...n}){const a=`/API/group/${e}/group/${t}`;return r({path:a,method:"PUT",...n})}function sr({groupName:e=o(),childGroupName:t=o(),...n}){const a=`/API/group/${e}/group/${t}`;return r({path:a,method:"DELETE",...n})}function ir({groupName:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/group/${e}/users/`;return r({path:s,method:"GET",headers:a,...n})}function cr({groupName:e=o(),userName:t=o(),...n}){const a=`/API/group/${e}/user/${t}`;return r({path:a,method:"PUT",...n})}function ur({groupName:e=o(),userName:t=o(),...n}){const a=`/API/group/${e}/user/${t}`;return r({path:a,method:"DELETE",...n})}const hr={listGroup:Qa,getGroup:_a,updateGroup:Wa,removeGroup:Xa,removeGroupList:Ya,searchGroup:Za,getGroupRoleStatus:tr,getGroupDescription:er,updateGroupDescription:nr,getGroupParents:or,getGroupChildren:ar,addGroupChildren:rr,removeGroupChildren:sr,getGroupUser:ir,addGroupUser:cr,removeGroupUser:ur},{createFileEntity:pr,createFileTemporaryCredentials:dr,updateFileState:mr,abandonFile:lr}=C;function fr({metadataDocument:e={},...t}={}){return r({path:"/API/import/",method:"POST",body:e,...t})}function Pr({...e}={}){return r({path:"/API/import/storage",method:"GET",...e})}function Tr({file:e=o(),headers:t={},...n}){return r({path:"/API/import/raw/",method:"POST",body:e,headers:{contentType:"application/octet-stream",...t},...n})}function $r({file:e=o(),headers:t={},...n}){return r({path:"/APInoauth/import/raw/",method:"POST",body:e,headers:{contentType:"application/octet-stream",...t},...n})}function gr({metadataDocument:e={},...t}={}){return r({path:"/API/import/raw-passkey/",method:"POST",body:e,...t})}function Ir({itemId:e=o(),component:t=o(),...n}={}){const a=`/API/import/placeholder/${e}/${t}/raw-passkey`;return r({path:a,method:"POST",...n})}function Ar({metadataDocument:e={},...t}={}){return r({path:"/API/import/imp/",method:"POST",body:e,...t})}function Er({metadataDocument:e={},...t}={}){return r({path:"/API/import/placeholder/",method:"POST",body:e,...t})}function yr({itemId:e=o(),component:t=o(),...n}){const a=`/API/import/placeholder/${e}/${t}/`;return r({path:a,method:"POST",...n})}function br({itemId:e=o(),component:t=o(),file:n=o(),headers:a={},...s}){const i=`/API/import/placeholder/${e}/${t}/raw/`;return r({path:i,method:"POST",body:n,headers:{contentType:"application/octet-stream",...a},...s})}function Sr({itemId:e=o(),component:t=o(),file:n=o(),headers:a={},...s}){const i=`/APInoauth/import/placeholder/${e}/${t}/raw/`;return r({path:i,method:"POST",body:n,headers:{contentType:"application/octet-stream",...a},...s})}function Gr({itemId:e=o(),placeholderImportRequestDocument:t,...n}){const a=`/API/import/placeholder/${e}/`;return r({path:a,method:"POST",body:t,...n})}function vr({itemId:e=o(),...t}){const n=`/API/import/placeholder/${e}/raw-passkey/`;return r({path:n,method:"POST",...t})}function kr({itemId:e=o(),component:t=o(),fileId:n=o(),...a}){const s=`/API/import/placeholder/${e}/${t}/adopt/${n}/`;return r({path:s,method:"POST",...a})}function Ur({itemId:e=o(),...t}){const n=`/API/import/sidecar/${e}/`;return r({path:n,method:"POST",...t})}function Lr({itemId:e=o(),file:t,headers:n={},...a}){const s={contentType:"application/octet-stream",...n},i=`/API/import/sidecar/${e}/raw/`;return r({path:i,method:"POST",body:t,headers:s,...a})}function Cr({file:e=o(),storageId:t=o()}){return new Promise((n,a)=>{let s,i;pr({storageId:t,queryParams:{path:e.name}}).then(u=>(i=u.data,s=u.data.id,dr({fileId:s,queryParams:{write:!0,scheme:"https",duration:720}}))).then(u=>{const p=u.data.uri[0];return fetch(p,{method:"PUT",headers:{"Content-Type":"application/octet-stream"},body:e})}).then(()=>{mr({fileId:s,state:"CLOSED"})}).then(()=>{n(i)}).catch(u=>{s&&lr({fileId:s}),a(u.response)})})}const Mr={createImportUri:fr,getImportStorage:Pr,createImportRaw:Tr,createImportRawNoAuth:$r,createImportRawPasskey:gr,createImportComponentRawPasskey:Ir,createImportImp:Ar,createImportPlaceholder:Er,createImportComponent:yr,createImportComponentRaw:br,createImportComponentRawNoAuth:Sr,createImportItem:Gr,createImportItemPasskey:vr,createImportItemAdoptFile:kr,createImportItemSidecar:Ur,createImportItemSidecarRaw:Lr,createImportS3Direct:Cr};function Dr({...e}={}){return r({path:"/API/import/settings",method:"GET",...e})}function xr({importSettingsDocument:e,...t}){return r({path:"/API/import/settings",method:"POST",body:e,...t})}function Or({settingsId:e=o(),...t}){const n=`/API/import/settings/${e}`;return r({path:n,method:"GET",...t})}function jr({settingsId:e=o(),importSettingsDocument:t,...n}){const a=`/API/import/settings/${e}`;return r({path:a,method:"PUT",body:t,...n})}function Fr({settingsId:e=o(),...t}){const n=`/API/import/settings/${e}`;return r({path:n,method:"DELETE",...t})}const Rr={listImportSettings:Dr,createImportSettings:xr,getImportSettings:Or,updateImportSettings:jr,removeImportSettings:Fr},{updateEntityMetadata:wr,getEntityMetadata:zr}=g,{listEntityMetadataLock:qr,createEntityMetadataLock:Br,getEntityMetadataLock:Nr,updateEntityMetadataLock:Jr,removeEntityMetadataLock:Vr}=b;function Hr({...e}={}){return r({path:"/API/item/",method:"GET",...e})}function Kr({itemId:e=o(),...t}){const n=`/API/item/${e}/`;return r({path:n,method:"GET",...t})}function Qr({itemId:e=o(),...t}){const n=`/API/item/${e}/uri`;return r({path:n,method:"GET",...t})}function _r({itemId:e=o(),...t}){const n=`/API/item/${e}/`;return r({path:n,method:"DELETE",...t})}function Wr({...e}={}){return r({path:"/API/item/",method:"DELETE",...e})}function Xr({itemSearchDocument:e={},...t}={}){return r({path:"/API/item/",method:"PUT",body:e,...t})}function Yr({metadataGroupSearchDocument:e,...t}){return r({path:"/API/item/metadata-group",method:"PUT",body:e,...t})}function Zr({itemId:e=o(),metadataDocument:t,...n}){return wr({entity:"item",entityId:e,metadataDocument:t,...n})}function ts({itemId:e=o(),...t}){return zr({entity:"item",entityId:e,...t})}function es({itemId:e=o(),...t}){const n=`/API/item/${e}/thumbnail`;return r({path:n,method:"POST",...t})}function ns({itemId:e=o(),...t}){const n=`/API/item/${e}/transcode`;return r({path:n,method:"POST",...t})}function os({itemId:e=o(),...t}){const n=`/API/item/${e}/export`;return r({path:n,method:"POST",...t})}function as({itemId:e=o(),...t}){const n=`/API/item/${e}/export/imp`;return r({path:n,method:"POST",...t})}function rs({itemId:e=o(),...t}){const n=`/API/item/${e}/relation`;return r({path:n,method:"GET",...t})}function ss({itemId:e=o(),relationItemId:t=o(),...n}){const a=`/API/item/${e}/relation/${t}`;return r({path:a,method:"POST",...n})}function is({itemRelationListDocument:e=o(),...t}){return r({path:"/API/relation/",method:"POST",body:e,...t})}function cs({itemId:e=o(),relationItemId:t=o(),...n}){const a=`/API/item/${e}/relation/${t}`;return r({path:a,method:"DELETE",...n})}function us({itemId:e=o(),...t}){const n=`/API/item/${e}/relation/`;return r({path:n,method:"DELETE",...t})}function hs({itemRelationListDocument:e=o(),...t}){return r({path:"/API/relation",method:"POST",body:e,...t})}function ps({relationId:e=o(),...t}){const n=`/API/relation/${e}/`;return r({path:n,method:"GET",...t})}function ds({relationId:e=o(),...t}){const n=`/API/relation/${e}/`;return r({path:n,method:"PUT",...t})}function ms({relationId:e=o(),...t}){const n=`/API/relation/${e}/`;return r({path:n,method:"DELETE",...t})}function ls({...e}={}){return r({path:"/API/item/history",method:"GET",...e})}function fs({itemId:e=o(),...t}){const n=`/API/item/${e}/re-index`;return r({path:n,method:"PUT",...t})}function Ps({...e}={}){return r({path:"/API/item/list",method:"POST",...e})}function Ts({itemId:e=o(),...t}){const n=`/API/item/${e}/collections`;return r({path:n,method:"GET",...t})}function $s({itemId:e=o(),...t}){const n=`/API/item/${e}/library`;return r({path:n,method:"GET",...t})}function gs({itemId:e=o(),...t}){const n=`/API/item/${e}/lock`;return r({path:n,method:"POST",...t})}function Is({itemId:e=o(),...t}){const n=`/API/item/${e}/lock`;return r({path:n,method:"GET",...t})}function As({itemId:e=o(),...t}){const n=`/API/item/${e}/lock`;return r({path:n,method:"DELETE",...t})}function Es({itemId:e=o(),...t}){const n=`/API/item/${e}/lock`;return r({path:n,method:"PUT",...t})}function ys({itemId:e=o(),...t}){return qr({entity:"item",entityId:e,...t})}function bs({itemId:e=o(),...t}){return Br({entity:"item",entityId:e,...t})}function Ss({itemId:e=o(),lockId:t=o(),...n}){return Nr({entity:"item",entityId:e,lockId:t,...n})}function Gs({itemId:e=o(),lockId:t=o(),...n}){return Jr({entity:"item",entityId:e,lockId:t,...n})}function vs({itemId:e=o(),lockId:t=o(),...n}){return Vr({entity:"item",entityId:e,lockId:t,...n})}function ks({itemId:e=o(),...t}){const n=`/API/item/${e}/loudness`;return r({path:n,method:"GET",...t})}function Us({itemId:e=o(),...t}){const n=`/API/item/${e}/waveform/values`;return r({path:n,method:"GET",...t})}function Ls({itemId:e=o(),headers:t={},...n}){const a=`/API/item/${e}/waveform/image`,s={accept:"image/png",...t};return r({path:a,method:"GET",headers:s,...n})}function Cs({itemId:e=o(),headers:t={},...n}){const a=`/API/item/${e}/waveform/imageURI`,s={accept:"text/plain",...t};return r({path:a,method:"GET",headers:s,...n})}function Ms({itemId:e=o(),analyzeJobDocument:t,...n}){const a=`/API/item/${e}/analyze`;return r({path:a,method:"POST",body:t,...n})}const Ds={listItem:Hr,getItem:Kr,getItemUri:Qr,removeItem:_r,removeItemList:Wr,searchItem:Xr,searchItemMetadataGroup:Yr,updateItemMetadata:Zr,getItemMetadata:ts,createThumbnail:es,createTranscode:ns,createExport:os,createExportImp:as,listItemRelation:rs,createItemRelation:ss,createItemRelationList:is,removeItemRelation:cs,removeAllItemRelation:us,createRelation:hs,getRelation:ps,updateRelation:ds,removeRelation:ms,getItemSearchHistory:ls,reindexItem:fs,createItemList:Ps,listItemCollection:Ts,listItemLibrary:$s,createItemLock:gs,getItemLock:Is,removeItemLock:As,updateItemLock:Es,listItemMetadataLock:ys,createItemMetadataLock:bs,getItemMetadataLock:Ss,updateItemMetadataLock:Gs,removeItemMetadataLock:vs,getItemLoudness:ks,getItemWaveformValue:Us,getItemWaveformImage:Ls,getItemWaveformImageUri:Cs,createItemAnalyze:Ms};function xs({javascriptDocument:e,headers:t={},...n}){const a={contentType:"application/javascript",...t};return r({path:"/API/javascript/test",method:"POST",body:e,headers:a,...n})}const Os={test:xs};function l(e){return e==="file"?"storage/file":["metadata","access"].includes(e)?"item":e}function js({entityType:e=o(),...t}={}){const a=`/API/${l(e)}/notification/`;return r({path:a,method:"GET",...t})}function Fs({entityType:e=o(),entityId:t=o(),...n}={}){const s=`/API/${l(e)}/${t}/notification/`;return r({path:s,method:"GET",...n})}function Rs({notificationId:e=o(),entityType:t=o(),...n}={}){const s=`/API/${l(t)}/notification/${e}`;return r({path:s,method:"GET",...n})}function ws({notificationId:e=o(),entityType:t=o(),notificationDocument:n,...a}={}){const i=`/API/${l(t)}/notification/${e}`;return r({path:i,method:"PUT",body:n,...a})}function zs({entityType:e=o(),notificationDocument:t,...n}={}){const s=`/API/${l(e)}/notification/`;return r({path:s,method:"POST",body:t,...n})}function qs({notificationId:e=o(),entityType:t=o(),...n}={}){const s=`/API/${l(t)}/notification/${e}`;return r({path:s,method:"DELETE",...n})}function Bs({notificationId:e=o(),entityType:t=o(),entityId:n=o(),...a}={}){const i=`/API/${l(t)}/${n}/notification/${e}`;return r({path:i,method:"GET",...a})}function Ns({notificationId:e=o(),entityType:t=o(),entityId:n=o(),notificationDocument:a,...s}={}){const u=`/API/${l(t)}/${n}/notification/${e}`;return r({path:u,method:"PUT",body:a,...s})}function Js({entityType:e=o(),notificationDocument:t,entityId:n,...a}={}){const i=`/API/${l(e)}/${n}/notification/`;return r({path:i,method:"POST",body:t,...a})}function Vs({notificationId:e=o(),entityType:t=o(),entityId:n=o(),...a}={}){const i=`/API/${l(t)}/${n}/notification/${e}`;return r({path:i,method:"DELETE",...a})}const M={listNotification:js,listNotificationEntity:Fs,getNotification:Rs,updateNotification:ws,createNotification:zs,removeNotification:qs,getNotificationEntity:Bs,updateNotificationEntity:Ns,createNotificationEntity:Js,removeNotificationEntity:Vs},{listNotification:Hs}=M;function Ks({...e}={}){return r({path:"/API/job/",method:"GET",...e})}function Qs({jobSearchDocument:e={},...t}={}){return r({path:"/API/job/search/",method:"PUT",body:e,...t})}function _s({jobId:e=o(),...t}){const n=`/API/job/${e}`;return r({path:n,method:"GET",...t})}function Ws({jobId:e=o(),...t}){const n=`/API/job/${e}/problem`;return r({path:n,method:"GET",...t})}function Xs({simpleMetadataDocument:e,...t}={}){return r({path:"/API/job",method:"POST",body:e,...t})}function Ys({jobId:e=o(),...t}){const n=`/API/job/${e}/re-run`;return r({path:n,method:"POST",...t})}function Zs({jobId:e=o(),...t}){const n=`/API/job/${e}`;return r({path:n,method:"PUT",...t})}function ti({jobId:e=o(),...t}){const n=`/API/job/${e}`;return r({path:n,method:"DELETE",...t})}function ei({...e}={}){return r({path:"/API/job/",method:"DELETE",...e})}function ni({...e}={}){return Hs({entityType:"job",...e})}const oi={listJob:Ks,searchJob:Qs,getJob:_s,getJobProblem:Ws,createJob:Xs,duplicateJob:Ys,modifyJob:Zs,abortJob:ti,deleteJob:ei,listJobNotification:ni};function ai({...e}={}){return r({path:"/API/library/",method:"GET",...e})}function ri({itemListDocument:e={},...t}){return r({path:"/API/library",method:"POST",body:e,...t})}function si({libraryId:e=o(),...t}){const n=`/API/library/${e}`;return r({path:n,method:"DELETE",...t})}function ii({...e}={}){return r({path:"/API/library",method:"DELETE",...e})}function ci({libraryId:e=o(),...t}){const n=`/API/library/${e}`;return r({path:n,method:"GET",...t})}function ui({libraryId:e=o(),itemListDocument:t,...n}){const a=`/API/library/${e}`;return r({path:a,method:"PUT",body:t,...n})}function hi({libraryId:e=o(),itemId:t=o(),...n}){const a=`/API/library/${e}/${t}`;return r({path:a,method:"PUT",...n})}function pi({libraryId:e=o(),itemId:t=o(),...n}){const a=`/API/library/${e}/${t}`;return r({path:a,method:"DELETE",...n})}function di({libraryId:e=o(),metadataDocument:t,...n}){const a=`/API/library/${e}/item-metadata`;return r({path:a,method:"PUT",body:t,...n})}function mi({libraryId:e=o(),...t}){const n=`/API/library/${e}/settings`;return r({path:n,method:"GET",...t})}function li({libraryId:e=o(),librarySettingsDocument:t,...n}){const a=`/API/library/${e}/settings`;return r({path:a,method:"PUT",body:t,...n})}function fi({libraryId:e=o(),...t}){const n=`/API/library/${e}/list`;return r({path:n,method:"POST",...t})}function Pi({libraryId:e=o(),queryParams:t=o(),...n}){const a=`/API/library/${e}/export`;return r({path:a,method:"POST",queryParams:t,...n})}const Ti={listLibrary:ai,createLibrary:ri,removeLibrary:si,removeLibraryList:ii,getLibrary:ci,updateLibrary:ui,addLibraryItem:hi,removeLibraryItem:pi,updateLibraryItemMetadata:di,getLibrarySettings:mi,updateLibrarySettings:li,getLibraryBatch:fi,exportLibrary:Pi};function $i({file:e=o(),headers:t={},...n}){const a={contentType:"application/octet-stream",...t};return r({path:"/API/license",method:"POST",body:e,headers:a,...n})}const gi={createLicense:$i};function Ii({...e}={}){return r({path:"/API/metadata/dataset",method:"GET",...e})}function Ai({datasetId:e=o(),...t}){const n=`/API/metadata/dataset/${e}`;return r({path:n,method:"GET",...t})}function Ei({datasetId:e=o(),body:t=o(),...n}){const a=`/API/metadata/dataset/${e}`;return r({path:a,method:"PUT",body:t,...n})}function yi({datasetId:e=o(),...t}){const n=`/API/metadata/dataset/${e}`;return r({path:n,method:"DELETE",...t})}const bi={listMetadataDataset:Ii,getMetadataDataset:Ai,updateMetadataDataset:Ei,removeMetadataDataset:yi},{getSimpleMetadata:Si}=g;function Gi({...e}={}){return r({path:"/API/metadata-field/",method:"GET",...e})}function vi({fieldName:e=o(),...t}){const n=`/API/metadata-field/${e}/`;return r({path:n,method:"GET",...t})}function ki({fieldName:e=o(),metadataFieldDocument:t,...n}){const a=`/API/metadata-field/${e}`;return r({path:a,method:"PUT",body:t,...n})}function Ui({fieldName:e=o(),...t}){const n=`/API/metadata-field/${e}`;return r({path:n,method:"DELETE",...t})}function Li({fieldName:e=o(),...t}){const n=`/API/metadata-field/${e}/values/`;return r({path:n,method:"GET",...t})}function Ci({fieldName:e=o(),metadataFieldValueConstraintListDocument:t,...n}){const a=`/API/metadata-field/${e}/allowed-values/`;let s="GET";return t&&(s="POST"),r({path:a,method:s,body:t,...n})}function Mi({fieldName:e=o(),simpleMetadataDocument:t,...n}){const a=`/API/metadata-field/${e}/values`;return r({path:a,method:"PUT",body:t,...n})}function Di({fieldName:e=o(),...t}){return Si({entityType:"metadata-field",entityId:e,...t})}function xi({fieldName:e=o(),...t}){const n=`/API/metadata-field/${e}/access`;return r({path:n,method:"GET",...t})}function Oi({fieldName:e=o(),metadataFieldAccessControlDocument:t=o(),...n}){const a=`/API/metadata-field/${e}/access`;return r({path:a,method:"POST",body:t,...n})}function ji({fieldName:e=o(),accessId:t=o(),...n}){const a=`/API/metadata-field/${e}/access/${t}`;return r({path:a,method:"DELETE",...n})}function Fi({...e}={}){return r({path:"/API/metadata-field/merged-access",method:"GET",...e})}function Ri({fieldName:e=o(),...t}={}){const n=`/API/metadata-field/${e}/merged-access`;return r({path:n,method:"GET",...t})}const wi={listMetadataField:Gi,getMetadataField:vi,updateMetadataField:ki,removeMetadataField:Ui,getMetadataFieldValues:Li,getMetadataFieldAllowedValues:Ci,updateMetadataFieldValues:Mi,getSimpleMetadata:Di,listMetadataFieldAccess:xi,createMetadataFieldAccess:Oi,removeMetadataFieldAccess:ji,listMetadataFieldMergedAccess:Fi,getMetadataFieldMergedAccess:Ri};function zi({...e}={}){return r({path:"/API/metadata/migration",method:"GET",...e})}function qi({migrationId:e=o(),...t}){const n=`/API/metadata/migration/${e}`;return r({path:n,method:"GET",...t})}function Bi({metadataSchemaMigrationDocument:e=o(),...t}){return r({path:"/API/metadata/migration",method:"POST",body:e,...t})}const Ni={listMetadataMigration:zi,getMetadataMigration:qi,createMetadataMigration:Bi};function Ji({...e}={}){return r({path:"/API/metadata-schema",method:"GET",...e})}function Vi({metadataSchemaDocument:e=o(),...t}){return r({path:"/API/metadata-schema",method:"PUT",body:e,...t})}function Hi({...e}={}){return r({path:"/API/metadata-schema",method:"DELETE",...e})}function Ki({groupName:e=o(),...t}={}){const n=`/API/metadata-schema${e}`;return r({path:n,method:"GET",...t})}function Qi({groupName:e=o(),metadataSchemaGroupDocument:t=o(),...n}={}){const a=`/API/metadata-schema${e}`;return r({path:a,method:"PUT",body:t,...n})}function _i({groupName:e=o(),...t}={}){const n=`/API/metadata-schema${e}`;return r({path:n,method:"DELETE",...t})}function Wi({...e}={}){return r({path:"/API/metadata-field/terse-schema",method:"GET",...e})}const Xi={getMetadataSchema:Ji,updateMetadataSchema:Vi,removeMetadataSchema:Hi,getMetadataSchemaGroup:Ki,updateMetadataSchemaGroup:Qi,removeMetadataSchemaGroup:_i,getTerseMetadataSchema:Wi};function Yi({...e}={}){return r({path:"/APInoauth/is-online/",method:"GET",...e})}function Zi({...e}={}){return r({path:"/APInoauth/selftest/",method:"GET",...e})}function tc({headers:e={},...t}={}){const n={accept:"text/plain",...e};return r({path:"/APIinit/",method:"POST",headers:n,...t})}function ec({path:e=o(),headers:t={},...n}){const a={accept:"application/octet-stream",...t};return r({path:e,method:"GET",headers:a,responseType:"blob",...n})}const nc={getSelfTest:Zi,createInit:tc,getFileRaw:ec,isOnline:Yi};function oc({projectDocument:e=o(),...t}){return r({path:"/API/collection/project/",method:"POST",body:e,...t})}function ac({collectionId:e=o(),projectVersionDocument:t=o(),...n}){const a=`/API/collection/${e}/version`;return r({path:a,method:"POST",body:t,...n})}function rc({collectionId:e=o(),headers:t={},...n}){const a=`/API/collection/${e}/definition`,s={accept:"text/plain",...t};return r({path:a,method:"GET",headers:s,...n})}function sc({collectionId:e=o(),format:t=o(),body:n=o(),headers:a={},...s}){const i=`/API/collection/${e}/definition/${t}`,u={contentType:"application/octet-stream",...a};return r({path:i,method:"PUT",body:n,headers:u,...s})}function ic({collectionId:e=o(),format:t=o(),headers:n={},...a}){const s=`/API/collection/${e}/definition/${t}`,i={accept:"application/octet-stream",...n};return r({path:s,method:"GET",headers:i,...a})}function cc({collectionId:e=o(),format:t=o(),...n}){const a=`/API/collection/${e}/definition/${t}`;return r({path:a,method:"DELETE",...n})}function uc({collectionId:e=o(),format:t=o(),...n}){const a=`/API/collection/${e}/definition/${t}/asset`;return r({path:a,method:"GET",...n})}function hc({collectionId:e=o(),format:t=o(),essenceMappingsDocument:n=o(),...a}){const s=`/API/collection/${e}/definition/${t}/asset`;return r({path:s,method:"PUT",body:n,...a})}function pc({collectionId:e=o(),format:t=o(),...n}){const a=`/API/collection/${e}/definition/${t}/asset`;return r({path:a,method:"DELETE",...n})}function dc({collectionId:e=o(),format:t=o(),headers:n={},...a}){const s=`/API/collection/${e}/definition/${t}/extradata`,i={accept:"application/octet-stream",...n};return r({path:s,method:"GET",headers:i,...a})}function mc({collectionId:e=o(),format:t=o(),body:n=o(),headers:a={},...s}){const i=`/API/collection/${e}/definition/${t}/extradata`,u={contentType:"application/octet-stream",...a};return r({path:i,method:"PUT",headers:u,body:n,...s})}function lc({collectionId:e=o(),format:t=o(),...n}){const a=`/API/collection/${e}/definition/${t}/extradata`;return r({path:a,method:"DELETE",...n})}function fc({queryParams:e=o(),essenceMappingsDocument:t,...n}){return r({path:"/API/collection/project/inspect",method:"POST",body:t,queryParams:e,...n})}function Pc({queryParams:e=o(),essenceMappingsDocument:t,...n}){return r({path:"/API/import/project",method:"POST",body:t,queryParams:e,...n})}function Tc({queryParams:e=o(),essenceMappingsDocument:t,...n}){return r({path:"/API/import/project/sequence",method:"POST",body:t,queryParams:e,...n})}function $c({collectionId:e=o(),queryParams:t=o(),exportRequestDocument:n,...a}){const s=`/API/collection/${e}/version/export`;let i="GET";return n&&(i="POST"),r({path:s,method:i,body:n,queryParams:t,...a})}const gc={createProject:oc,createProjectVersion:ac,listProjectDefinition:rc,updateProjectDefinition:sc,getProjectDefinition:ic,removeProjectDefinition:cc,getProjectDefinitionAsset:uc,updateProjectDefinitionAsset:hc,removeProjectDefinitionAsset:pc,getProjectDefinitionExtraData:dc,updateProjectDefinitionExtraData:mc,removeProjectDefinitionExtraData:lc,inspectProjectFile:fc,importProject:Pc,importProjectSequence:Tc,exportProjectVersionSequence:$c};function Ic({...e}={}){return r({path:"/API/projection/",method:"GET",...e})}function Ac({projectionId:e=o(),headers:t={},...n}){const a=`/API/projection/${e}/outgoing`,s={accept:"application/xml",...t};return r({path:a,method:"GET",headers:s,...n})}function Ec({projectionId:e=o(),headers:t={},...n}){const a=`/API/projection/${e}/incoming`,s={accept:"application/xml",...t};return r({path:a,method:"GET",headers:s,...n})}function yc({projectionId:e=o(),projectionDocument:t,headers:n={},...a}){const s=`/API/projection/${e}/outgoing`,i={contentType:"application/xml",accept:"application/xml",...n};return r({path:s,method:"PUT",body:t,headers:i,...a})}function bc({projectionId:e=o(),projectionDocument:t,headers:n={},...a}){const s=`/API/projection/${e}/incoming`,i={contentType:"application/xml",accept:"application/xml",...n};return r({path:s,method:"PUT",body:t,headers:i,...a})}function Sc({projectionId:e=o(),...t}){const n=`/API/projection/${e}`;return r({path:n,method:"DELETE",...t})}const Gc={listProjection:Ic,getProjectionOutgoing:Ac,getProjectionIncoming:Ec,updateProjectionOutgoing:yc,updateProjectionIncoming:bc,removeProjection:Sc};function vc({...e}={}){return r({path:"/API/quota/",method:"GET",...e})}function kc({quotaRuleDocument:e,...t}){return r({path:"/API/quota/",method:"POST",body:e,...t})}function Uc({ruleId:e=o(),...t}){const n=`/API/quota/${e}`;return r({path:n,method:"GET",...t})}function Lc({ruleId:e=o(),...t}){const n=`/API/quota/${e}`;return r({path:n,method:"PUT",...t})}function Cc({ruleId:e=o(),...t}){const n=`/API/quota/${e}`;return r({path:n,method:"DELETE",...t})}const Mc={listQuota:vc,createQuota:kc,getQuota:Uc,evaluateQuota:Lc,removeQuota:Cc};function Dc({indexName:e=o(),...t}){const n=`/API/reindex/${e}`;return r({path:n,method:"GET",...t})}function xc({indexName:e=o(),...t}){const n=`/API/reindex/${e}/`;return r({path:n,method:"PUT",...t})}const Oc={getReindex:Dc,updateReindex:xc};function jc({...e}={}){return r({path:"/API/resource/",method:"GET",...e})}function Fc({resourceType:e=o(),...t}){const n=`/API/resource/${e}`;return r({path:n,method:"GET",...t})}function Rc({resourceType:e=o(),resourceDocument:t,...n}){const a=`/API/resource/${e}`;return r({path:a,method:"POST",body:t,...n})}function wc({resourceType:e=o(),resourceId:t=o(),resourceDocument:n,...a}){const s=`/API/resource/${e}/${t}`;return r({path:s,method:"PUT",body:n,...a})}function zc({resourceType:e=o(),resourceId:t=o(),...n}){const a=`/API/resource/${e}/${t}`;return r({path:a,method:"GET",...n})}function qc({resourceType:e=o(),resourceId:t=o(),...n}){const a=`/API/resource/${e}/${t}`;return r({path:a,method:"DELETE",...n})}function Bc({resourceType:e=o(),resourceId:t=o(),headers:n={},...a}){const s={accept:"text/plain",...n},i=`/API/resource/${e}/${t}/status`;return r({path:i,method:"GET",headers:s,...a})}const Nc={listResource:jc,listResourceType:Fc,createResource:Rc,modifyResource:wc,getResource:zc,removeResource:qc,statusResource:Bc};function Jc({...e}){return r({path:"/API/scheduled-request/",method:"GET",...e})}function Vc({requestId:e=o(),...t}){const n=`/API/scheduled-request/${e}`;return r({path:n,method:"GET",...t})}function Hc({requestId:e=o(),headers:t={},...n}){const a=`/API/scheduled-request/${e}/response`,s={accept:"*/*",...t};return r({path:a,headers:s,method:"GET",...n})}function Kc({requestId:e=o(),...t}){const n=`/API/scheduled-request/${e}`;return r({path:n,method:"DELETE",...t})}function Qc({...e}){return r({path:"/API/scheduled-request",method:"DELETE",...e})}const _c={listScheduledRequest:Jc,getScheduledRequest:Vc,getScheduledRequestResponse:Hc,removeScheduledRequest:Kc,removeAllScheduledRequest:Qc};function Wc({...e}={}){return r({path:"/API/search/",method:"GET",...e})}function Xc({itemSearchDocument:e,...t}){return r({path:"/API/search/",method:"PUT",body:e,...t})}function Yc({metadataGroupSearchDocument:e,...t}){return r({path:"/API/search/metadata-group",method:"PUT",body:e,...t})}function Zc({shapeSearchDocument:e,...t}){return r({path:"/API/search/shape/",method:"PUT",body:e,...t})}function tu({fileSearchDocument:e,...t}){return r({path:"/API/search/file/",method:"PUT",body:e,...t})}function eu({autocompleteRequestDocument:e,...t}){return r({path:"/API/search/autocomplete/",method:"PUT",body:e,...t})}const nu={listItemCollection:Wc,searchItemCollection:Xc,searchItemCollectionMetadataGroup:Yc,searchShape:Zc,searchFile:tu,searchAutoComplete:eu};function ou({...e}={}){return r({path:"/API/secret/",method:"GET",...e})}function au({alias:e=o(),...t}){const n=`/API/secret/${e}`;return r({path:n,method:"GET",...t})}function ru({alias:e=o(),secretDocument:t={},...n}={}){const a=`/API/secret/${e}`;return r({path:a,method:"PUT",body:t,...n})}function su({alias:e=o(),...t}){const n=`/API/secret/${e}`;return r({path:n,method:"DELETE",...t})}function iu({alias:e=o(),key:t=o(),value:n=o(),headers:a={},...s}){const i=`/API/secret/${e}/${t}`,u={contentType:"text/plain",...a};return r({path:i,method:"PUT",body:n,headers:u,...s})}function cu({alias:e=o(),key:t=o(),...n}){const a=`/API/secret/${e}/${t}`;return r({path:a,method:"DELETE",...n})}const uu={listSecret:ou,getSecret:au,createSecret:ru,deleteSecret:su,updateSecretValue:iu,deleteSecretValue:cu};function hu({noAuth:e=!1,...t}={}){return r({path:e?"/APInoauth/selftest/":"/API/selftest/",method:"GET",...t})}function pu({testName:e=o(),...t}={}){const n=`/API/selftest/${e}`;return r({path:n,method:"GET",...t})}const du={listSelfTest:hu,getSelfTest:pu};function mu({itemId:e=o(),format:t=o(),sequenceDefinition:n,headers:a={},...s}){const i=`/API/item/${e}/sequence/${t}`,u={contentType:"application/octet-stream",...a};return r({path:i,method:"PUT",body:n,headers:u,...s})}function lu({itemId:e=o(),...t}){const n=`/API/item/${e}/sequence`;return r({path:n,method:"GET",...t})}function fu({itemId:e=o(),format:t=o(),headers:n={},...a}){const s=`/API/item/${e}/sequence/${t}`,i={accept:"*/*",...n};return r({path:s,method:"GET",headers:i,...a})}function Pu({itemId:e=o(),...t}){const n=`/API/item/${e}/sequence/conform-metadata`;return r({path:n,method:"POST",...t})}function Tu({itemId:e=o(),...t}){const n=`/API/item/${e}/sequence/render`;return r({path:n,method:"POST",...t})}function $u({itemId:e=o(),format:t=o(),...n}){const a=`/API/item/${e}/sequence/${t}`;return r({path:a,method:"DELETE",...n})}function gu({sequenceRenderRequestDocument:e=o(),...t}){return r({path:"/API/sequence/render",method:"POST",body:e,...t})}function Iu({queryParams:e=o(),exportRequestDocument:t,...n}){return r({path:"/API/sequence/export",method:"POST",body:t,queryParams:e,...n})}function Au({itemId:e=o(),queryParams:t=o(),exportRequestDocument:n,...a}){const s=`/API/item/${e}/sequence/export`;let i="GET";return n&&(i="POST"),r({path:s,method:i,body:n,queryParams:t,...a})}const Eu={updateItemSequence:mu,listItemSequence:lu,getItemSequence:fu,conformItemSequence:Pu,renderItemSequence:Tu,removeItemSequence:$u,renderSequence:gu,exportSequence:Iu,exportItemSequence:Au};function yu({...e}={}){return r({path:"/API/vidispine-service",method:"GET",...e})}function bu({serviceName:e=o(),...t}){const n=`/API/vidispine-service/service/${e}`;return r({path:n,method:"GET",...t})}function Su({serviceName:e=o(),...t}){const n=`/API/vidispine-service/service/${e}/enable`;return r({path:n,method:"PUT",...t})}function Gu({serviceName:e=o(),...t}){const n=`/API/vidispine-service/service/${e}/disable`;return r({path:n,method:"PUT",...t})}function vu({headers:e={},...t}={}){const n="/API/vidispine-service/stacktrace",a={accept:"text/plain",...e};return r({path:n,method:"GET",headers:a,...t})}const ku={getServiceList:yu,getService:bu,enableService:Su,disableService:Gu,getStackTrace:vu};function Uu({itemId:e=o(),metadataDocument:t={},headers:n={},...a}){const s={accept:"text/plain",...n},i=`/API/item/${e}/shape/placeholder`;return r({path:i,method:"POST",body:t,headers:s,...a})}function Lu({itemId:e=o(),shapeDocument:t={},...n}){const a=`/API/item/${e}/shape/create`;return r({path:a,method:"POST",body:t,...n})}function Cu({itemId:e=o(),shapeId:t=o(),simpleMetadataDocument:n={},...a}){const s=`/API/item/${e}/shape/${t}/placeholder`;return r({path:s,method:"PUT",body:n,...a})}function Mu({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/`;return r({path:n,method:"POST",...t})}function Du({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/imp`;return r({path:n,method:"POST",...t})}function xu({itemId:e=o(),headers:t={},file:n,...a}){const s=`/API/item/${e}/shape/raw`,i={contentType:"application/octet-stream",...t};return r({path:s,method:"POST",body:n,headers:i,...a})}function Ou({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/`;return r({path:n,method:"GET",...t})}function ju({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/`;return r({path:a,method:"GET",...n})}function Fu({itemId:e=o(),shapeId:t=o(),headers:n={},...a}){const s=`/API/item/${e}/shape/${t}/graph`,i={accept:"image/png",...n};return r({path:s,method:"GET",headers:i,...a})}function Ru({itemId:e=o(),shapeId:t=o(),headers:n={},...a}){const s=`/API/item/${e}/shape/${t}/graph/dot`,i={accept:"text/plain",...n};return r({path:s,method:"GET",headers:i,...a})}function wu({itemId:e=o(),shapeId:t=o(),headers:n={},...a}){const s=`/API/item/${e}/shape/${t}/cpl`,i={accept:"application/xml",...n};return r({path:s,method:"GET",headers:i,...a})}function zu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/transcode`;return r({path:a,method:"POST",...n})}function qu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/export`;return r({path:a,method:"POST",...n})}function Bu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/export/imp`;return r({path:a,method:"POST",...n})}function Nu({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/version`;return r({path:n,method:"GET",...t})}function Ju({itemId:e=o(),versionId:t=o(),...n}){const a=`/API/item/${e}/shape/version/${t}`;return r({path:a,method:"GET",...n})}function Vu({itemId:e=o(),versionId:t=o(),...n}){const a=`/API/item/${e}/shape/version/${t}`;return r({path:a,method:"DELETE",...n})}function Hu({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/version/`;return r({path:n,method:"POST",...t})}function Ku({itemId:e=o(),versionId:t=o(),...n}){const a=`/API/item/${e}/shape/version/${t}`;return r({path:a,method:"POST",...n})}function Qu({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/essence`;return r({path:n,method:"POST",...t})}function _u({itemId:e=o(),headers:t={},file:n,...a}){const s=`/API/item/${e}/shape/essence/raw`,i={contentType:"application/octet-stream",...t};return r({path:s,body:n,method:"POST",headers:i,...a})}function Wu({itemId:e=o(),shapeId:t=o(),...n}={}){const a=`/API/item/${e}/shape/${t}`;return r({path:a,method:"DELETE",...n})}function Xu({itemId:e=o(),...t}={}){const n=`/API/item/${e}/shape/`;return r({path:n,method:"DELETE",...t})}function Yu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/transcode`;return r({path:a,method:"POST",...n})}function Zu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/thumbnail`;return r({path:a,method:"POST",...n})}function th({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/update`;return r({path:a,method:"POST",...n})}function eh({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/file`;return r({path:a,method:"GET",...n})}function nh({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/tag`;return r({path:a,method:"GET",...n})}function oh({itemId:e=o(),shapeId:t=o(),tagName:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/tag/${n}`;return r({path:s,method:"PUT",...a})}function ah({itemId:e=o(),shapeId:t=o(),tagName:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/tag/${n}`;return r({path:s,method:"DELETE",...a})}function rh({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/mime`;return r({path:a,method:"GET",...n})}function sh({itemId:e=o(),shapeId:t=o(),mimeType:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/mime/${n}`;return r({path:s,method:"PUT",...a})}function ih({itemId:e=o(),shapeId:t=o(),mimeType:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/mime/${n}`;return r({path:s,method:"DELETE",...a})}function ch({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/filename`;return r({path:a,method:"GET",...n})}function uh({itemId:e=o(),shapeId:t=o(),storageId:n=o(),queryParams:a=o(),...s}){const i=`/API/item/${e}/shape/${t}/filename/${n}`;return r({path:i,method:"PUT",queryParams:a,...s})}function hh({itemId:e=o(),shapeId:t=o(),storageId:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/filename/${n}`;return r({path:s,method:"DELETE",...a})}function ph({itemId:e=o(),shapeId:t=o(),analyzeJobDocument:n,...a}){const s=`/API/item/${e}/shape/${t}/analyze`;return r({path:s,method:"POST",body:n,...a})}function dh({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/smartcrop-render`;return r({path:a,method:"POST",...n})}function mh({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/smartcrop-edl`;return r({path:a,method:"GET",...n})}function lh({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/highlight-render`;return r({path:a,method:"POST",...n})}function fh({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/highlighter-edl`;return r({path:a,method:"GET",...n})}const Ph={createShapePlaceholder:Uu,createShape:Lu,updateShapePlaceholder:Cu,createShapeImport:Mu,createShapeImportImp:Du,createShapeImportRaw:xu,listShape:Ou,getShape:ju,getShapeGraph:Fu,getShapeGraphDot:Ru,getShapeCpl:wu,createShapeTranscode:zu,createShapeExport:qu,createShapeExportImp:Bu,listShapeEssence:Nu,getShapeEssence:Ju,removeShapeEssence:Vu,copyShapeEssence:Hu,copyShapeEssenceSpecific:Ku,createShapeEssenceImport:Qu,createShapeEssenceImportRaw:_u,removeShape:Wu,removeShapeAll:Xu,createTranscode:Yu,createThumbnail:Zu,createDeduction:th,listShapeFile:eh,getShapeTag:nh,updateShapeTag:oh,removeShapeTag:ah,getShapeMime:rh,updateShapeMime:sh,removeShapeMime:ih,getShapeFileNameRule:ch,createShapeFileNameRule:uh,removeShapeFileNameRule:hh,createShapeAnalyze:ph,createSmartcrop:dh,getSmartcrop:mh,createHighlight:lh,getHighlight:fh};function Th({...e}={}){return r({path:"/API/shape-tag/",method:"GET",...e})}function $h({tagName:e=o(),...t}){const n=`/API/shape-tag/${e}`;return r({path:n,method:"GET",...t})}function gh({tagName:e=o(),transcodePresetDocument:t,...n}){const a=`/API/shape-tag/${e}`;return r({path:a,method:"PUT",body:t,...n})}function Ih({tagName:e=o(),...t}){const n=`/API/shape-tag/${e}`;return r({path:n,method:"DELETE",...t})}function Ah({tagName:e=o(),headers:t={},...n}){const a={accept:"application/javascript",...t},s=`/API/shape-tag/${e}/script`;return r({path:s,method:"GET",headers:a,...n})}function Eh({tagName:e=o(),shapeTagScript:t,headers:n={},...a}){const s={contentType:"application/javascript",...n},i=`/API/shape-tag/${e}/script`;return r({path:i,method:"PUT",body:t,headers:s,...a})}function yh({tagName:e=o(),...t}){const n=`/API/shape-tag/${e}/script`;return r({path:n,method:"DELETE",...t})}function bh({tagName:e=o(),itemId:t=o(),shapeId:n=o(),...a}){const s=`/API/shape-tag/${e}/item/${t}/shape/${n}/`;return r({path:s,method:"GET",...a})}function Sh({...e}={}){return r({path:"/APIinit/preset-templates",method:"PUT",...e})}const Gh={listShapeTag:Th,getShapeTag:$h,updateShapeTag:gh,removeShapeTag:Ih,getShapeTagScript:Ah,updateShapeTagScript:Eh,removeShapeTagScript:yh,testShapeTagScript:bh,createShapeTagPreset:Sh};function vh({headers:e={},...t}={}){const n={accept:"image/png",...e};return r({path:"/APInoauth/stitch",method:"GET",headers:n,...t})}const kh={getStitch:vh};function Uh({...e}={}){return r({path:"/API/storage/",method:"GET",...e})}function Lh({storageDocument:e,...t}){return r({path:"/API/storage/",method:"POST",body:e,...t})}function Ch({storageId:e=o(),...t}){const n=`/API/storage/${e}/`;return r({path:n,method:"GET",...t})}function Mh({storageId:e=o(),storageDocument:t,...n}){const a=`/API/storage/${e}/`;return r({path:a,method:"PUT",body:t,...n})}function Dh({storageId:e=o(),metadataDocument:t,...n}){const a=`/API/storage/${e}/metadata`;return r({path:a,method:"PUT",body:t,...n})}function xh({storageId:e=o(),key:t=o(),metadataValue:n,headers:a={},...s}){const i={contentType:"text/plain",...a},u=`/API/storage/${e}/metadata/${t}`;return r({path:u,method:"PUT",body:n,headers:i,...s})}function Oh({storageId:e=o(),key:t=o(),...n}){const a=`/API/storage/${e}/metadata/${t}`;return r({path:a,method:"DELETE",...n})}function jh({storageId:e=o(),...t}){const n=`/API/storage/${e}/rescan`;return r({path:n,method:"POST",...t})}function Fh({storageId:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/storage/${e}/method/`;return r({path:s,method:"PUT",headers:a,...n})}function Rh({storageId:e=o(),storageMethodId:t=o(),headers:n={},...a}){const s={accept:"text/plain",...n},i=`/API/storage/${e}/method/${t}/`;return r({path:i,method:"PUT",headers:s,...a})}function wh({storageId:e=o(),storageMethodId:t=o(),headers:n={},...a}){const s={accept:"text/plain",...n},i=`/API/storage/${e}/method/${t}`;return r({path:i,method:"DELETE",headers:s,...a})}function zh({storageId:e=o(),storageMethodId:t=o(),...n}){const a=`/API/storage/${e}/method/${t}`;return r({path:a,method:"GET",...n})}function qh({storageId:e=o(),...t}){const n=`/API/storage/${e}/method/`;return r({path:n,method:"GET",...t})}function Bh({storageId:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/storage/${e}/`;return r({path:s,method:"DELETE",headers:a,...n})}function Nh({storageId:e=o(),...t}){const n=`/API/storage/${e}/evacuate`;return r({path:n,method:"PUT",...t})}function Jh({storageId:e=o(),...t}){const n=`/API/storage/${e}/evacuate`;return r({path:n,method:"DELETE",...t})}function Vh({storageId:e=o(),storageType:t=o(),...n}){const a=`/API/storage/${e}/type/${t}`;return r({path:a,method:"PUT",...n})}const Hh={listStorage:Uh,createStorage:Lh,getStorage:Ch,modifyStorage:Mh,modifyStorageMetadata:Dh,modifyStorageMetadataKey:xh,removeStorageMetadata:Oh,rescanStorage:jh,createStorageMethod:Fh,modifyStorageMethod:Rh,removeStorageMethod:wh,getStorageMethod:zh,listStorageMethod:qh,removeStorage:Bh,startEvacuateStorage:Nh,cancelEvacuateStorage:Jh,updateStorageType:Vh};function Kh({...e}={}){return r({path:"/API/storage/storage-group/",method:"GET",...e})}function Qh({groupName:e=o(),...t}){const n=`/API/storage/storage-group/${e}`;return r({path:n,method:"PUT",...t})}function _h({groupName:e=o(),...t}){const n=`/API/storage/storage-group/${e}`;return r({path:n,method:"GET",...t})}function Wh({groupName:e=o(),...t}){const n=`/API/storage/storage-group/${e}`;return r({path:n,method:"DELETE",...t})}function Xh({groupName:e=o(),storageId:t=o(),...n}){const a=`/API/storage/storage-group/${e}/${t}`;return r({path:a,method:"PUT",...n})}function Yh({groupName:e=o(),storageId:t=o(),...n}){const a=`/API/storage/storage-group/${e}/${t}`;return r({path:a,method:"DELETE",...n})}const Zh={listStorageGroup:Kh,createStorageGroup:Qh,getStorageGroup:_h,removeStorageGroup:Wh,addStorageGroupStorage:Xh,removeStorageGroupStorage:Yh};function tp({...e}={}){return r({path:"/API/storage-rule/",method:"GET",...e})}function ep({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/storage-rule`;return r({path:a,method:"GET",...n})}function np({entityType:e=o(),entityId:t=o(),storageRuleDocument:n,...a}){const s=`/API/${e}/${t}/storage-rule`;return r({path:s,method:"PUT",body:n,...a})}function op({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/storage-rule`;return r({path:a,method:"DELETE",...n})}function ap({entityType:e=o(),entityId:t=o(),tagName:n=o(),...a}){const s=`/API/${e}/${t}/storage-rule/${n}`;return r({path:s,method:"GET",...a})}function rp({entityType:e=o(),entityId:t=o(),tagName:n=o(),storageRuleDocument:a,...s}){const i=`/API/${e}/${t}/storage-rule/${n}`;return r({path:i,method:"PUT",body:a,...s})}function sp({entityType:e=o(),entityId:t=o(),tagName:n=o(),...a}){const s=`/API/${e}/${t}/storage-rule/${n}`;return r({path:s,method:"DELETE",...a})}function ip({tagName:e=o(),...t}){const n=`/API/shape-tag/storage-rule/${e}`;return r({path:n,method:"GET",...t})}function cp({tagName:e=o(),storageRuleDocument:t,...n}){const a=`/API/shape-tag/storage-rule/${e}`;return r({path:a,method:"PUT",body:t,...n})}function up({tagName:e=o(),...t}){const n=`/API/shape-tag/storage-rule/${e}`;return r({path:n,method:"DELETE",...t})}const hp={listStorageRule:tp,getEntityStorageRule:ep,updateEntityStorageRule:np,removeEntityStorageRule:op,getEntityStorageRuleTag:ap,updateEntityStorageRuleTag:rp,removeEntityStorageRuleTag:sp,getStorageRuleShapeTag:ip,updateStorageRuleShapeTag:cp,removeStorageRuleShapeTag:up};function pp({itemId:e=o(),headers:t={},...n}){const a=`/API/item/${e}/metadata/export/scc`,s={accept:"text/plain ",...t};return r({path:a,method:"GET",headers:s,...n})}function dp({itemId:e=o(),headers:t={},...n}){const a=`/API/item/${e}/metadata/export/ttml`,s={accept:"application/xml",...t};return r({path:a,method:"GET",headers:s,...n})}const mp={getSubtitleSCC:pp,getSubtitleTTML:dp};function lp({...e}={}){return r({path:"/API/jobtype",method:"GET",...e})}function fp({jobType:e=o(),...t}){const n=`/API/task-definition/jobtype/${e}/`;return r({path:n,method:"POST",...t})}function Pp({jobType:e=o(),...t}){const n=`/API/task-definition/jobtype/${e}/`;return r({path:n,method:"DELETE",...t})}function Tp({jobType:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/task-definition/jobtype/${e}/graph/dot`;return r({path:s,method:"GET",headers:a,...n})}function $p({jobType:e=o(),headers:t={},...n}){const a={accept:"image/png",...t},s=`/API/task-definition/jobtype/${e}/graph`;return r({path:s,method:"GET",headers:a,responseType:"blob",...n})}function gp({...e}={}){return r({path:"/API/task-definition",method:"GET",...e})}function Ip({taskDefinitionType:e=o(),...t}){const n=`/API/task-definition/jobtype/${e}/`;return r({path:n,method:"GET",...t})}function Ap({taskDefinitionListDocument:e,...t}){return r({path:"/API/task-definition",method:"POST",body:e,...t})}function Ep({taskDefinitionId:e=o(),...t}){const n=`/API/task-definition/${e}`;return r({path:n,method:"GET",...t})}function yp({taskDefinitionType:e=o(),taskDefinitionStep:t=o(),...n}){const a=`/API/task-definition/jobtype/${e}/step/${t}`;return r({path:a,method:"GET",...n})}function bp({taskDefinitionId:e=o(),...t}){const n=`/API/task-definition/${e}`;return r({path:n,method:"DELETE",...t})}function Sp({taskDefinitionType:e=o(),taskDefinitionStep:t=o(),...n}){const a=`/API/task-definition/jobtype/${e}/step/${t}`;return r({path:a,method:"DELETE",...n})}function Gp({taskDefinitionId:e=o(),taskDefinitionDocument:t=o(),...n}){const a=`/API/task-definition/${e}`;return r({path:a,method:"PUT",body:t,...n})}function vp({taskDefinitionType:e=o(),taskDefinitionStep:t=o(),taskDefinitionDocument:n,...a}){const s=`/API/task-definition/jobtype/${e}/step/${t}`;return r({path:s,method:"PUT",body:n,...a})}function kp({taskDefinitionId:e=o(),headers:t={},...n}){const a={accept:"application/javascript",...t},s=`/API/task-definition/${e}/script`;return r({path:s,method:"GET",headers:a,...n})}function Up({taskDefinitionType:e=o(),taskDefinitionStep:t=o(),headers:n={},...a}){const s={accept:"application/javascript",...n},i=`/API/task-definition/jobtype/${e}/step/${t}/script`;return r({path:i,method:"GET",headers:s,...a})}function Lp({taskDefinitionId:e=o(),scriptDocument:t,headers:n={},...a}){const s={contentType:"application/javascript",accept:"application/javascript",...n},i=`/API/task-definition/${e}/script`;return r({path:i,method:"PUT",body:t,headers:s,...a})}function Cp({taskDefinitionType:e=o(),taskDefinitionStep:t=o(),scriptDocument:n,headers:a={},...s}){const i={contentType:"application/javascript",accept:"application/javascript",...a},u=`/API/task-definition/jobtype/${e}/step/${t}/script`;return r({path:u,method:"PUT",body:n,headers:i,...s})}const Mp={listJobType:lp,createJobType:fp,removeJobType:Pp,getJobTypeGraphDot:Tp,getJobTypeGraph:$p,listTaskDefinition:gp,getTaskDefinitionType:Ip,createTaskDefinition:Ap,getTaskDefinition:Ep,getTaskDefinitionStep:yp,removeTaskDefinition:bp,removeTaskDefinitionStep:Sp,modifyTaskDefinition:Gp,modifyTaskDefinitionStep:vp,getTaskDefinitionScript:kp,getTaskDefinitionStepScript:Up,updateTaskDefinitionScript:Lp,updateTaskDefinitionStepScript:Cp};function Dp({...e}={}){return r({path:"/API/task-group",method:"GET",...e})}function xp({groupName:e=o(),taskGroupDocument:t,...n}){const a=`/API/task-group/${e}`;return r({path:a,method:"PUT",body:t,...n})}function Op({groupName:e=o(),...t}){const n=`/API/task-group/${e}`;return r({path:n,method:"GET",...t})}function jp({groupName:e=o(),...t}){const n=`/API/task-group/${e}`;return r({path:n,method:"DELETE",...t})}function Fp({...e}={}){return r({path:"/API/task-group",method:"DELETE",...e})}function Rp({groupName:e=o(),transcoderId:t=o(),taskGroupDocument:n,...a}){const s=`/API/task-group/${e}/transcoder/${t}`;return r({path:s,method:"PUT",...a})}function wp({groupName:e=o(),transcoderId:t=o(),...n}){const a=`/API/task-group/${e}/transcoder/${t}`;return r({path:a,method:"DELETE",...n})}const zp={listTaskGroup:Dp,updateTaskGroup:xp,getTaskGroup:Op,removeTaskGroup:jp,removeAllTaskGroup:Fp,updateTaskGroupTranscoder:Rp,removeTaskGroupTranscoder:wp};function qp({itemId:e=o(),...t}){const n=`/API/item/${e}/thumbnail`;return r({path:n,method:"POST",...t})}function Bp({itemId:e=o(),...t}){const n=`/API/item/${e}/thumbnailresource`;return r({path:n,method:"GET",...t})}function Np({itemId:e=o(),...t}){const n=`/API/item/${e}/thumbnailresource`;return r({path:n,method:"PUT",...t})}function Jp({itemId:e=o(),resourceId:t=o(),...n}){const a=`/API/thumbnail/${t}/${e}`;return r({path:a,method:"GET",...n})}function Vp({itemId:e=o(),resourceId:t=o(),...n}){const a=`/API/thumbnail/${t}/${e}`;return r({path:a,method:"DELETE",...n})}function Hp({itemId:e=o(),resourceId:t=o(),time:n=o(),headers:a={},file:s,...i}){const u=`/API/thumbnail/${t}/${e}/${n}`,p={accept:"text/plain",...a};return r({path:u,method:"PUT",body:s,headers:p,...i})}function Kp({itemId:e=o(),resourceId:t=o(),time:n=o(),headers:a={},...s}){const i=`/API/thumbnail/${t}/${e}/${n}`,u={accept:"image/png, image/jpeg",...a};return r({path:i,method:"GET",headers:u,...s})}function Qp({itemId:e=o(),resourceId:t=o(),time:n=o(),...a}){const s=`/API/thumbnail/${t}/${e}/${n}/export`;return r({path:s,method:"GET",...a})}function _p({itemId:e=o(),resourceId:t=o(),time:n=o(),...a}){const s=`/API/thumbnail/${t}/${e}/${n}`;return r({path:s,method:"DELETE",...a})}function Wp({itemId:e=o(),...t}){const n=`/API/item/${e}/posterresource`;return r({path:n,method:"GET",...t})}function Xp({itemId:e=o(),...t}){const n=`/API/item/${e}/posterresource`;return r({path:n,method:"PUT",...t})}function Yp({itemId:e=o(),resourceId:t=o(),...n}){const a=`/API/poster/${t}/${e}`;return r({path:a,method:"GET",...n})}function Zp({itemId:e=o(),resourceId:t=o(),...n}){const a=`/API/poster/${t}/${e}`;return r({path:a,method:"DELETE",...n})}function td({itemId:e=o(),resourceId:t=o(),time:n=o(),...a}){const s=`/API/poster/${t}/${e}/${n}`;return r({path:s,method:"PUT",...a})}function ed({itemId:e=o(),resourceId:t=o(),time:n=o(),headers:a={},...s}){const i=`/API/poster/${t}/${e}/${n}`,u={accept:"image/png, image/jpeg",...a};return r({path:i,method:"GET",headers:u,...s})}function nd({itemId:e=o(),resourceId:t=o(),time:n=o(),...a}){const s=`/API/poster/${t}/${e}/${n}/export`;return r({path:s,method:"GET",...a})}function od({itemId:e=o(),resourceId:t=o(),time:n=o(),...a}){const s=`/API/poster/${t}/${e}/${n}`;return r({path:s,method:"DELETE",...a})}const ad={createThumbnail:qp,listThumbnailResource:Bp,createThumbnailResource:Np,listThumbnail:Jp,removeAllThumbnail:Vp,updateThumbnail:Hp,getThumbnail:Kp,exportThumbnail:Qp,removeThumbnail:_p,listPosterResource:Wp,createPosterResource:Xp,listPoster:Yp,removeAllPoster:Zp,updatePoster:td,getPoster:ed,exportPoster:nd,removePoster:od};function rd({itemId:e=o(),headers:t={},...n}){const a=`/API/item/${e}/timeline`,s={accept:"text/plain",...t};return r({path:a,method:"GET",headers:s,...n})}function sd({itemId:e=o(),...t}){const n=`/API/item/${e}/timeline`;return r({path:n,method:"DELETE",...t})}function id({itemId:e=o(),format:t=o(),...n}){const a=`/API/item/${e}/timeline/${t}`;return r({path:a,method:"GET",...n})}function cd({itemId:e=o(),format:t=o(),body:n=o(),...a}){const s=`/API/item/${e}/timeline/${t}`;return r({path:s,method:"PUT",body:n,...a})}function ud({itemId:e=o(),format:t=o(),...n}){const a=`/API/item/${e}/timeline/${t}`;return r({path:a,method:"DELETE",...n})}const hd={getTimeline:rd,removeTimeline:sd,getTimelineFormat:id,updateTimelineFormat:cd,removeTimelineFormat:ud};function pd({...e}={}){return r({path:"/API/transfer/",method:"GET",...e})}function dd({transferId:e=o(),...t}){const n=`/API/transfer/${e}`;return r({path:n,method:"GET",...t})}function md({transferId:e=o(),...t}){const n=`/API/transfer/${e}`;return r({path:n,method:"PUT",...t})}function ld({...e}={}){return r({path:"/API/log/transfer-log/",method:"GET",...e})}const fd={listTransfer:pd,getTransfer:dd,updateTransferPriority:md,listTransferLog:ld};function Pd({username:e=o(),password:t=o(),file:n=o(),headers:a={},...s}){const i={accept:"text/html",...a};i.delete("content-type");const u="/UploadLicense/getlic",p=new FormData;return p.append("user",e),p.append("pass",t),p.append("file",n),r({path:u,body:p,method:"POST",headers:i,...s})}const Td={createLicense:Pd};function $d({headers:e={},...t}={}){const n="/API/whoami",a={accept:"text/plain",...e};return r({path:n,method:"GET",headers:a,...t})}function gd({username:e=o(),password:t,headers:n={},...a}){const s={username:e,password:t,accept:"text/plain",...n},i=`/API/user/${e}/token`;return r({path:i,method:"GET",headers:s,...a})}function Id({...e}={}){return r({path:"/API/user/",method:"GET",...e})}function Ad({userDocument:e,...t}){return r({path:"/API/user/",method:"POST",body:e,...t})}function Ed({userName:e=o(),...t}){const n=`/API/user/${e}`;return r({path:n,method:"GET",...t})}function yd({userName:e=o(),...t}){const n=`/API/user/${e}/graph`;return r({path:n,method:"GET",...t})}function bd({userName:e=o(),userDocument:t=o(),...n}){const a=`/API/user/${e}`;return r({path:a,method:"PUT",body:t,...n})}function Sd({userName:e=o(),...t}){const n=`/API/user/${e}/`;return r({path:n,method:"DELETE",...t})}function Gd({userName:e=o(),...t}){const n=`/API/user/${e}/enable`;return r({path:n,method:"PUT",...t})}function vd({userSearchDocument:e,...t}){return r({path:"/API/user/",method:"PUT",body:e,...t})}function kd({userName:e=o(),alias:t=o(),...n}){const a=`/API/user/${e}/alias/${t}`;return r({path:a,method:"PUT",...n})}function Ud({userName:e=o(),alias:t=o(),...n}){const a=`/API/user/${e}/alias/${t}`;return r({path:a,method:"DELETE",...n})}function Ld({userName:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/user/${e}/realname`;return r({path:s,method:"GET",headers:a,...n})}function Cd({userName:e=o(),realName:t,headers:n={},...a}){const s={accept:"text/plain",contentType:"text/plain",...n},i=`/API/user/${e}/realname`;return r({path:i,method:"PUT",body:t,headers:s,...a})}function Md({userName:e=o(),password:t=o(),headers:n={},...a}){const s={accept:"text/plain",contentType:"text/plain",...n},i=`/API/user/${e}/password/`;return r({path:i,method:"PUT",body:t,headers:s,...a})}function Dd({userName:e=o(),password:t=o(),headers:n={},...a}){const s={accept:"text/plain",contentType:"text/plain",...n},i=`/API/user/${e}/validate/`;return r({path:i,method:"PUT",body:t,headers:s,...a})}function xd({userName:e=o(),headers:t={},...n}){const a={accept:"application/octet-stream",...t},s=`/API/user/${e}/password/salt`;return r({path:s,method:"GET",headers:a,...n})}function Od({userName:e=o(),headers:t={},...n}){const a={accept:"application/octet-stream",...t},s=`/API/user/${e}/password/salt`;return r({path:s,method:"POST",headers:a,...n})}function jd({userName:e=o(),...t}){const n=`/API/user/${e}/groups/`;return r({path:n,method:"GET",...t})}function Fd({userName:e=o(),...t}){const n=`/API/user/${e}/roles`;return r({path:n,method:"GET",...t})}function Rd({userName:e=o(),...t}){const n=`/API/user/${e}/allgroups`;return r({path:n,method:"GET",...t})}function wd({userName:e=o(),groupListDocument:t,...n}){const a=`/API/user/${e}/groups/`;return r({path:a,method:"PUT",body:t,...n})}function zd({headers:e={},...t}={}){const n="/API/token",a={accept:"text/plain",...e};return r({path:n,method:"GET",headers:a,...t})}function qd({userName:e=o(),...t}){const n=`/API/user/${e}/key`;return r({path:n,method:"GET",...t})}function Bd({userName:e=o(),keyId:t=o(),...n}){const a=`/API/user/${e}/key/${t}`;return r({path:a,method:"GET",...n})}function Nd({userName:e=o(),...t}){const n=`/API/user/${e}/key/`;return r({path:n,method:"POST",...t})}function Jd({userName:e=o(),keyId:t=o(),accessKeyDocument:n,...a}){const s=`/API/user/${e}/key/${t}`;return r({path:s,method:"PUT",body:n,...a})}function Vd({userName:e=o(),keyId:t=o(),...n}){const a=`/API/user/${e}/key/${t}`;return r({path:a,method:"DELETE",...n})}function Hd({userName:e=o(),...t}){const n=`/API/user/${e}/access`;return r({path:n,method:"GET",...t})}const Kd={whoAmI:$d,getUserToken:gd,listUser:Id,createUser:Ad,getUser:Ed,getUserGraph:yd,updateUser:bd,disableUser:Sd,enableUser:Gd,searchUser:vd,createAlias:kd,removeAlias:Ud,getUserRealName:Ld,updateUserRealName:Cd,updateUserPassword:Md,validateUserPassword:Dd,getUserSalt:xd,createUserSalt:Od,getUserGroup:jd,getUserRole:Fd,getUserGroupRole:Rd,updateUserGroup:wd,getToken:zd,listKey:qd,getKey:Bd,createKey:Nd,updateKey:Jd,removeKey:Vd,getAccess:Hd};function Qd({...e}={}){return r({path:"/API/version",method:"GET",...e})}const _d={getVersion:Qd};function Wd({path:e=o(),...t}){const n=`/API/cost/${e}`;return r({path:n,method:"GET",...t})}function Xd({costEstimateId:e=o(),...t}){const n=`/API/cost/estimate/${e}`;return r({path:n,method:"GET",...t})}const Yd={createCostEstimate:Wd,getCostEstimate:Xd};function Zd({...e}={}){return r({path:"/API/vxa/",method:"GET",...e})}function tm({headers:e={},...t}={}){const n="/API/vxa/enable-ssh/",a={accept:"text/plain",...e};return r({path:n,method:"PUT",headers:a,...t})}function em({vxaUuid:e=o(),...t}){const n=`/API/vxa/${e}`;return r({path:n,method:"GET",...t})}function nm({vxaUuid:e=o(),...t}){const n=`/API/vxa/${e}/configuration`;return r({path:n,method:"GET",...t})}function om({vxaUuid:e=o(),...t}){const n=`/API/vxa/${e}`;return r({path:n,method:"DELETE",...t})}const am={listVxa:Zd,createVxa:tm,getVxa:em,getVxaConfiguration:nm,removeVxa:om},{login:rm,logout:sm}=U;h.ChunkedTransferManager=L,h.ChunkedUpload=I,h.access=at,h.analyzepreset=it,h.auditlog=ht,h.autoimport=Tt,h.autoprojection=Gt,h.bulkymetadata=Qt,h.collection=hn,h.component=yn,h.configuration=oo,h.conform=so,h.debug=co,h.deletionlock=go,h.documentmetadata=Go,h.errorlog=ko,h.exportlocation=Oo,h.exporttemplate=Vo,h.externalid=ta,h.fieldgroup=Ta,h.file=C,h.globalmetadata=Ka,h.group=hr,h.importsettings=Rr,h.item=Ds,h.javascript=Os,h.job=oi,h.library=Ti,h.license=gi,h.login=rm,h.logout=sm,h.metadata=g,h.metadatadataset=bi,h.metadatafield=wi,h.metadatalock=b,h.metadatamigration=Ni,h.metadataschema=Xi,h.noauth=nc,h.notification=M,h.project=gc,h.projection=Gc,h.quota=Mc,h.reindex=Oc,h.resource=Nc,h.scheduledrequest=_c,h.search=nu,h.secret=uu,h.selftest=du,h.sequence=Eu,h.service=ku,h.shape=Ph,h.shapetag=Gh,h.stitch=kh,h.storage=Hh,h.storagegroup=Zh,h.storagerule=hp,h.subtitle=mp,h.taskdefinition=Mp,h.taskgroup=zp,h.thumbnail=ad,h.timeline=hd,h.transfer=fd,h.uploadlicense=Td,h.user=Kd,h.utils=U,h.version=_d,h.vidinet=Yd,h.vsimport=Mr,h.vxa=am,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vidispine/vdt-api",
3
- "version": "24.4.0-pre.2",
3
+ "version": "25.3.0-pre.2",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -38,10 +38,10 @@
38
38
  "buffer": "6.0.3"
39
39
  },
40
40
  "devDependencies": {
41
- "@vidispine/eslint-config-base": "24.4.0-pre.2",
42
- "@vidispine/eslint-config-mdx": "24.4.0-pre.2",
43
- "@vidispine/eslint-config-storybook": "24.4.0-pre.2",
44
- "@vidispine/prettier-config": "24.4.0-pre.2",
41
+ "@vidispine/eslint-config-base": "25.3.0-pre.2",
42
+ "@vidispine/eslint-config-mdx": "25.3.0-pre.2",
43
+ "@vidispine/eslint-config-storybook": "25.3.0-pre.2",
44
+ "@vidispine/prettier-config": "25.3.0-pre.2",
45
45
  "documentation": "13.2.5",
46
46
  "eslint": "8.55.0",
47
47
  "prettier": "3.1.1",